commit bash-20060307 snapshot

This commit is contained in:
Chet Ramey
2011-12-03 22:46:14 -05:00
parent 462a7a25f1
commit 74d9692be0
14 changed files with 131 additions and 37 deletions
+1 -1
View File
@@ -470,7 +470,7 @@ glob_vector (pat, dir, flags)
while (1)
{
/* Make globbing interruptible in the shell. */
if (interrupt_state)
if (interrupt_state || terminating_signal)
{
lose = 1;
break;
-3
View File
@@ -508,10 +508,7 @@ glob_vector (pat, dir, flags)
{
nextlink = (struct globval *) malloc (sizeof (struct globval));
if (firstmalloc == 0)
{
firstmalloc = nextlink;
itrace("glob_vector: switching from alloca to malloc for nextlink: count = %d", count);
}
}
nextname = (char *) malloc (D_NAMLEN (dp) + 1);
if (nextlink == 0 || nextname == 0)