]> git.ipfire.org Git - thirdparty/bash.git/commitdiff
Bash-4.2 direxpand with patch 22
authorChet Ramey <chet.ramey@case.edu>
Tue, 13 Mar 2012 13:52:48 +0000 (09:52 -0400)
committerChet Ramey <chet.ramey@case.edu>
Tue, 13 Mar 2012 13:52:48 +0000 (09:52 -0400)
lib/sh/zread.c
patchlevel.h

index 0fd1199ed1f79c21087809386e52c91bd6b99106..5db21a986eba173ae2482a9b28730b2870711d08 100644 (file)
@@ -160,14 +160,13 @@ void
 zsyncfd (fd)
      int fd;
 {
-  off_t off;
-  int r;
+  off_t off, r;
 
   off = lused - lind;
   r = 0;
   if (off > 0)
     r = lseek (fd, -off, SEEK_CUR);
 
-  if (r >= 0)
+  if (r != -1)
     lused = lind = 0;
 }
index 2ffa36e6730477e937a54333fcadd6d9964b4e9d..9166366b330ce80e35160f598ce16461798a90c6 100644 (file)
@@ -25,6 +25,6 @@
    regexp `^#define[   ]*PATCHLEVEL', since that's what support/mkversion.sh
    looks for to find the patch level (for the sccs version string). */
 
-#define PATCHLEVEL 21
+#define PATCHLEVEL 22
 
 #endif /* _PATCHLEVEL_H_ */