From 1339694c3bad23055f896e90353c81fd65bd4a7e Mon Sep 17 00:00:00 2001 From: David Teigland Date: Aug 02 2012 16:27:54 +0000 Subject: sanlock: use lockfile mode 644 Signed-off-by: David Teigland --- 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));