Subject: Re: nfs bug?
To: None <>
From: Bill Studenmund <>
List: current-users
Date: 05/27/2004 18:24:50
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, May 27, 2004 at 08:18:46PM +0200, uwe@6bone.informatik.uni-leipzig.=
de wrote:
> hello again,


> The Microsoft Support tells me, that the SFU sever does not allow the
> removal of a non-empty directory and NetBSD does not handle this
> case correctly.

In my testing with both a 1.6 nfs client and a 1.6ZK client, I did not see=
the incorrect removal on the non-empty directory. I saw three rmdir=20
operations when looking both at ktrace and at ethereal.

> > You mean rm -r foo ?? rm -f complains that foo is a directory.
> No, I mean rm -rf foo and foo is a directory. Some makefiles in the sys or
> pkgsrc tree are using this syntax for 'make clean'.

Your original note listed:

> mkdir -p foo/foo/foo
> rm -rf foo --> Error
> rm -f foo  --> work fine

The last line is not in the correct command syntax. I was asking you about=
the last line, not the middle one. I don't see how it can "work fine" if=20
it's incorrect syntax. :-)

> the manpage says:
> -f    Attempt to remove the files without prompting for confirmation
> I think the -f option works also with directories?

rm -f does not work with directories. You have to have rm -r for a=20
directory. So "rm -r foo" and "rm -rf foo" are valid. "rm -f foo" is not.

Take care,


Content-Type: application/pgp-signature
Content-Disposition: inline

Version: GnuPG v1.2.3 (NetBSD)