bug-fileutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

rmdir (fileutils) 4.1.8


From: Keith Warno
Subject: rmdir (fileutils) 4.1.8
Date: Thu, 04 Apr 2002 12:43:56 -0500 (EST)

Proposed patch to fix potential double rmdir() when --parents is
specified.

Example:  Execution of

   rmdir -p a/b/c/

Will try to remove dir a/b/c twice -- once in main() and again in
remove_parents() -- because of confusion over trailing slashes.

All trailing slashes must be removed before the call to
remove_parents(), or rather before the while() loop in remove_parents()
is entered.

Ciao.
kw.

Attachment: fileutils.diff
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]