aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/chown
Commit message (Collapse)AuthorAgeFilesLines
* Backed out previous commit. chown(8) doesn't follow symlinks byBruce Evans1998-05-031-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | default, at least in BSD. This used to be automatic, because chown(2) didn't follow symlinks. When chown(2) was changed to follow symlinks in BSD4.4, chown(8) was changed to not follow symlinks by default. The previous commit broke this. The first victim was bsd.prog.mk, which uses a plain chown in an attempt to change the ownership of the symlinks to `dm' in /usr/games. This fails when it is done before dm is installed, or messes up the ownership of dm if dm is installed. Unfixed problems: 1. When lchown(2) was implemented, chown(8) wasn't changed to implement the historical behaviour of changing ownership of symlinks. I'm not sure if it should have been. The -HLP options give more complete control, but they unfortunately don't apply unless the -R option is specified (a problem shared with other commands, e.g., cp; I guess we're supposed to use -R even for non-recursive traversals). 2. If we implement the historical behaviour, then -h would become a no-op and should be left undocumented. 3. The man page suggests that without option -h, all symlinks (to files specified in the command line?) are followed. It's not clear what "the file" is. These bugs were introduced when -h was documented. 4. The correct interaction of -h with the other flags is not clear. Notes: svn path=/head/; revision=35632
* Don't ignore symbolic links in the absence of -h, -H or -L options.Wolfgang Helbig1998-05-021-2/+1
| | | | | | | Instead change the user ID/group ID of the file that the link points to. Notes: svn path=/head/; revision=35622
* Allow -R and -h to be combined as long as no symlink-following flagsJordan K. Hubbard1998-03-091-2/+2
| | | | | | | | are also requested. Submitted by: Andre Albsmeier <andre.albsmeier@mchp.siemens.de> Notes: svn path=/head/; revision=34399
* Chown(8) compiled with -DSUPPORT_DOT (backward compatibility) doesWolfram Schneider1997-09-211-6/+6
| | | | | | | | | | | | | first check for a `.' and then for `:' as a delimiter. Usernames with a dot will fail. # chown r.r:bin /tmp/bla chown: r:bin: illegal group name Fix: first check for a `:' and then for a `.' Notes: svn path=/head/; revision=29656
* Cosmetic in man page. Sync usage() with man page.Philippe Charnier1997-09-043-19/+25
| | | | Notes: svn path=/head/; revision=29105
* Correct error message when the superuser tries to changeSteve Price1997-08-241-13/+11
| | | | | | | | | | the group of immutable files. PR: bin/3445 Submitted by: Pius Fischer <pius@ienet.com> Notes: svn path=/head/; revision=28643
* Activate the -h flag which tells chown/chgrp to work on the symlink itselfPeter Wemm1997-03-313-38/+29
| | | | | | | | using lchown(). Most of the code was already here, the option was recognised but ignored for SYSV/POSIX.2(?) compatability. Notes: svn path=/head/; revision=24446
* compare return value from getopt against -1 rather than EOF, per the finalWarner Losh1997-03-311-1/+1
| | | | | | | posix standard on the topic. Notes: svn path=/head/; revision=24428
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-221-1/+1
| | | | Notes: svn path=/head/; revision=22997
* Sort cross references.Wolfram Schneider1997-01-201-1/+1
| | | | Notes: svn path=/head/; revision=21880
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-141-1/+1
| | | | | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise. Notes: svn path=/head/; revision=21673
* [HISTORY] command appeared in Version 1 AT&T UNIXWolfram Schneider1996-08-291-0/+6
| | | | | | | Obtained from: A Quarter Century of UNIX, Peter H. Salus, page 41 Notes: svn path=/head/; revision=17891
* chown(8) and chgrp(1) directories once onlyAdam David1996-08-141-5/+4
| | | | Notes: svn path=/head/; revision=17597
* Remove trailing whitespace.Rodney W. Grimes1995-05-301-5/+5
| | | | Notes: svn path=/head/; revision=8857
* groups[] is of type gid_t.David Greenman1994-09-231-1/+1
| | | | Notes: svn path=/head/; revision=3032
* Get rid of update. Make man page installation work with our schemeGarrett Wollman1994-08-051-2/+2
| | | | | | | (and rename a few in the process). Notes: svn path=/head/; revision=1863
* BSD 4.4 Lite usr.sbin SourcesRodney W. Grimes1994-05-264-0/+567
Notes: svn path=/cvs2svn/branches/WIN_TUE_NL/; revision=1553