[Pkg-shadow-devel] [shadow] 02/05: Clean up stale locks on boot
Balint Reczey
rbalint at moszumanska.debian.org
Wed Jan 25 16:00:42 UTC 2017
This is an automated email from the git hooks/post-receive script.
rbalint pushed a commit to branch master
in repository shadow.
commit 3588f5d2a3a6d6885c04c0fd7910e50a29edc68c
Author: Balint Reczey <balint at balintreczey.hu>
Date: Fri Jan 20 20:11:49 2017 +0100
Clean up stale locks on boot
Closes: #478771
---
debian/passwd.tmpfile | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/debian/passwd.tmpfile b/debian/passwd.tmpfile
new file mode 100644
index 0000000..c2075d1
--- /dev/null
+++ b/debian/passwd.tmpfile
@@ -0,0 +1,8 @@
+# If a password operation is in progress and we lose power, stale lockfiles
+# can be left behind. Clear them on boot.
+r! /etc/gshadow.lock
+r! /etc/shadow.lock
+r! /etc/passwd.lock
+r! /etc/group.lock
+r! /etc/subuid.lock
+r! /etc/subgid.lock
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-shadow/shadow.git
More information about the Pkg-shadow-devel
mailing list