operating on too many command-line-specified nonempty directories.
(remove_dir): Destroy the `struct saved_cwd' on the
top of the stack before returning. This usually closes the file
descriptor that was used to return to the original working directory.
Reported by Cyril Bouthors in
http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/3048
free (empty_dir);
if (AD_stack_height (ds) == 1)
- break;
+ {
+ free_cwd (&AD_stack_top(ds)->u.saved_cwd);
+ break;
+ }
}
}