summaryrefslogtreecommitdiffstats
path: root/bin/chmod
Commit message (Collapse)AuthorAgeFilesLines
* Add META_MODE support.sjg2015-06-131-0/+18
|\ | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp
| * dirdeps.mk now sets DEP_RELDIRsjg2015-06-081-2/+0
| |
| * Merge sync of headsjg2015-05-272-51/+53
| |\
| * | Updated dependenciessjg2014-05-161-1/+0
| | |
| * | Updated dependenciessjg2014-05-101-0/+2
| | |
| * | Updated dependenciessjg2013-03-111-0/+1
| | |
| * | Updated dependenciessjg2013-02-161-2/+0
| | |
| * | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.marcel2012-08-221-0/+19
| | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net>
* | | Change directory permissions in pre-order.pluknet2015-06-041-2/+4
| |/ |/| | | | | | | | | | | | | In this order, it won't try to recurse into a directory for which it doesn't have permission, before changing that permission. This follows an existing behavior in other BSDs, linux, OS X. Obtained from: NetBSD
* | Standardise chmod, chflags, chown and chgrp recursive symlink processingsmh2015-04-292-51/+53
|/ | | | | | | | | | | chmod, chflags, chgrp, chmod and chown now affect symlinks in -R mode as defined in symlink(7); previously symlinks were silently ignored. Differential Revision: https://reviews.freebsd.org/D2316 Reviewed by: jilles MFC after: 1 month Relnotes: yes Sponsored by: Multiplay
* Update sticky(7) cross references.pluknet2011-05-131-3/+3
| | | | | PR: docs/124468 X-MFC with: r218998
* - Don't include both <sys/types.h> and <sys/param.h>trasz2009-09-021-9/+6
| | | | | | | | | | | | | | - Keep variables sorted - Fix logic error with -f and -v options - don't print the usual -v output if there was an error, whether or not we were passed -f - Don't call free(3) just before exit(2) - Whitespace fixes Submitted by: bde
* Make the code more readable and fix chmod(1) on symlinks withtrasz2009-08-311-13/+15
| | | | NFSv4 enabled.
* With NFSv4 ACLs, it is possible that applying a mode to an ACL whichtrasz2009-07-011-2/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | is identical to the mode computed from that ACL will modify the ACL. For example, mode computed from the following ACL is 0600: user:kamila:rwx--------C--:------:allow owner@:--x-----------:------:deny owner@:rw-p---A-W-Co-:------:allow group@:rwxp----------:------:deny group@:--------------:------:allow everyone@:rwxp---A-W-Co-:------:deny everyone@:------a-R-c--s:------:allow However, applying that mode (chmod 0600) changes the ACL into this: user:kamila:rwx-----------:------:deny user:kamila:rwx--------C--:------:allow owner@:--x-----------:------:deny owner@:rw-p---A-W-Co-:------:allow group@:rwxp----------:------:deny group@:--------------:------:allow everyone@:rwxp---A-W-Co-:------:deny everyone@:------a-R-c--s:------:allow In chmod(1) utility, there is an optimisation, which makes it not call chmod(2) if the mode of the file is the same as the new mode. Disable that optimisation for files which may have NFSv4 ACLs. Reviewed by: rwatson Approved by: re (kib)
* Staticify internal routines.delphij2009-06-231-2/+2
|
* Make the Monty Python quote more google friendly instead oftrhodes2009-01-261-3/+2
| | | | | | hacking it apart. Discussed with: Christoph Mallon <christoph.mallon@gmx.de>
* Note the implication of setting the 'w' permission on directories,trhodes2009-01-231-2/+7
| | | | | | | | while here, expand the 'naughty bits' comment in BUGS. PR: 84265 and 84268 Reviewed by: keramida Obtained from: hints from ceri, keramida
* - Mention umask(2) when first referring to it.ru2006-12-221-2/+6
| | | | | | - Add missing markup. Submitted by: Eugene Grosbein <eugen@grosbein.pp.ru>
* Expand contractions.ru2005-02-131-1/+1
|
* Add the new standard EXIT STATUS section where appropriate.ru2005-01-161-5/+5
| | | | Sort standard sections in the (documented) preferred order.
* /*- or .\"- or #- to begin license clauses.imp2005-01-102-1/+2
|
* Remove clause 3 from the UCB licenses.markm2004-04-062-8/+0
| | | | OK'ed by: imp, core
* Print unambiguous paths with -R -v.ru2003-12-161-1/+1
|
* Remove the code for parsing octal modes, since setmode(3) alreadytobez2003-10-311-22/+5
| | | | | | | handles them. Reviewed by: audit MFC after: 2 weeks
* Quiet warnings about copyright[].obrien2003-05-011-2/+2
|
* Remove now unnecessary main() prototype.mux2003-01-291-1/+0
|
* mdoc(7) police: In DESCRIPTION, list the options in pure alphabeticalru2002-11-251-14/+17
| | | | | | | | order, as required by style(9). Document the effect of the -f option on exit status. Fixed some spacing. Submitted by: bde Approved by: re
* Cross-reference setfacl(1).tjr2002-11-041-0/+1
|
* Return the ``u''trhodes2002-10-011-1/+1
|
* s/behaviour/behavior/ in the chmod(1) manualtrhodes2002-09-281-1/+1
|
* mdoc(7) police: kill hard sentence breaks and one double space.ru2002-08-091-5/+9
|
* Allow "-v -v" to mean very verbose.obrien2002-08-042-4/+23
| | | | | | Reviewed by: freebsd-standards PR: 40709 Submitted by: Edward Brocklesby <nighthawk@unrealircd.com>, johan
* Revert previous delta, which is not required with rev 1.5 ofsheldonh2002-07-151-1/+0
| | | | src/contrib/gcc/c-format.c .
* Don't duplicate the description of the sticky bit that is alreadykeramida2002-07-121-7/+4
| | | | | | | part of chmod(2) and sticky(8), but refer to those manpages instead. PR: docs/35605 Submitted by: Gary W. Swearingen <swear@blarg.net>
* Set WFORMAT=0, because our compiler currently complains about NULLsheldonh2002-07-111-0/+1
| | | | | | | | | | | | | | | | | | arg 2 to err() and friends, and warnings are promoted to errors. This allows the following revisions to be reverted: rev 1.39 src/bin/cp/cp.c rev 1.26 src/bin/chmod/chmod.c rev 1.40 src/bin/rm/rm.c The following revisions can already be reverted, because they were already covered by WFORMAT=0: rev 1.8 src/bin/ls/lomac.c rev 1.63 src/bin/ls/ls.c rev 1.8 src/bin/ps/lomac.c rev 1.34 src/bin/rcp/rcp.c
* err() is documented as allowing NULL for the format string but GCC isn'tdillon2002-07-101-1/+1
| | | | happy about it any more so change the useage so buildworld works again.
* Consistently use __FBSDIDobrien2002-06-301-2/+2
|
* Fix warnings inspired by lint, a commercial lint and WARNS=4markm2002-02-221-9/+8
|
* Modernization effort for bin/c*:imp2002-02-021-7/+5
| | | | | | | | | | | | o __P has been reoved o Old-style K&R declarations have been converted to new C89 style o register has been removed o prototype for main() has been removed (gcc3 makes it an error) o int main(int argc, char *argv[]) is the preferred main definition. o Attempt to not break style(9) conformance for declarations more than they already are. Approved by: arch@, new style(9)
* Refer to the original mode of the file, not the mode of the originalsheldonh2002-02-011-3/+3
| | | | | | | file. PR: docs/34224 Submitted by: "Gary W. Swearingen" <swear@blarg.net>
* Default to WARNS=2. Binary builds that cannot handle this must explicitlyobrien2001-12-041-2/+0
| | | | | | set WARNS=0. Reviewed by: mike
* mdoc(7) police: utilize the new .Ex macro.ru2001-08-151-3/+1
|
* Remove whitespace at EOL.dd2001-07-151-17/+17
|
* WARNS= -> WARNS?=dd2001-06-221-1/+1
| | | | Submitted by: Mike Barcroft <mike@q9media.com>
* Fixed the bug from the previous revision.ru2001-05-311-1/+1
| | | | | | | | | | | | | | | ``chown -h owner symlink'' did not set the symlink's owner if the file the symlink points to already had that owner: # ls -l alink afile -rw-r--r-- 1 nobody ru 0 May 31 14:14 afile lrwxr-xr-x 1 root ru 5 May 31 14:14 alink -> afile # ./chown -h -v nobody alink # ls -l alink afile -rw-r--r-- 1 nobody ru 0 May 31 14:14 afile lrwxr-xr-x 1 root ru 5 May 31 14:14 alink -> afile Similarly for chgrp(1) and chmod(1).
* Change noop option -h to do the real work. Now mode of symbolic linkru2001-05-282-20/+22
| | | | | | | is changed if -h option is given. Requested by: bde Obtained from: NetBSD (code part)
* Follow symbolic links named as command line arguments if run without -R.ru2001-05-281-2/+3
| | | | | | | | | | | | | | This is required by symlink(7), ``Commands not traversing a file tree'' subsection, third paragraph: : It is important to realize that this rule includes commands which may : optionally traverse file trees, e.g. the command ``chown file'' is : included in this rule, while the command ``chown -R file'' is not. For chown(8) and chgrp(1), this is also is compliance with the latest POSIX 1003.1-200x draft. MFC after: 1 week
* Make it clear that -P is the default.ru2001-05-251-0/+1
| | | | PR: docs/27629
* Make this compile with WARNS=2kris2001-05-202-0/+3
|
* The 'X' permission symbol is specified by POSIX.2, so don't say that itben2001-03-011-4/+2
| | | | | | | isn't. Obtained from: NetBSD Confirmed by: ru, wollman
OpenPOWER on IntegriCloud