From 14459df34a74b1f0087e5260357017f8b33a2cfd Mon Sep 17 00:00:00 2001 From: Chet Ramey Date: Tue, 10 Jul 2012 09:44:17 -0400 Subject: [PATCH] Bash-4.2 patch 33 --- lib/sh/eaccess.c | 4 +++- patchlevel.h | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/sh/eaccess.c b/lib/sh/eaccess.c index d9bca8c40..534c526bf 100644 --- a/lib/sh/eaccess.c +++ b/lib/sh/eaccess.c @@ -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)); diff --git a/patchlevel.h b/patchlevel.h index 70d815ad7..d66658f5c 100644 --- a/patchlevel.h +++ b/patchlevel.h @@ -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_ */ -- 2.39.2