Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* OSF 2.0 problem with chmod on a link
@ 1994-08-29  8:17 Stuart Kemp
  1994-09-01  6:50 ` Burkhard Neidecker-Lutz
  0 siblings, 1 reply; 2+ messages in thread
From: Stuart Kemp @ 1994-08-29  8:17 UTC (permalink / raw)


Under OSF 2.0:

Changing the perms of a file that is a symbolic link to another file
causes nasty things to happen ...

	mkdir try
	cd try
	touch file
	ln -s file link
	ls -al
total 6
drwx------   2 stuart   staff        512 Aug 29 18:18 .
drwxr-xr-x  49 stuart   staff       3584 Aug 29 18:18 ..
-rw-------   1 stuart   staff          0 Aug 29 18:18 file
lrwxrwxrwx   1 stuart   staff          4 Aug 29 18:18 link -> file

	chmod g+r link
	ls -la
total 6
drwx------   2 stuart   staff        512 Aug 29 18:18 .
drwxr-xr-x  49 stuart   staff       3584 Aug 29 18:18 ..
-rwxrwxrwx   1 stuart   staff          0 Aug 29 18:18 file
lrwxrwxrwx   1 stuart   staff          4 Aug 29 18:18 link -> file

When determining the new perms for the file, chmod has used the existing
perms from the "link" entry instead of the "file" entry. Can see this by
doing a   chmod g-r link  above instead, which yields:

total 6
drwx------   2 stuart   staff        512 Aug 29 18:25 .
drwxr-xr-x  49 stuart   staff       3584 Aug 29 18:25 ..
-rwx-wxrwx   1 stuart   staff          0 Aug 29 18:26 file
lrwxrwxrwx   1 stuart   staff          4 Aug 29 18:25 link -> file


-SRK


--
Dept of Computer Science        Internet: stuart@cs.jcu.edu.au
James Cook University
Townsville                      Tel: +61 77 814992
Qld 4811 Australia              FAX: +61 77 814029


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: OSF 2.0 problem with chmod on a link
  1994-08-29  8:17 OSF 2.0 problem with chmod on a link Stuart Kemp
@ 1994-09-01  6:50 ` Burkhard Neidecker-Lutz
  0 siblings, 0 replies; 2+ messages in thread
From: Burkhard Neidecker-Lutz @ 1994-09-01  6:50 UTC (permalink / raw)



<chmod problems with linked-to files deleted>

The problem is indeed there on both V2.0 and V3.0. The bug is only in
the chmod(1) program, not the chmod(2) system call. A quick workaround
for the moment (until the offical patch comes around) is to use the
chmod program from the GNU "fileutils" suite:

	gatekeeper.dec.com:pub/GNU/fileutils-3.9.tar.gz

Sorry for the inconvenience.

		Burkhard Neidecker-Lutz

GLASS Project, CEC Karlsruhe 
Advanced Technology Group, Digital Equipment Corporation
neideck@nestvx.enet.dec.com


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1994-09-01  6:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-08-29  8:17 OSF 2.0 problem with chmod on a link Stuart Kemp
1994-09-01  6:50 ` Burkhard Neidecker-Lutz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox