]> git.ipfire.org Git - thirdparty/bash.git/commitdiff
Bash-5.3 patch 4: fix issue with source when read(2) returns fewer characters than...
authorChet Ramey <chet.ramey@case.edu>
Wed, 26 Nov 2025 17:46:21 +0000 (12:46 -0500)
committerChet Ramey <chet.ramey@case.edu>
Wed, 26 Nov 2025 17:46:21 +0000 (12:46 -0500)
builtins/evalfile.c
patchlevel.h

index 1fee9880eb7e89d516f853d4e211d6f5509950b7..3026c5f00abc10235234caa3ee91232b9b68369b 100644 (file)
@@ -160,8 +160,10 @@ file_error_and_exit:
       nr = read (fd, string, file_size);
       if (nr >= 0)
        string[nr] = '\0';
+#if 0
       if (nr != file_size)
        nr = -1;                /* XXX - didn't get the whole file */
+#endif
     }
   else
     nr = zmapfd (fd, &string, 0);
index a1609dc89da6f392414d15b02bf28200c6abd172..fa8d6cbaa02ffffbd994da01ace02af9f5fb9f5e 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 3
+#define PATCHLEVEL 4
 
 #endif /* _PATCHLEVEL_H_ */