| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
PR: docs/124468
X-MFC with: r218998
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
| |
NFSv4 enabled.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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)
|
| |
|
|
|
|
|
|
| |
hacking it apart.
Discussed with: Christoph Mallon <christoph.mallon@gmx.de>
|
|
|
|
|
|
|
|
| |
while here, expand the 'naughty bits' comment in BUGS.
PR: 84265 and 84268
Reviewed by: keramida
Obtained from: hints from ceri, keramida
|
|
|
|
|
|
| |
- Add missing markup.
Submitted by: Eugene Grosbein <eugen@grosbein.pp.ru>
|
| |
|
|
|
|
| |
Sort standard sections in the (documented) preferred order.
|
| |
|
|
|
|
| |
OK'ed by: imp, core
|
| |
|
|
|
|
|
|
|
| |
handles them.
Reviewed by: audit
MFC after: 2 weeks
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Reviewed by: freebsd-standards
PR: 40709
Submitted by: Edward Brocklesby <nighthawk@unrealircd.com>, johan
|
|
|
|
| |
src/contrib/gcc/c-format.c .
|
|
|
|
|
|
|
| |
part of chmod(2) and sticky(8), but refer to those manpages instead.
PR: docs/35605
Submitted by: Gary W. Swearingen <swear@blarg.net>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
happy about it any more so change the useage so buildworld works again.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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)
|
|
|
|
|
|
|
| |
file.
PR: docs/34224
Submitted by: "Gary W. Swearingen" <swear@blarg.net>
|
|
|
|
|
|
| |
set WARNS=0.
Reviewed by: mike
|
| |
|
| |
|
|
|
|
| |
Submitted by: Mike Barcroft <mike@q9media.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
``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).
|
|
|
|
|
|
|
| |
is changed if -h option is given.
Requested by: bde
Obtained from: NetBSD (code part)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
PR: docs/27629
|
| |
|
|
|
|
|
|
|
| |
isn't.
Obtained from: NetBSD
Confirmed by: ru, wollman
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
although it
would be difficult both technically and in practise.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Three minor changes to the manpage of chmod(1).
1. At the description of -H option, I added that symlinks are
not followed _by default_ to show that links can be followed,
but the default chmod behavior is not to do so.
2. Moved a misplaced .Va file command up to the place it belongs.
3. Simplified the grammar that describes symbolic modes.
PR: 16749
Submitted by: Giorgos Keramidas <keramida@ceid.upatras.gr>
|
|
|
|
| |
Fix usage() style bug spotted by BDE.
|
| |
|