Bash-4.3 patch 41

This commit is contained in:
Chet Ramey 2015-08-13 15:38:31 -04:00
commit 2b3ca7e0cf
3 changed files with 16 additions and 1 deletions

View file

@ -689,6 +689,8 @@ printable_part (pathname)
if (temp == 0 || *temp == '\0')
return (pathname);
else if (temp[1] == 0 && temp == pathname)
return (pathname);
/* If the basename is NULL, we might have a pathname like '/usr/src/'.
Look for a previous slash and, if one is found, return the portion
following that slash. If there's no previous slash, just return the