Commit Graph

52 Commits

Author SHA1 Message Date
reed 5fe28dc7e5 Fix typo or mispelling. 2006-06-17 04:58:14 +00:00
reed ad5640a8e8 Fix mispelling. 2006-06-17 02:22:02 +00:00
wiz fe8b349524 Add xref to chflags(1). From Andre Luiz de Oliveira in PR 32265. 2005-12-09 20:27:02 +00:00
xtraeme baf27f3e61 Kill __P(), final round. 2005-03-16 02:55:10 +00:00
xtraeme c6e5881985 Kill __P(), use ANSI function declarations; WARNS=3 2005-03-16 02:08:52 +00:00
dsl e045a0f96e Allow a numeric ID to be preceeded by '#' to avoid the name lookup.
Update man pages to match.
2003-09-25 10:30:10 +00:00
agc 326b2259b7 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22366, verified by myself.
2003-08-07 11:25:11 +00:00
wiz 990562bfef .Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
2003-02-25 10:34:36 +00:00
wiz 1abdd319af No trailing whitespace, please. 2003-01-19 00:13:21 +00:00
jrf bf7aac421e Added -v extension. Approved by Klaus (kleink). 2003-01-18 18:37:07 +00:00
bjh21 525b050279 Align default behaviour of chmod, chgrp, chown, and chflags with symlink(7),
IEEE 1003.1-2001 (where applicable) and other systems, by follwoing symlinks
on the command line and changing their targets' modes/ownership/flags, rather
than ignoring them.

This fixes PR standards/563 (at last).
2002-07-07 11:44:02 +00:00
ross 2a76afae02 Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:36:18 +00:00
wiz 7986ed946b Whitespace nits. 2002-01-19 03:07:54 +00:00
mike ba39d0a858 Correct display of invalid username error and cache duplicate password
lookup (fixes PR#11695).
2000-12-17 22:47:14 +00:00
enami 7652453dd5 Initialize variables which I recently changed storage class from file global
to auto.  Pointed out by Launey Thomas <ljt@alum.mit.edu>.
2000-08-25 06:25:59 +00:00
enami 99432a2167 - Ignore dangling symlink found while following.
- Report the name of function when fts_open failed.
- Wrap long line.
2000-08-04 07:51:32 +00:00
enami b58d7e72eb - Make some global variable function local.
- Remove whitespace at the end of line.
- Put an empty line if function has no local variable.
2000-08-04 07:44:07 +00:00
enami 2fffbc9c4c No space is allowed between owner and optional :group. 2000-07-07 13:21:32 +00:00
darrenr 571cb0a210 change the parsing of chown user[:gid] to the following:
1. if there is a colon present, use that as a separator for user:group

2. if there is no colon, attempt to convert the arg into a username,
   searching backwards in the string for a '.' for us.er.group

3. if the arg doesn't match a username and has a '.' in it, split it
   up and try user.group
2000-05-10 12:22:34 +00:00
drochner 85cbf55d16 Since our gcc doesn't warn about NULL format strings anymore, we can
fix the incorrect err(1, "%s", "") et al.
Closes PR bin/7592 by cgd.
1999-11-09 15:06:30 +00:00
garbled d1407362ba More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages.  Many more to
come.
1999-03-22 18:43:46 +00:00
kleink d08845709f Minor cleanups; g/c a dead assignment variable. 1999-03-14 19:36:05 +00:00
kleink ce8b13e364 Oops, missed global data in static sweep. 1999-03-14 01:47:09 +00:00
kleink 882fe49366 Add KNF-style RCS Id at start of file. 1999-03-14 01:42:20 +00:00
kleink afe8703841 * Use id_t instead of making guesses about the definitions of [gu]id_t.
* Declare internal helper functions static.
* G/C unused globals and declarations.
1999-03-14 01:39:48 +00:00
kim 463d00633e Allow "chown/chgrp -R -h" so we can change trees with symbolic links without
affecting stuff pointed to.  Don't allow "-R -L -h" as it would not make sense
(at least not to me) to follow all symbolic links and then use lchown.
1998-10-05 21:37:38 +00:00
kleink b90b902782 Update a comment: neither does POSIX define the `-h' option, nor does it
define symbolic links.
1997-12-21 18:34:30 +00:00
kleink 65d1679f46 Add a paragraph to document the clearing of the setuid and setgid bits unless
invoked by the super-user.
1997-12-21 18:11:19 +00:00
kleink 96720d8f9c Remove a paragraph obsoleted by the recently implemented `-h' option; add
Xref to lchown(2).
1997-11-26 17:37:53 +00:00
lukem 44c22033e4 use CPPFLAGS instead of CFLAGS 1997-10-23 06:31:59 +00:00
lukem 98ec13d8d9 WARNSify 1997-10-18 04:08:16 +00:00
lukem 188f2b35aa WARNSify 1997-10-18 04:08:11 +00:00
enami dd88a36ade Fix typo; `symbolic link' -> `a symbolic link'. 1997-10-17 08:10:22 +00:00
enami 38b64e4e86 Fix typo; `symbolic link' -> `a symbolic link'. 1997-10-17 08:10:10 +00:00
enami 136d7f791b Add -h option to usage. 1997-10-11 03:14:12 +00:00
enami b6cd49460e Document -h flag, option to manupilate symbolic link. 1997-10-06 13:33:54 +00:00
enami 7bb0a4feb9 Change the noop flag -h to do the real work. Now if -h is given,
owner/group of symbolic link is changed.
1997-10-06 13:28:00 +00:00
kleink 52a3f39615 POSIX.2 utilities must call setlocale(LC_ALL, ""); 1997-06-26 23:18:05 +00:00
jtc 93eaf3dc87 A user name can be invalid, but not illegal 1997-05-02 01:36:18 +00:00
mikel d917a6370d RCSid police; getopt() return type police; rindex() -> strrchr() 1997-03-06 06:26:07 +00:00
jtc 642d0e3938 Remove chownerr() function completely and use warn() instead.
chownerr() would prematurely terminate the program if a error occured
(lack of permissions, nonexistant file, etc.), but POSIX.2 requires
that the chown and chgrp utilities continue on.  Removing the code
that caused the program to exit turned chownerr into a wrapper
around warn(), so why not call warn() directly.

Also changed the file traversal logic so that directories are not
chown()'d twice.  This only occured when the -R option was not used.
1995-06-03 07:01:19 +00:00
jtc e095500d0c In chownerr(), check to see if new group is the effective group id as
well as in the supplementary group id array.
1995-06-03 06:09:03 +00:00
cgd d8806814a6 specify man pages the new way. 1994-12-22 11:32:57 +00:00
cgd a6ef9be155 clean up import 1994-06-18 20:55:54 +00:00
jtc abfeba19ee Getgroup's second argument is now a gid_t ptr. 1994-04-01 01:19:08 +00:00
jtc 5187624c00 Use ".St -p1003.2-92" macro instead of spelling it out. 1993-11-30 00:36:01 +00:00
jtc cd816f9f1e As of POSIX.2, getopt returns -1 instead of EOF on error. Changed the code
to match just in case someone changes the value of EOF.
1993-11-19 20:02:53 +00:00
mycroft e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
mycroft dfb9caab49 Add RCS indentifiers. 1993-08-01 07:32:48 +00:00
mycroft cda4f8f6ee Add RCS identifiers. 1993-08-01 05:37:30 +00:00