Odd Filesystem Behavior

Kevin L. Kane kevin.kane at gmail.com
Sat Mar 25 08:33:17 PST 2006


yep, ok ignore me :)

On 3/25/06, Simon 'corecode' Schubert <corecode at xxxxxxxxxxxx> wrote:
> Kevin L. Kane wrote:
> > oh something else:
> [...]
> > I think if i specify the / at the end of symlink it will actually
> > delete(or try to in this case) all sub folders if it can.  Is that
> > normal? and if it is, should that be the desired behavior, if its a ln
> > -s link shouldnt it only delete the link rather than the contents of
> > what its linking to?
>
> I think that's expected.  adding a trailing / will force the resolution
> of the link.
>
> > On 3/25/06, Kevin L. Kane <kevin.kane at xxxxxxxxx> wrote:
> >> I'm running 1.5.2 with all the changes to the FS system(BUF/IO?) stuff.
> >>
> >> prometheus# ls -la
> >> total 3
> >> drwxr-xr-x  3 root  wheel  512 Mar 25 10:24 .
> >> drwxr-xr-x  3 root  wheel  512 Mar 25 10:14 ..
> >> dr-xr-xr-x  2 root  wheel  512 Mar  2 16:03 empty
> >> prometheus# chmod u+w empty/
> >> chmod: empty/: Operation not permitted
> >> prometheus# rm -rf empty/
> >> recursively remove empty/? y
> >> rm: empty/: Operation not permitted
> >> prometheus# rmdir empty/
> >> rmdir: empty/: Operation not permitted
> >> prometheus# whoami
> >> root
>
> is it like this?
>
> % ls -lo
> dr-xr-xr-x   2 root    wheel   schg  512 Apr  3  2003 empty/
>
> >> I was very surprised by my not being able to delete or modify the
> >> perms on this file.  Also:
>
> I bet you're dealing with a immutable directory.  see chflags(1).
>
> cheers
>    simon
>
> --
> Serve - BSD     +++  RENT this banner advert  +++    ASCII Ribbon   /"\
> Work - Mac      +++  space for low €€€ NOW!1  +++      Campaign     \ /
> Party Enjoy Relax   |   http://dragonflybsd.org      Against  HTML   \
> Dude 2c 2 the max   !   http://golden-apple.biz       Mail + News   / \
>






More information about the Bugs mailing list