From: strange@zk3.dec.com (Steve Strange)
Subject: Re: chmod(1) bug [OSF/1 V3.0]
Date: 04 Jan 1995 19:10:46 GMT [thread overview]
Message-ID: <STRANGE.95Jan4141046@squeeze.dec.com> (raw)
In-Reply-To: sysmark@helios.physics.utoronto.ca's message of Wed, 4 Jan 1995 16:19:53 GMT
In article <D1w2p7.38u@info.physics.utoronto.ca> sysmark@helios.physics.utoronto.ca (Mark Bartelt) writes:
> Take a look at the following:
>
> opossum> ls -l
> total 1
> lrwxrwxrwx 1 bozo system 3 Jan 4 10:49 bar -> foo
> -rw-rw-r-- 1 bozo system 4 Jan 4 10:49 foo
> opossum>
> opossum> chmod g-w bar
> opossum>
> opossum> ls -l
> total 1
> lrwxrwxrwx 1 bozo system 3 Jan 4 10:49 bar -> foo
> -rwxr-xrwx 1 bozo system 4 Jan 4 10:49 foo
> ^ ^ ^^
> !!!!!!!
> It looks as if chmod(1) is picking up the mode of the symlink itself
> (rather than the mode of the file to which the symlink points) to use
> as the value in which to {set,clear} bits to produce the new mode that
> gets assigned to the target file.
Yes, it's a known bug, and the fix will appear in V3.2. Thanks for
the posting.
> PS: Different (though related) question ... Is there any way to set
> the mode which gets assigned to symlinks?
I'm not aware of any way to do this. There is at least one product,
namely DCE DFS, that relies on symlink permission bits to be set as
they are (unfortunately). You're right about them not being
meaningful in general, though.
Steve
--
Steve Strange
Digital Equipment Corporation, Nashua, NH
DCE DFS for DEC OSF/1 -- Development
strange@zk3.dec.com
prev parent reply other threads:[~1995-01-04 19:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-01-04 16:19 chmod(1) bug [OSF/1 V3.0] Mark Bartelt
1995-01-04 19:10 ` Steve Strange [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox