summaryrefslogtreecommitdiffstats
path: root/bin/chmod (follow)
Commit message (Collapse)AuthorAgeFilesLines
* More Version 1 AT&T UNIX history.schwarze2019-09-061-2/+7
| | | | | | This became possible because copies of the original v1 manuals have shown up on the Internet some time ago. Reminded by Sevan Janiyan <venture37 at geeklan dot co dot uk>.
* More correction of section 3 layout. directory->opendir, fts->fts_open,deraadt2019-09-024-12/+12
| | | | | getcap->cgetent. pwcache->user_from_uid. And then repair references. ok jmc
* Use uid_from_user(3) and gid_from_group(3) in utilities thatmillert2018-09-161-7/+5
| | | | do repeated lookups. OK tb@
* markup flag arguments; ok jmc@ schwarze@anton2018-08-251-16/+26
|
* use .Fl macro for command line optionsschwarze2018-08-051-3/+3
|
* X is not restricted to just the + operator;jmc2017-06-071-12/+3
| | | | | diff from klemens nanni confirmed by otto
* chown: Remove SUPPORT_DOT ifdef - it's on by default for 22 yearsawolk2017-05-283-11/+15
| | | | | | | | | | The old syntax was deprecated 25 years ago when the utility was first standardised in IEEE Std 1003.2-1992 ("POSIX.2"). There was no POSIX version of chown with the dot separator. Let's stop pretending that it will ever go away. OK jung@, deraadt@, jmc@
* In chmod's symbolic mode without -h and -R flags, a missing FTS_COMFOLLOWtb2017-02-171-2/+4
| | | | | | | | | flag to fts_open led to the following behavior: the symlink's permissions were read, changed according to the command line, and transferred to the target file. chflags had a similar problem while chmod was unaffected. Regression introduced in r1.33. Reported by Christopher Wellons, thanks! ok guenther
* Delete useless setlocale(3) in src/bin/.schwarze2016-10-191-7/+4
| | | | | | Minor cleanup while here: return from main, static void __dead usage, etc. Based on a patch from Jan Stary <hans at stare dot cz>. Feedback and OK tb@, OK millert@.
* Symlinks to binaries should belong to root:bin.natano2016-09-111-6/+8
| | | | tweaks and ok guenther
* Document the -h option for chmod and chflags, rewording the chgrp(1) andguenther2015-12-315-21/+37
| | | | chown(8) manpages to be consistent and clearer about it as well.
* Change all tame callers to namechange to pledge(2).deraadt2015-10-091-3/+3
|
* oops! cannot tame the chmod case, because the kernel drops thederaadt2015-10-031-4/+1
| | | | setuid/setgid bits.
* the chmod & chflags codepaths can use tame "stdio rpath fattr". thederaadt2015-10-031-1/+7
| | | | | | chown codepath obviously cannot use tame -- once tame is activated the kernel prohibits changing uid/gid on a fd/file. ok guenther
* KNFderaadt2015-10-031-3/+2
|
* Avoid .Ns right after .Pf, it's pointless.schwarze2015-09-141-3/+3
| | | | In some cases, do additional cleanup in the immediate vicinity.
* Put fts_close() where missing.uebayasi2015-06-251-1/+2
| | | | | | | | | | Not bugs in short-lived commands that call exit() -> _exit() immediately, but for idempotency. Originally found in ls(1) by Valgrind. Changes for other commands are from deraadt@. Reviewed by me, tested in snapshots. OK deraadt@
* remove the first comma from constructs like ", and," and ", or,": you can usejmc2015-03-131-3/+3
| | | | | "and" and "or" to join sentence clauses, and you can use commas, but both hinders reading;
* Correct the handling of symbolic links by chmod/chgrp/chown/chflags,guenther2014-12-133-52/+49
| | | | | | making them more resistant to TOCTOU race conditions too. ok tobias@
* Properly validate ranges:tobias2014-12-131-8/+10
| | | | | | | - avoid out of boundary access on very short program names - fix compiler warning when converting values between 0 and INT_MAX ok deraadt, millert
* In case of invalid syntax like "chmod -Pr -w tf" (trailing mode letterschwarze2014-10-061-9/+13
| | | | | | | | in a group of option letters), do not silently ignore the syntax error and do something undefined, but instead error out properly. Found because miod@ said "read the code" (not to me, though). ok doug@
* Use errc/warnc to simplify code.guenther2014-05-211-3/+3
| | | | ok jca@ krw@
* lint is dead (long live the lint!), so stop using it as a cpp conditionalguenther2014-03-161-5/+1
| | | | | | (namespace pollution!) or talking about its opinion on code. ok krw@
* consistency fixes, to match the other ch* utils;jmc2014-01-281-6/+9
| | | | ok millert sobrado
* sticky bit is marked xsi;jmc2014-01-251-2/+10
|
* add a note to STANDARDS about non-root use of chown;jmc2014-01-231-2/+7
| | | | text from/ok millert
* paste in the fs.posix.setuid blurb from chown(1), as it'sjmc2014-01-211-1/+12
| | | | | | relevant here too; ok millert
* document that specifying ":group" (without an owner) is an extension;jmc2014-01-211-1/+7
| | | | ok millert sobrado
* - remove brackets in -H description: the information is quite relevantjmc2014-01-213-19/+36
| | | | | | | | | - note that not following sym links is default for -R - improve the description of -R, providing a mnemonic and a simpler description of what it does. also make the text for all these pages identical, as far as is possible ok millert schwarze
* remove some unnecessary sys/param.h inclusionsderaadt2012-12-041-2/+2
|
* ellipsis is not an optional argument; replace ".Ar file ..." -> ".Ar";sobrado2011-07-131-13/+5
| | | | | | simplify the symbolic modes format. ok (and fine-tuned by) jmc@, millert@
* zap from usage() as well; reminded by jmc@okan2011-03-091-3/+3
|
* remove non-standard flagokan2011-03-092-20/+7
| | | | ok jasper@, otto@
* add an EXIT STATUS section for /bin;jmc2010-09-034-14/+14
|
* sync comment with reality, -f won't be documented.jasper2010-01-121-2/+2
| | | | | as discussed with jmc@, otto@ and millert@ ok otto@ millert@
* rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt2009-10-271-15/+1
| | | | | | | unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
* - arch is superuser-onlymartynas2009-08-201-8/+5
| | | | | - opaque is gone with/ok tedu@, millert@
* sort list of flags.sobrado2009-08-141-3/+3
|
* bump the posix reference in STANDARDS to IEEE Std 1003.1-2008, with a fewjmc2009-02-083-9/+9
| | | | updates to follow;
* fix the synopsis for chown(8)sobrado2009-01-211-3/+7
|
* replace hardcoded exit values with .Ex macros;sobrado2009-01-043-15/+9
| | | | ok jmc@
* convert to new .Dd format;jmc2007-05-314-8/+8
|
* - consistent STANDARDS blurbjmc2007-05-293-12/+26
| | | | | | - note which options are extensions to POSIX discussed w/ deraadt otto millert
* shuffle the text somewhat to make the page read better;jmc2007-02-251-18/+15
| | | | use .Ex;
* document the "opaque", "arch", and "nodump" flags more fully;jmc2007-02-251-2/+21
| | | | | | closes documentation/5384 from Andrew Hamilton-Wright help from henning, otto, and weingart
* various small lint cleanups; ok ottoderaadt2006-04-251-5/+7
|
* `t' and `X' are now included in posix spec;jmc2006-01-261-9/+3
| | | | | | | bump the revision for the latest posix spec; problem reported by jonathan glaschke; ok millert
* some warning reductiontedu2006-01-251-15/+16
|
* an old diff from tech to convert to using strtonum and some other misctedu2006-01-251-36/+45
| | | | cleanup. from ray at cyth net
* kill unused var found by lint. ok deraadt@otto2005-11-291-7/+6
|