mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-27 03:13:37 +08:00
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
This commit is contained in:
parent
27baa6e62b
commit
3cb24e0681
2
common.c
2
common.c
|
@ -1483,7 +1483,7 @@ int acquire_lock_file( const char *lockfile, const int timeout, int force )
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
(void)unlink( linkfile );
|
(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 ) );
|
debug( 1, L"acquire_lock_file: open: %s", strerror( errno ) );
|
||||||
goto done;
|
goto done;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user