diff -up fish-1.22.3/common.c.openfix fish-1.22.3/common.c
--- fish-1.22.3/common.c.openfix 2007-02-08 18:38:57.000000000 +0100
+++ fish-1.22.3/common.c 2007-10-31 09:33:46.000000000 +0100
@@ -1483,7 +1483,7 @@ int acquire_lock_file( const char *lockf
goto done;
}
(void)unlink( linkfile );
- if( ( fd = open( linkfile, O_CREAT|O_RDONLY ) ) == -1 )
+ if( ( fd = (open)( linkfile, O_CREAT|O_RDONLY, 644 ) ) == -1 )
{
debug( 1, L"acquire_lock_file: open: %s", strerror( errno ) );
goto done;