wdmd/main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 3a2ba2d0fbe78f4eacd438b708ceff6e96903d37
Author: David Teigland <teigland(a)redhat.com>
Date: Wed Aug 1 17:00:53 2012 -0500
wdmd: use lockfile mode 644
Signed-off-by: David Teigland <teigland(a)redhat.com>
diff --git a/wdmd/main.c b/wdmd/main.c
index 63ae2bc..f053de4 100644
--- a/wdmd/main.c
+++ b/wdmd/main.c
@@ -817,7 +817,7 @@ static int lockfile(void)
sprintf(lockfile_path, "%s/wdmd.pid", WDMD_RUN_DIR);
- fd = open(lockfile_path, O_CREAT|O_WRONLY|O_CLOEXEC, 0666);
+ fd = open(lockfile_path, O_CREAT|O_WRONLY|O_CLOEXEC, 0644);
if (fd < 0) {
log_error("lockfile open error %s: %s",
lockfile_path, strerror(errno));
Show replies by date