#
331722 |
|
29-Mar-2018 |
eadler |
Revert r330897:
This was intended to be a non-functional change. It wasn't. The commit message was thus wrong. In addition it broke arm, and merged crypto related code.
Revert with prejudice.
This revert skips files touched in r316370 since that commit was since MFCed. This revert also skips files that require $FreeBSD$ property changes.
Thank you to those who helped me get out of this mess including but not limited to gonzo, kevans, rgrimes.
Requested by: gjb (re)
|
#
330897 |
|
14-Mar-2018 |
eadler |
Partial merge of the SPDX changes
These changes are incomplete but are making it difficult to determine what other changes can/should be merged.
No objections from: pfg
|
#
306977 |
|
10-Oct-2016 |
sevan |
MFC r306582: "POSIX doesn't specify -h." - r1.27 from NetBSD http://man.openbsd.org/?query=chmod&apropos=0&sec=0&arch=default&manpath=POSIX-2013
PR: 212337 Approved by: bcr (mentor) Obtained from: NetBSD Differential Revision: https://reviews.freebsd.org/D8118
|
#
302408 |
|
07-Jul-2016 |
gjb |
Copy head@r302406 to stable/11 as part of the 11.0-RELEASE cycle. Prune svn:mergeinfo from the new branch, as nothing has been merged here.
Additional commits post-branch will follow.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation |
#
283997 |
|
04-Jun-2015 |
pluknet |
Change directory permissions in pre-order. 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
|
#
282208 |
|
28-Apr-2015 |
smh |
Standardise chmod, chflags, chown and chgrp recursive symlink processing
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
|
#
196753 |
|
02-Sep-2009 |
trasz |
- Don't include both <sys/types.h> and <sys/param.h>
- 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
|
#
196711 |
|
31-Aug-2009 |
trasz |
Make the code more readable and fix chmod(1) on symlinks with NFSv4 enabled.
|
#
195243 |
|
01-Jul-2009 |
trasz |
With NFSv4 ACLs, it is possible that applying a mode to an ACL which 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)
|
#
194795 |
|
23-Jun-2009 |
delphij |
Staticify internal routines.
|
#
139969 |
|
10-Jan-2005 |
imp |
/*- or .\"- or #- to begin license clauses.
|
#
127958 |
|
06-Apr-2004 |
markm |
Remove clause 3 from the UCB licenses.
OK'ed by: imp, core
|
#
123565 |
|
16-Dec-2003 |
ru |
Print unambiguous paths with -R -v.
|
#
121794 |
|
31-Oct-2003 |
tobez |
Remove the code for parsing octal modes, since setmode(3) already handles them.
Reviewed by: audit MFC after: 2 weeks
|
#
114433 |
|
01-May-2003 |
obrien |
Quiet warnings about copyright[].
|
#
110057 |
|
29-Jan-2003 |
mux |
Remove now unnecessary main() prototype.
|
#
101297 |
|
04-Aug-2002 |
obrien |
Allow "-v -v" to mean very verbose.
Reviewed by: freebsd-standards PR: 40709 Submitted by: Edward Brocklesby <nighthawk@unrealircd.com>, johan
|
#
99743 |
|
10-Jul-2002 |
dillon |
err() is documented as allowing NULL for the format string but GCC isn't happy about it any more so change the useage so buildworld works again.
|
#
99109 |
|
30-Jun-2002 |
obrien |
Consistently use __FBSDID
|
#
91078 |
|
22-Feb-2002 |
markm |
Fix warnings inspired by lint, a commercial lint and WARNS=4
|
#
90107 |
|
02-Feb-2002 |
imp |
Modernization effort for bin/c*:
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)
|
#
77522 |
|
31-May-2001 |
ru |
Fixed the bug from the previous revision.
``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).
|
#
77342 |
|
28-May-2001 |
ru |
Change noop option -h to do the real work. Now mode of symbolic link is changed if -h option is given.
Requested by: bde Obtained from: NetBSD (code part)
|
#
77333 |
|
28-May-2001 |
ru |
Follow symbolic links named as command line arguments if run without -R.
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
|
#
76871 |
|
20-May-2001 |
kris |
Make this compile with WARNS=2
|
#
64013 |
|
29-Jul-2000 |
peter |
Optimize out no-op chmod() syscalls.
|
#
62887 |
|
10-Jul-2000 |
kris |
Don't call warn() with no format string. This is potentially exploitable, although it would be difficult both technically and in practise.
|
#
53824 |
|
28-Nov-1999 |
obrien |
Default to not -v. Fix usage() style bug spotted by BDE.
|
#
53780 |
|
27-Nov-1999 |
obrien |
Add "-v".
|
#
50471 |
|
27-Aug-1999 |
peter |
$Id$ -> $FreeBSD$
|
#
49544 |
|
08-Aug-1999 |
chris |
Document -f flag:
-f Do not display a diagnostic message if chmod could not modify the mode for file.
|
#
41842 |
|
16-Dec-1998 |
imp |
Free memory obtained from setmode.
Obtained from: OpenBSD
|
#
36002 |
|
13-May-1998 |
charnier |
Restore original Lite-2 sccsid. Restore include of sys/types.h.
|
#
35773 |
|
06-May-1998 |
charnier |
Correct use of .Nm and other cosmetics. Add rcsid. Remove unused #inc.
|
#
24348 |
|
28-Mar-1997 |
imp |
compare return value from getopt against -1 rather than EOF, per the final posix standard on the topic.
|
#
22988 |
|
22-Feb-1997 |
peter |
Revert $FreeBSD$ to $Id$
|
#
21673 |
|
14-Jan-1997 |
jkh |
Make the long-awaited change from $Id$ to $FreeBSD$
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.
|
#
20411 |
|
14-Dec-1996 |
steve |
Cleanup man page and -Wall cleaning.
|
#
17496 |
|
10-Aug-1996 |
adam |
chmod(2) directories once only (was twice)
|
#
7165 |
|
19-Mar-1995 |
joerg |
You will find enclosed some changes to make gcc -Wall more happy in /usr/src/bin. Note that some patches are still needed in that directory.
I (Joerg) finished most of Philippe's cleanup. /bin/sh will still need *allot* of work, however.
Submitted by: charnier@lirmm.fr (Philippe Charnier)
|
#
6170 |
|
03-Feb-1995 |
bde |
Include <limits.h> to get the definition of INT_MAX - don't depend on namespace pollution in <time.h>.
|
#
3044 |
|
24-Sep-1994 |
dg |
Added $Id$
|
#
1557 |
|
26-May-1994 |
rgrimes |
This commit was generated by cvs2svn to compensate for changes in r1556, which included commits to RCS files with non-trunk default branches.
|
#
1556 |
|
26-May-1994 |
rgrimes |
BSD 4.4 Lite bin Sources
|