commit bash-20070927 snapshot

This commit is contained in:
Chet Ramey
2011-12-07 09:13:23 -05:00
parent 79e6c7dcc8
commit 6a2e7e1fc6
2 changed files with 21 additions and 0 deletions
+14
View File
@@ -14900,3 +14900,17 @@ builtins/common.c
- add code to retry fork() after EAGAIN, with a progressively longer
sleep between attempts, up to FORKSLEEP_MAX (16) seconds. Suggested
by Martin Koeppe <mkoeppe@gmx.de>
9/21
----
version.c
- change copyright year to 2007
9/25
----
pathexp.c
- change quote_string_for_globbing to add a backslash in front of a
backslash appearing in the pathname string, since the globbing
code will interpret backslashes as quoting characters internally.
Bug reported by <herbert@gondor.apana.org.au> on the debian list
(443685)
+7
View File
@@ -176,6 +176,13 @@ quote_string_for_globbing (pathname, qflags)
if (pathname[i] == '\0')
break;
}
else if (pathname[i] == '\\')
{
temp[j++] = '\\';
i++;
if (pathname[i] == '\0')
break;
}
temp[j++] = pathname[i];
}
temp[j] = '\0';