From c7e288e4609bb84167a2ccb56ac66567c71be557 Mon Sep 17 00:00:00 2001 From: David Teigland Date: Tue, 6 Nov 2012 15:36:16 -0600 Subject: [PATCH 2/3] wdmd: use mode 775 for run dir init script already creates it as 775, so this isn't a big problem. Signed-off-by: David Teigland --- wdmd/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wdmd/main.c b/wdmd/main.c index 482ab29..646a0ac 100644 --- a/wdmd/main.c +++ b/wdmd/main.c @@ -1185,7 +1185,7 @@ static int lockfile(void) int fd, rv; old_umask = umask(0022); - rv = mkdir(WDMD_RUN_DIR, 0777); + rv = mkdir(WDMD_RUN_DIR, 0775); if (rv < 0 && errno != EEXIST) { umask(old_umask); return rv; -- 1.7.10.1.362.g242cab3