rpms/bash/devel bash-afs.patch,NONE,1.1 bash.spec,1.74,1.75

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Wed Apr 20 08:18:58 UTC 2005


Update of /cvs/dist/rpms/bash/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv26728

Modified Files:
	bash.spec 
Added Files:
	bash-afs.patch 
Log Message:
* Wed Apr 20 2005 Tim Waugh <twaugh at redhat.com>
- Fixed AFS support for output redirection, so that the correct errors
  are reported for other filesystems (bug #155373).


bash-afs.patch:
 redir.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletion(-)

--- NEW FILE bash-afs.patch ---
--- bash-3.0/redir.c.afs	2005-04-20 09:16:15.000000000 +0100
+++ bash-3.0/redir.c	2005-04-20 09:16:58.000000000 +0100
@@ -596,7 +596,9 @@
       fd = open (filename, flags, mode);
 #if defined (AFS)
       if ((fd < 0) && (errno == EACCES))
-	fd = open (filename, flags & ~O_CREAT, mode);
+	if ((fd = open (filename, flags & ~O_CREAT, mode)) < 0)
+	  /* Restore previous errno. */
+	  errno = EACCES;
 #endif /* AFS */
     }
 


Index: bash.spec
===================================================================
RCS file: /cvs/dist/rpms/bash/devel/bash.spec,v
retrieving revision 1.74
retrieving revision 1.75
diff -u -r1.74 -r1.75
--- bash.spec	15 Mar 2005 14:25:30 -0000	1.74
+++ bash.spec	20 Apr 2005 08:18:55 -0000	1.75
@@ -52,6 +52,7 @@
 Patch122: bash-wrap.patch
 Patch123: bash-crash.patch
 Patch124: bash-pwd.patch
+Patch125: bash-afs.patch
 Prefix: %{_prefix}
 Requires: mktemp
 Obsoletes: bash2 etcskel
@@ -118,6 +119,7 @@
 %patch122 -p1 -b .wrap
 %patch123 -p0 -b .crash
 %patch124 -p1 -b .pwd
+%patch125 -p1 -b .afs
 
 echo %{version} > _distribution
 echo %{release} > _patchlevel
@@ -251,6 +253,10 @@
 %doc doc/*.ps doc/*.0 doc/*.html doc/article.txt
 
 %changelog
+* Wed Apr 20 2005 Tim Waugh <twaugh at redhat.com>
+- Fixed AFS support for output redirection, so that the correct errors
+  are reported for other filesystems (bug #155373).
+
 * Tue Mar 15 2005 Tim Waugh <twaugh at redhat.com> 3.0-30
 - Fix PS1 expansion crash when PWD is unset (bg #151116).
 




More information about the fedora-cvs-commits mailing list