From 600ed0890ddf0c837edb228f28aa88dcbed05e68 Mon Sep 17 00:00:00 2001 From: Oliver Falk Date: Oct 31 2007 09:08:22 +0000 Subject: - Fix glibc's open check, by providing mode, instead of working around... --- diff --git a/fish-1.22.3-openfix.patch b/fish-1.22.3-openfix.patch index 9b64682..c0e2aa6 100644 --- a/fish-1.22.3-openfix.patch +++ b/fish-1.22.3-openfix.patch @@ -1,11 +1,12 @@ ---- fish-1.22.3/common.c.openfix 2007-08-16 10:56:06.000000000 +0200 -+++ fish-1.22.3/common.c 2007-08-16 10:55:55.000000000 +0200 +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 ) ) == -1 ) ++ if( ( fd = (open)( linkfile, O_CREAT|O_RDONLY, 644 ) ) == -1 ) { debug( 1, L"acquire_lock_file: open: %s", strerror( errno ) ); goto done; diff --git a/fish.spec b/fish.spec index dcd806d..a562072 100644 --- a/fish.spec +++ b/fish.spec @@ -2,7 +2,7 @@ Summary: A friendly interactive shell Name: fish Version: 1.22.3 -Release: 4%{?dist} +Release: 5%{?dist} License: GPL Group: System Environment/Shells @@ -151,6 +151,10 @@ fi %changelog +* Wed Oct 31 2007 Oliver Falk - 1.22.3-5 +- Fix glibc's open check, by providing mode, instead of working + around... + * Wed Oct 31 2007 Oliver Falk - 1.22.3-4 - Update URL; Fixes bz#359451