This is an automated email from the git hooks/post-receive script.
teigland pushed a commit to branch master
in repository sanlock.
commit 9f7d4fc78c2a0ff1bd9379cadaa9a210348d7c00
Author: Han Han <hhan(a)redhat.com>
Date: Mon Apr 24 09:26:04 2017 -0500
example.py: chown lockspace file to sanlock
Bug fix:
https://bugzilla.redhat.com/show_bug.cgi?id=1434672
Chown lockspace file to sanlock:sanlock in case of the failure of
sanlock.write_lockspace.
---
python/example.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/python/example.py b/python/example.py
index 14e81a8..0e8a2f6 100644
--- a/python/example.py
+++ b/python/example.py
@@ -1,3 +1,5 @@
+import pwd
+import grp
import os
import time
import signal
@@ -18,6 +20,7 @@ def main():
fd, disk = tempfile.mkstemp()
os.close(fd)
+ os.chown(disk, pwd.getpwnam("sanlock").pw_uid,
grp.getgrnam("sanlock").gr_gid)
offset = sanlock.get_alignment(disk)
SNLK_DISKS = [(disk, offset)]
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.