xfs
[Top] [All Lists]

Mode of symbolic link

To: XFS list <linux-xfs@xxxxxxxxxxx>
Subject: Mode of symbolic link
From: Detlef Vollmann <dv@xxxxxxxxxxx>
Date: Fri, 10 Aug 2001 23:16:19 +0000
Organization: vollmann engineering gmbh
Sender: owner-linux-xfs@xxxxxxxxxxx
Hi,
if I create a symbolic link on an XFS filesystem, it gets its
mode from umask, instead of 777.  I think this is wrong (on
all other filesystems I tested its always 777).
The problem is specially annoying as you can't change the
mode of the link later, always the mode of the target gets changed :-(

cheers,
Detlef

[dv@dwarf q]$ umask 022
[dv@dwarf q]$ echo > a
[dv@dwarf q]$ ln -s a b
[dv@dwarf q]$ ls -l
total 4
-rw-r--r--    1 dv       users           1 Aug 11 01:18 a
lrwxr-xr-x    1 dv       users           1 Aug 11 01:18 b -> a
[dv@dwarf q]$ chmod 777 b
[dv@dwarf q]$ ls -l
total 4
-rwxrwxrwx    1 dv       users           1 Aug 11 01:18 a
lrwxr-xr-x    1 dv       users           1 Aug 11 01:18 b -> a

-- 
Detlef Vollmann
vollmann engineering gmbh           Tel: +41-41-4120911
P.O. Box 5106                       Fax: +41-41-4120912
CH-6000 Luzern 5 / Switzerland      eMail: dv@xxxxxxxxxxx


<Prev in Thread] Current Thread [Next in Thread>