[Top][All Lists]

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

Re: rm patch suggestion

From: Wolfgang Jährling
Subject: Re: rm patch suggestion
Date: Tue, 7 May 2002 16:57:56 +0200
User-agent: Mutt/1.0.1i


Oystein Viggen <oysteivi@tihlde.org> wrote:
> With this patch, translators that present themselves as directories are
> simply not touched by rm, beyond a necessary lstat(), and a warning
> message is presented to the user.  I believe that the code already
> present in rm to prevent symlink race attacks should also be enough to
> prevent similar translator attacks.

At least with the -f option, this behaviour should not occur, because
one might actually _want_ to remove everything. Maybe there should also
be an additional option (say, -t) for this, so that both

rm -r foo/
rm -rft foo/

would skip translated directories.


Wolfgang Jährling  <wolfgang@pro-linux.de>  \\  http://stdio.cjb.net/
Debian GNU/Hurd user && Debian GNU/Linux user \\  http://www.gnu.org/
The Hurd Hacking Guide: http://www.gnu.org/software/hurd/hacking-guide/
["We're way ahead of you here. The Hurd has always been on the    ]
[ cutting edge of not being good for anything." -- Roland McGrath ]

reply via email to

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