]> git.ipfire.org Git - thirdparty/coreutils.git/commit
Plug a leak that would cause rm or a cross-device mv to fail when
authorJim Meyering <jim@meyering.net>
Mon, 18 Oct 2004 08:59:12 +0000 (08:59 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 18 Oct 2004 08:59:12 +0000 (08:59 +0000)
commite302d384211ce08aeb5f6ad0b222ec706bea4468
tree3cf92d7c5733b4f7bd311788420e89a923337c49
parent35abc478c609f847a7533796d0bafc98808396d5
Plug a leak that would cause rm or a cross-device mv to fail when
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
src/remove.c