DragonFly BSD
DragonFly bugs List (threaded) for 2005-07
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Some filesystem nits


From: Jeroen Ruigrok/asmodai <asmodai@xxxxxxxxxxxxx>
Date: Mon, 4 Jul 2005 19:51:56 +0200

On DragonFly 1.3.2:

[19:36] [asmodai@purgatory] (512) {0} $ mkdir -p a/b
(/home/asmodai/test)
[19:36] [asmodai@purgatory] (513) {0} $ cd a/b 
(/home/asmodai/test/a/b)
[19:36] [asmodai@purgatory] (513) {0} $ rm -rf ~/test/a
(/home/asmodai/test/a/b)
[19:36] [asmodai@purgatory] (514) {0} $ cd ..
cd: socket is not connected: ..

On FreeBSD 4.11:

[19:36] [asmodai@nexus] (530) {0} $ mkdir -p a/b
(/home/asmodai)
[19:36] [asmodai@nexus] (531) {0} $ cd a/b
(/home/asmodai/a/b)
[19:36] [asmodai@nexus] (532) {0} $ rm -rf ~/a
(/home/asmodai/a/b)
[19:36] [asmodai@nexus] (533) {0} $ cd ..
cd: no such file or directory: ..

FreeBSD 5.4:

[2:39] [asmodai@sparc64] (515) {0} $ mkdir -p a/b
(/tmp)
[2:39] [asmodai@sparc64] (516) {0} $ cd a/b
(/tmp/a/b)
[2:39] [asmodai@sparc64] (517) {0} $ rm -rf /tmp/a
(/tmp/a/b)
[2:39] [asmodai@sparc64] (518) {0} $ cd ..
cd: no such file or directory: ..

NetBSD 2.0.1:

> mkdir -p a/b
> cd a/b
> rm -rf /tmp/a
> cd ..
. .: No such file or directory.

OpenBSD 3.7:

[2:42] [asmodai@sparc64] (503) {0} $ mkdir -p a/b
(/tmp)
[2:42] [asmodai@sparc64] (504) {0} $ cd a/b
(/tmp/a/b)
[2:42] [asmodai@sparc64] (505) {0} $ rm -rf /tmp/a
(/tmp/a/b)
[2:43] [asmodai@sparc64] (506) {0} $ cd ..
cd: no such file or directory: ..

AIX 4.3:

> cd /tmp
> mkdir -p a/b
> cd a/b
> rm -rf /tmp/a
rm: 0653-610 Cannot remove current directory /tmp/a/b.

Solaris 9:

sparc64% mkdir -p a/b
sparc64% cd a/b
sparc64% rm -rf /tmp/a
rm: Cannot remove any directory in the path of the current working directory
/tmp/a/b

Solaris 10:

> mkdir -p a/b
> cd a/b
> rm -rf /tmp/a
rm: Cannot remove any directory in the path of the current working directory
/tmp/a/b

Our error message is dumb to say the least. :P
And question is whether we want to allow a user to remove a directory which
is in the path of the cwd.

-- 
Jeroen Ruigrok van der Werven <asmodai(at)wxs.nl> / asmodai / kita no mono
Free Tibet! http://www.savetibet.org/ | http://ashemedai.deviantart.com/
http://www.tendra.org/   | http://www.in-nomine.org/
We have met the enemy and they are ours...



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