]> git.ipfire.org Git - thirdparty/bash.git/commitdiff
Bash-4.2 patch 33
authorChet Ramey <chet.ramey@case.edu>
Tue, 10 Jul 2012 13:44:17 +0000 (09:44 -0400)
committerChet Ramey <chet.ramey@case.edu>
Tue, 10 Jul 2012 13:44:17 +0000 (09:44 -0400)
lib/sh/eaccess.c
patchlevel.h

index d9bca8c40b448596af15b9180f655f54784637a5..534c526bfcbdfef38b4f9f2b4659ca89967dd951 100644 (file)
@@ -82,6 +82,8 @@ sh_stat (path, finfo)
      const char *path;
      struct stat *finfo;
 {
+  static char *pbuf = 0;
+
   if (*path == '\0')
     {
       errno = ENOENT;
@@ -106,7 +108,7 @@ sh_stat (path, finfo)
      trailing slash.  Make sure /dev/fd/xx really uses DEV_FD_PREFIX/xx.
      On most systems, with the notable exception of linux, this is
      effectively a no-op. */
-      char pbuf[32];
+      pbuf = xrealloc (pbuf, sizeof (DEV_FD_PREFIX) + strlen (path + 8));
       strcpy (pbuf, DEV_FD_PREFIX);
       strcat (pbuf, path + 8);
       return (stat (pbuf, finfo));
index 70d815ad701970dabe1e71f5d2411686b4f39194..d66658f5c887fb203185ecd92b7d6b64bf19d37e 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 32
+#define PATCHLEVEL 33
 
 #endif /* _PATCHLEVEL_H_ */