Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/17/84; site hplabs.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxn!ihnp4!hplabs!krishnan From: krishnan@hplabs.UUCP (N. K. Krishnan) Newsgroups: net.unix-wizards,net.bugs.4bsd Subject: [f]chmod in 4.2BSD Message-ID: <2043@hplabs.UUCP> Date: Mon, 15-Jul-85 12:28:41 EDT Article-I.D.: hplabs.2043 Posted: Mon Jul 15 12:28:41 1985 Date-Received: Wed, 17-Jul-85 06:15:05 EDT Distribution: net Organization: Hewlett Packard Labs, Palo Alto CA Lines: 16 Xref: watmath net.unix-wizards:13849 net.bugs.4bsd:1607 chmod(1) of a symbolic link changes the mode of the target of the symbolic link. This is beacuse chmod(2) follows symbolic links. Is there any problem with chmod(2) not following symbolic links? If chmod(2) does not follow symbolic links it could be similar to [f]chown(2). To change mode of the symbolic link one could use chmod(name,mode); To change the mode of the target one could use fchmod(open(name,openmode),mode); All of this done with appropriate checking, of course.