src/lockfile.c

David Teigland teigland at fedoraproject.org
Thu Aug 2 16:28:40 UTC 2012


 src/lockfile.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 1339694c3bad23055f896e90353c81fd65bd4a7e
Author: David Teigland <teigland at redhat.com>
Date:   Thu Aug 2 11:27:54 2012 -0500

    sanlock: use lockfile mode 644
    
    Signed-off-by: David Teigland <teigland at redhat.com>

diff --git a/src/lockfile.c b/src/lockfile.c
index 129d956..e3b720c 100644
--- a/src/lockfile.c
+++ b/src/lockfile.c
@@ -54,7 +54,7 @@ int lockfile(const char *dir, const char *name, int uid, int gid)
 
 	snprintf(path, PATH_MAX, "%s/%s", dir, name);
 
-	fd = open(path, O_CREAT|O_WRONLY|O_CLOEXEC, 0666);
+	fd = open(path, O_CREAT|O_WRONLY|O_CLOEXEC, 0644);
 	if (fd < 0) {
 		log_error("lockfile open error %s: %s",
 			  path, strerror(errno));




More information about the sanlock-devel mailing list