Odd symlink behaviour?

From: Wakko Warner
Date: Tue May 25 2004 - 19:10:03 EST


Vanilla kernel 2.6.6. / is ext3, /dev is on /

I noticed when I created a symlink, the perms were not 777 like I would have
expected. See below.

[root@vegeta:/dev] v cdrom
ls: cdrom: No such file or directory
[root@vegeta:/dev] ln -s scd0 cdrom
[root@vegeta:/dev] v cdrom
lrwxr-xr-x 1 root root 4 May 25 20:13 cdrom -> scd0
[root@vegeta:/dev] umask 0
[root@vegeta:/dev] ln -sf scd0 cdrom
[root@vegeta:/dev] v cdrom
lrwxrwxrwx 1 root root 4 May 25 20:13 cdrom -> scd0
[root@vegeta:/dev] umask 022
[root@vegeta:/dev] uname -r
2.6.6
[root@vegeta:/dev] ln --version
ln (coreutils) 5.0.91

I have another filesystem which is reiserfs; It doesn't exibit this problem.

--
Lab tests show that use of micro$oft causes cancer in lab animals
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/