#
2e370a5c |
| 26-May-2009 |
Oleksandr Tymoshenko <gonzo@FreeBSD.org> |
Merge from HEAD
|
#
a6412d5d |
| 24-May-2009 |
Jilles Tjoelker <jilles@FreeBSD.org> |
Fix chflags -h in various cases: do not use link target's flags as original.
Patch slightly changed to align more with chmod.c.
PR: bin/131999 Submitted by: bde Approved by: ed (mentor) MFC after:
Fix chflags -h in various cases: do not use link target's flags as original.
Patch slightly changed to align more with chmod.c.
PR: bin/131999 Submitted by: bde Approved by: ed (mentor) MFC after: 3 weeks
show more ...
|
Revision tags: release/7.2.0_cvs, release/7.2.0, release/7.1.0_cvs, release/7.1.0, release/6.4.0_cvs, release/6.4.0 |
|
#
1b21ffa6 |
| 09-Mar-2008 |
Robert Watson <rwatson@FreeBSD.org> |
Make chflags(1) more chmod(1)-like (and more feature complete):
- Add -v to print file names as they are processed; -vv prints the flags change as well. - Add -f to ignore failures with the same s
Make chflags(1) more chmod(1)-like (and more feature complete):
- Add -v to print file names as they are processed; -vv prints the flags change as well. - Add -f to ignore failures with the same semantics as chflags(1), neither printing an error nor affecting the return code. - Don't try to set the flags if they won't change.
I made minor cosmetic tweaks to the code in the patch.
MFC after: 1 week PR: 112827 Submitted by: Ighighi <ighighi at gmail.com>
show more ...
|
Revision tags: release/7.0.0_cvs, release/7.0.0, release/6.3.0_cvs, release/6.3.0, release/6.2.0_cvs, release/6.2.0, release/5.5.0_cvs, release/5.5.0, release/6.1.0_cvs, release/6.1.0, release/6.0.0_cvs, release/6.0.0 |
|
#
7e81a152 |
| 15-May-2005 |
Dima Dorfman <dd@FreeBSD.org> |
Add an interface to the lchflags(2) syscall. The new -h option is analogous to chmod(1)'s -h. It allows setting flags on symbolic links, which *do* exist in 5.x+ despite a claim to the contrary in th
Add an interface to the lchflags(2) syscall. The new -h option is analogous to chmod(1)'s -h. It allows setting flags on symbolic links, which *do* exist in 5.x+ despite a claim to the contrary in the chflags(1) man page.
Suggested by: Chris Dillon
show more ...
|
Revision tags: release/5.4.0_cvs, release/5.4.0, release/4.11.0_cvs, release/4.11.0 |
|
#
9ddb49cb |
| 10-Jan-2005 |
Warner Losh <imp@FreeBSD.org> |
/*- or .\"- or #- to begin license clauses.
|
Revision tags: release/5.3.0_cvs, release/5.3.0 |
|
#
26663dcb |
| 03-Oct-2004 |
Stefan Farfeleder <stefanf@FreeBSD.org> |
Garbage collect a variable whose value was never read.
|
Revision tags: release/4.10.0_cvs, release/4.10.0 |
|
#
6195fb41 |
| 06-Apr-2004 |
Mark Murray <markm@FreeBSD.org> |
Remove clause 3 from the UCB licenses.
OK'ed by: imp, core
|
Revision tags: release/5.2.1_cvs, release/5.2.1 |
|
#
3004d1ed |
| 18-Feb-2004 |
Ceri Davies <ceri@FreeBSD.org> |
Only call chflags() on directories once.
Approved by: ru MFC after: 1 week
|
Revision tags: release/5.2.0_cvs, release/5.2.0, release/4.9.0_cvs, release/4.9.0, release/5.1.0_cvs, release/5.1.0 |
|
#
dbd64020 |
| 01-May-2003 |
David E. O'Brien <obrien@FreeBSD.org> |
Make GCC 3.3 STFU about copyright[].
|
Revision tags: release/4.8.0_cvs, release/4.8.0, release/5.0.0_cvs, release/5.0.0, release/4.7.0_cvs |
|
#
f4ac32de |
| 05-Sep-2002 |
David Malone <dwmalone@FreeBSD.org> |
ANSIify function definitions. Add some constness to avoid some warnings. Remove use register keyword. Deal with missing/unneeded extern/prototypes. Some minor type changes/casts to avoid warnings.
R
ANSIify function definitions. Add some constness to avoid some warnings. Remove use register keyword. Deal with missing/unneeded extern/prototypes. Some minor type changes/casts to avoid warnings.
Reviewed by: md5
show more ...
|
#
3a7fc8ce |
| 19-Aug-2002 |
Juli Mallett <jmallett@FreeBSD.org> |
Remove local prototypes for main().
|
Revision tags: release/4.6.2_cvs, release/4.6.2, release/4.6.1, release/4.6.0_cvs |
|
#
f1bb2cd2 |
| 22-Mar-2002 |
Warner Losh <imp@FreeBSD.org> |
remove __P
|
Revision tags: release/4.5.0_cvs, release/4.4.0_cvs |
|
#
9f5b04e9 |
| 10-Dec-2001 |
David Malone <dwmalone@FreeBSD.org> |
Style improvements recommended by Bruce as a follow up to some of the recent WARNS commits. The idea is:
1) FreeBSD id tags should follow vendor tags. 2) Vendor tags should not be compiled (though c
Style improvements recommended by Bruce as a follow up to some of the recent WARNS commits. The idea is:
1) FreeBSD id tags should follow vendor tags. 2) Vendor tags should not be compiled (though copyrights probably should). 3) There should be no blank line between including cdefs and __FBSDIF.
show more ...
|
#
f614104a |
| 03-Dec-2001 |
Mark Murray <markm@FreeBSD.org> |
Slight makefile style.
Use __FBSDID().
|
#
8e46d9c2 |
| 28-May-2001 |
Ruslan Ermilov <ru@FreeBSD.org> |
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 re
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
show more ...
|
#
bfa27aef |
| 20-May-2001 |
Kris Kennaway <kris@FreeBSD.org> |
Silence WARNS=2 and BDECFLAGS on alpha and i386
MFC after: 1 week
|
Revision tags: release/4.3.0_cvs, release/4.3.0, release/4.2.0, release/4.1.1_cvs, release/4.1.0, release/3.5.0_cvs |
|
#
141d77b8 |
| 17-Jun-2000 |
Josef Karthauser <joe@FreeBSD.org> |
Switch over to using the new fflagstostr and strtofflags library calls.
|
#
508424d1 |
| 04-Apr-2000 |
Bruce Evans <bde@FreeBSD.org> |
Fixed prototype for setflags(). setflags() returns int, not u_long, and "extern" in function prototypes is a style bug. The type mismatch broke chflags(1) on i386's with 64-bit longs and may have b
Fixed prototype for setflags(). setflags() returns int, not u_long, and "extern" in function prototypes is a style bug. The type mismatch broke chflags(1) on i386's with 64-bit longs and may have broken it on alphas.
show more ...
|
Revision tags: release/4.0.0_cvs |
|
#
418d67b0 |
| 05-Feb-2000 |
Josef Karthauser <joe@FreeBSD.org> |
Revert part of the last commit, remove {g|s}etflags from the libc interface, and statically link them to the programs using them. These functions, upon reflection and discussion, are too generically
Revert part of the last commit, remove {g|s}etflags from the libc interface, and statically link them to the programs using them. These functions, upon reflection and discussion, are too generically named for a library interface with such specific functionality. Also the api that they use, whilst ok for private use, isn't good enough for a libc function.
Additionally there were complications with the build/install-world process. It depends heavily upon xinstall, which got broken by the change in api, and caused bootstrap problems and general mayhem.
There is work in progress to address future problems that may be caused by changes in install-chain tools, and better names for {g|s}etflags can be derived when some future program requires them. For now the code has been left in src/lib/libc/gen (it started off in src/bin/ls).
It's important to provide library functions for manipulating file flag strings if we ever want this interface to be adopted outside of the source tree, but now isn't necessarily the right moment with 4.0-release just around the corner.
Approved: jkh
show more ...
|
#
18c0eedd |
| 27-Jan-2000 |
Josef Karthauser <joe@FreeBSD.org> |
Historically file flags (schg, uschg, etc) have been converted from string to u_long and back using two functions, flags_to_string and string_to_flags, which co-existed with 'ls'. As time has progre
Historically file flags (schg, uschg, etc) have been converted from string to u_long and back using two functions, flags_to_string and string_to_flags, which co-existed with 'ls'. As time has progressed more and more other tools have used these private functions to manipulate the file flags.
Recently I moved these functions from /usr/src/bin/ls to libutil, but after some discussion with bde it's been decided that they really ought to go in libc.
There are two already existing libc functions for manipulating file modes: setmode and getmode. In keeping with these flags_to_string has been renamed getflags and string_to_flags to setflags.
The manual page could probably be improved upon ;)
show more ...
|
Revision tags: release/3.4.0_cvs |
|
#
dd562b0e |
| 21-Nov-1999 |
Philippe Charnier <charnier@FreeBSD.org> |
Correct use of .Nm. Add DIAGNOSTICS section. Add rcsid
|
Revision tags: release/3.3.0_cvs, release/3.2.0, release/3.1.0, release/3.0.0, release/2.2.8 |
|
#
fa146c53 |
| 06-Dec-1998 |
Archie Cobbs <archie@FreeBSD.org> |
Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]).
|
Revision tags: release/2.2.7, release/2.2.6, release/2.2.5_cvs, release/2.2.2_cvs |
|
#
1c8af878 |
| 29-Mar-1997 |
Warner Losh <imp@FreeBSD.org> |
compare return value from getopt against -1 rather than EOF, per the final posix standard on the topic.
|
Revision tags: release/2.2.1_cvs, release/2.2.0, release/2.1.7_cvs, release/2.1.6_cvs, release/2.1.6.1, release/2.1.5_cvs, release/2.1.0_cvs, release/2.0.5_cvs |
|
#
7799f52a |
| 30-May-1995 |
Rodney W. Grimes <rgrimes@FreeBSD.org> |
Remove trailing whitespace.
|
Revision tags: release/2.0, release/1.1.5.1_cvs |
|
#
9b50d902 |
| 27-May-1994 |
Rodney W. Grimes <rgrimes@FreeBSD.org> |
BSD 4.4 Lite Usr.bin Sources
|