commit bash-20050630 snapshot

This commit is contained in:
Chet Ramey
2011-12-03 13:48:02 -05:00
parent 0f445e6cd2
commit da71998238
43 changed files with 3878 additions and 224 deletions
+6 -3
View File
@@ -2309,9 +2309,12 @@ bash_directory_completion_hook (dirname)
if (temp1[len1 - 1] == '/')
{
len2 = strlen (temp2);
temp2 = (char *)xrealloc (temp2, len2 + 2);
temp2[len2] = '/';
temp2[len2 + 1] = '\0';
if (len2 > 2) /* don't append `/' to `/' or `//' */
{
temp2 = (char *)xrealloc (temp2, len2 + 2);
temp2[len2] = '/';
temp2[len2 + 1] = '\0';
}
}
free (local_dirname);
*dirname = temp2;