- Fix glibc's open check, by providing mode, instead of working around...

epel9
Oliver Falk 17 years ago
parent adeb645d17
commit 600ed0890d

@ -1,11 +1,12 @@
--- fish-1.22.3/common.c.openfix 2007-08-16 10:56:06.000000000 +0200 diff -up fish-1.22.3/common.c.openfix fish-1.22.3/common.c
+++ fish-1.22.3/common.c 2007-08-16 10:55:55.000000000 +0200 --- 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 @@ -1483,7 +1483,7 @@ int acquire_lock_file( const char *lockf
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 ) ) == -1 )
+ 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 ) ); debug( 1, L"acquire_lock_file: open: %s", strerror( errno ) );
goto done; goto done;

@ -2,7 +2,7 @@ Summary: A friendly interactive shell
Name: fish Name: fish
Version: 1.22.3 Version: 1.22.3
Release: 4%{?dist} Release: 5%{?dist}
License: GPL License: GPL
Group: System Environment/Shells Group: System Environment/Shells
@ -151,6 +151,10 @@ fi
%changelog %changelog
* Wed Oct 31 2007 Oliver Falk <oliver@linux-kernel.at> - 1.22.3-5
- Fix glibc's open check, by providing mode, instead of working
around...
* Wed Oct 31 2007 Oliver Falk <oliver@linux-kernel.at> - 1.22.3-4 * Wed Oct 31 2007 Oliver Falk <oliver@linux-kernel.at> - 1.22.3-4
- Update URL; Fixes bz#359451 - Update URL; Fixes bz#359451

Loading…
Cancel
Save