From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,1b9de6598a696782 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1995-01-05 02:03:33 PST Path: nntp.gmd.de!newsserver.jvnc.net!yale.edu!spool.mu.edu!howland.reston.ans.net!europa.eng.gtefsd.com!uhog.mit.edu!bloom-beacon.mit.edu!crl.dec.com!crl.dec.com!lead.zk3.dec.com!utne!strange From: strange@zk3.dec.com (Steve Strange) Newsgroups: comp.unix.osf.osf1 Subject: Re: chmod(1) bug [OSF/1 V3.0] Date: 04 Jan 1995 19:10:46 GMT Organization: Digital Equipment Corp. Message-ID: References: NNTP-Posting-Host: squeeze.zk3.dec.com In-reply-to: sysmark@helios.physics.utoronto.ca's message of Wed, 4 Jan 1995 16:19:53 GMT In article 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