Blame fish-1.22.3-openfix.patch

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