aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar liljencrantz <liljencrantz@gmail.com>2007-08-15 07:37:22 +1000
committerGravatar liljencrantz <liljencrantz@gmail.com>2007-08-15 07:37:22 +1000
commit3cb24e06811264bbd5455a2a884f2a6131b52f38 (patch)
tree7d1df9050e3e1bc0069b6a9af798cd8c4a3aabfc
parent27baa6e62b94ade9cda07dbdd672436c15c26635 (diff)
Add missing file creation mask for open. This fixes a compilation bug on the upcoming Fedora 8. Thanks to Oliver Falk for reporting the issue as well as figuring out the cause.
darcs-hash:20070814213722-75c98-5466a6be1e29984da67d5de0d1fe8e04ec1373bb.gz
-rw-r--r--common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common.c b/common.c
index dfbd67fe..908606d4 100644
--- a/common.c
+++ b/common.c
@@ -1483,7 +1483,7 @@ int acquire_lock_file( const char *lockfile, const int timeout, int force )
goto done;
}
(void)unlink( linkfile );
- if( ( fd = open( linkfile, O_CREAT|O_RDONLY ) ) == -1 )
+ if( ( fd = open( linkfile, O_CREAT|O_RDONLY, 0600 ) ) == -1 )
{
debug( 1, L"acquire_lock_file: open: %s", strerror( errno ) );
goto done;