Magellan Linux

Annotation of /trunk/bash/patches/bash-3.0-afs.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 144 - (hide annotations) (download)
Tue May 8 20:06:05 2007 UTC (17 years, 1 month ago) by niro
File size: 428 byte(s)
-import

1 niro 144 --- bash-3.0/redir.c.afs 2005-04-20 09:16:15.000000000 +0100
2     +++ bash-3.0/redir.c 2005-04-20 09:16:58.000000000 +0100
3     @@ -596,7 +596,9 @@
4     fd = open (filename, flags, mode);
5     #if defined (AFS)
6     if ((fd < 0) && (errno == EACCES))
7     - fd = open (filename, flags & ~O_CREAT, mode);
8     + if ((fd = open (filename, flags & ~O_CREAT, mode)) < 0)
9     + /* Restore previous errno. */
10     + errno = EACCES;
11     #endif /* AFS */
12     }
13