bug-fileutils
[Top][All Lists]
Advanced

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

Re: rm patch


From: Jim Meyering
Subject: Re: rm patch
Date: 07 Feb 2001 10:28:36 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.0.98

Thanks for the report and patch.

However, both standards and historical practice agree that
rm should not do as you suggest.
I suggest you change your backup script to adjust
the permissions, or write a small wrapper script around rm to
do what you want.

Ian Lynagh <address@hidden> wrote:
| The attached patch takes care of the following situation:
|
| mkdir foo
| touch foo/bar (optional)
| chmod 0 foo
| rm -rf foo
|
| not working as it can't chdir to foo.
|
| I need this as my backup scripts back up directories like this (out of
| necessity, they're part of a test-suite) but they then don't get
| rotated as rm -rf fails on the oldest backup.



reply via email to

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