Fixed display bug on deletion error

This commit is contained in:
Yorhel 2009-04-26 14:57:20 +02:00
parent 2a5c9a242f
commit eb3310060f

View file

@ -194,12 +194,14 @@ delete_nxt:
if(r == -1 && !ignoreerr) { if(r == -1 && !ignoreerr) {
state = DS_FAILED; state = DS_FAILED;
lasterrno = errno; lasterrno = errno;
curdir = dr;
while(state == DS_FAILED) while(state == DS_FAILED)
if(input_handle(0)) if(input_handle(0))
return 1; return 1;
} } else
freedir(dr);
freedir(dr); if(r == -1 && root == dr)
return 1;
return 0; return 0;
} }