Re: rm patch suggestion

2002-05-10 Thread Thomas Bushnell, BSG
Marcus Brinkmann <[EMAIL PROTECTED]> writes: > On Thu, May 09, 2002 at 07:39:57PM -0700, Thomas Bushnell, BSG wrote: > > Marcus Brinkmann <[EMAIL PROTECTED]> writes: > > > > > Note that there is no way to get levels inbetween if the translators don't > > > provide them. > > > > This has long be

Re: rm patch suggestion

2002-05-10 Thread Marcus Brinkmann
On Thu, May 09, 2002 at 07:39:57PM -0700, Thomas Bushnell, BSG wrote: > Marcus Brinkmann <[EMAIL PROTECTED]> writes: > > > Note that there is no way to get levels inbetween if the translators don't > > provide them. > > This has long been noticed; you can always go one at a time if you are > the

Re: rm patch suggestion

2002-05-09 Thread Thomas Bushnell, BSG
Marcus Brinkmann <[EMAIL PROTECTED]> writes: > Note that there is no way to get levels inbetween if the translators don't > provide them. This has long been noticed; you can always go one at a time if you are the owner. ___ Bug-hurd mailing list [EM

Re: rm patch suggestion

2002-05-07 Thread Oystein Viggen
* [Joshua Judson Rosen] > On Tue, May 07, 2002 at 05:08:58PM +0200, Oystein Viggen wrote: > >> People will expect -Rf to as safe from subversion on the Hurd as it is >> in any other Unix like OS. > > Right..., which normally includes descending through mountpoints, doesn't it? Root descending i

Re: rm patch suggestion

2002-05-07 Thread Oystein Viggen
* [Oystein Viggen] > I believe that the code already > present in rm to prevent symlink race attacks should also be enough to > prevent similar translator attacks. Actually, I don't believe this anymore. I guess that when you stat . in the root of a translator directory, you are talking to the

Re: rm patch suggestion

2002-05-07 Thread Joshua Judson Rosen
On Tue, May 07, 2002 at 05:08:58PM +0200, Oystein Viggen wrote: > * [Joshua Judson Rosen] > > How about an -x/--one-file-system option like cp has? > > Problem is, you never ever want to recurse into directory translators > belonging to other people, I can't agree with the `never' in this state

Re: rm patch suggestion

2002-05-07 Thread Oystein Viggen
* [Joshua Judson Rosen] > On Tue, May 07, 2002 at 04:57:56PM +0200, Wolfgang J?hrling wrote: > >> 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 tha

Re: rm patch suggestion

2002-05-07 Thread Joshua Judson Rosen
On Tue, May 07, 2002 at 04:57:56PM +0200, Wolfgang J?hrling wrote: > Oystein Viggen <[EMAIL PROTECTED]> 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. [

Re: rm patch suggestion

2002-05-07 Thread Wolfgang Jährling
Hi! Oystein Viggen <[EMAIL PROTECTED]> 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 rac

rm patch suggestion

2002-05-06 Thread Oystein Viggen
Hi I have made a small patch to rm, which I believe will work around the problems wrt. translators placed by malicious or misguided users as previously discussed on help-hurd. In my first attempt to create such a patch, I have favoured simplicity over advanced features, so it could probably be d