diff options
author | 2007-08-15 07:37:22 +1000 | |
---|---|---|
committer | 2007-08-15 07:37:22 +1000 | |
commit | 3cb24e06811264bbd5455a2a884f2a6131b52f38 (patch) | |
tree | 7d1df9050e3e1bc0069b6a9af798cd8c4a3aabfc | |
parent | 27baa6e62b94ade9cda07dbdd672436c15c26635 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |