aboutsummaryrefslogtreecommitdiff
path: root/bin/chflags
Commit message (Collapse)AuthorAgeFilesLines
* mdoc: drop redundant .Pp and .LP callsUlrich Spörlein2010-10-081-1/+0
| | | | | | | They have no effect when coming in pairs, or before .Bl/.Bd Notes: svn path=/head/; revision=213573
* Staticify internal routines.Xin LI2009-06-231-2/+2
| | | | Notes: svn path=/head/; revision=194795
* Fix chflags -h in various cases: do not use link target's flags as original.Jilles Tjoelker2009-05-241-1/+1
| | | | | | | | | | | | Patch slightly changed to align more with chmod.c. PR: bin/131999 Submitted by: bde Approved by: ed (mentor) MFC after: 3 weeks Notes: svn path=/head/; revision=192687
* Make chflags(1) more chmod(1)-like (and more feature complete):Robert Watson2008-03-092-17/+43
| | | | | | | | | | | | | | | | | - 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> Notes: svn path=/head/; revision=176976
* Fix probably copy&paste from chmod(1) - we change file flags here, not mode.Pawel Jakub Dawidek2007-05-281-1/+1
| | | | Notes: svn path=/head/; revision=170045
* Use .Cm for all key words, not just the ones I added. More in line withTom Rhodes2006-03-101-12/+12
| | | | | | | | | mdoc(7) according to ru. Requested by: ru Notes: svn path=/head/; revision=156536
* Slightly better markup.Tom Rhodes2006-03-061-8/+8
| | | | | | | Discussed with: ru Notes: svn path=/head/; revision=156338
* Instead of just hinting at available octets, list some.Tom Rhodes2006-03-041-1/+43
| | | | | | | | | Mention that the setting of securelevel may affect one's ability to alter flags. Xref security.7. Bump doc date. Notes: svn path=/head/; revision=156269
* Sort sections.Ruslan Ermilov2005-06-141-5/+5
| | | | | | | Approved by: re (blanket) Notes: svn path=/head/; revision=147363
* Add an interface to the lchflags(2) syscall. The new -h option isDima Dorfman2005-05-142-12/+35
| | | | | | | | | | | 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 Notes: svn path=/head/; revision=146224
* Fix a few markup nits in previous commit.Tom Rhodes2005-02-251-6/+6
| | | | | | | Noticed by: ru, who else? :) Notes: svn path=/head/; revision=142412
* Add information on utilities which may or may not be aware of file flags.Tom Rhodes2005-02-231-1/+18
| | | | | | | | PR: 55653 Submitted by: Tony Maher <tonymaher@optushome.com.au> (original version) Notes: svn path=/head/; revision=142339
* WARNS?=6 is already in bin/Makefile.inc, so remove this one.Xin LI2005-01-271-1/+0
| | | | Notes: svn path=/head/; revision=140901
* Add the new standard EXIT STATUS section where appropriate.Ruslan Ermilov2005-01-161-1/+1
| | | | | | | Sort standard sections in the (documented) preferred order. Notes: svn path=/head/; revision=140353
* /*- or .\"- or #- to begin license clauses.Warner Losh2005-01-102-1/+2
| | | | Notes: svn path=/head/; revision=139969
* chflags compiles with WARNS?=6.Stefan Farfeleder2004-10-031-0/+1
| | | | Notes: svn path=/head/; revision=136089
* Garbage collect a variable whose value was never read.Stefan Farfeleder2004-10-031-5/+4
| | | | Notes: svn path=/head/; revision=136088
* Group equivalent flags together and delete the `aliases' section.Giorgos Keramidas2004-09-211-13/+8
| | | | | | | | PR: docs/70856 Submitted by: Rostislav Krasny <rosti_bsd@yahoo.com> Notes: svn path=/head/; revision=135542
* Remove clause 3 from the UCB licenses.Mark Murray2004-04-062-8/+0
| | | | | | | OK'ed by: imp, core Notes: svn path=/head/; revision=127958
* Only call chflags() on directories once.Ceri Davies2004-02-181-5/+4
| | | | | | | | Approved by: ru MFC after: 1 week Notes: svn path=/head/; revision=125972
* mdoc(7) police: Fix document date.Ruslan Ermilov2003-05-161-1/+1
| | | | | | | Approved by: re (blanket) Notes: svn path=/head/; revision=115081
* Make GCC 3.3 STFU about copyright[].David E. O'Brien2003-05-011-1/+1
| | | | Notes: svn path=/head/; revision=114423
* Document how to clear flags with negative-logic, currently onlyJohan Karlsson2003-03-241-4/+9
| | | | | | | | | | | the nodump flag. PR: 46912 Reported by: dave@syix.com <dave@syix.com> MFC after: 2 weeks Notes: svn path=/head/; revision=112557
* We can simplify this Makefile down to a single line now.David E. O'Brien2003-02-191-4/+0
| | | | Notes: svn path=/head/; revision=111132
* ANSIify function definitions.David Malone2002-09-041-4/+2
| | | | | | | | | | | | 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 Notes: svn path=/head/; revision=102944
* Remove local prototypes for main().Juli Mallett2002-08-191-1/+0
| | | | Notes: svn path=/head/; revision=102084
* Reorder for style.Mark Murray2002-04-281-3/+3
| | | | Notes: svn path=/head/; revision=95654
* remove __PWarner Losh2002-03-221-2/+2
| | | | Notes: svn path=/head/; revision=92920
* Remove leaf node WARNS?=2 (that mainly I added). This shouldMark Murray2002-02-081-1/+0
| | | | | | | help the GCC3 transition and CURRENT in general. Notes: svn path=/head/; revision=90415
* Style improvements recommended by Bruce as a follow up to someDavid Malone2001-12-101-5/+6
| | | | | | | | | | | 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. Notes: svn path=/head/; revision=87628
* Slight makefile style.Mark Murray2001-12-022-7/+7
| | | | | | | Use __FBSDID(). Notes: svn path=/head/; revision=87237
* mdoc(7) police: utilize the new .Ex macro.Ruslan Ermilov2001-08-151-3/+1
| | | | Notes: svn path=/head/; revision=81687
* WARNS= -> WARNS?=Dima Dorfman2001-06-221-1/+1
| | | | | | | Submitted by: Mike Barcroft <mike@q9media.com> Notes: svn path=/head/; revision=78624
* Follow symbolic links named as command line arguments if run without -R.Ruslan Ermilov2001-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 Notes: svn path=/head/; revision=77333
* Make it clear that -P is the default.Ruslan Ermilov2001-05-251-0/+1
| | | | | | | PR: docs/27629 Notes: svn path=/head/; revision=77160
* Silence WARNS=2 and BDECFLAGS on alpha and i386Kris Kennaway2001-05-202-2/+3
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=76890
* Prepare for mdoc(7)NG.Ruslan Ermilov2000-12-191-18/+31
| | | | Notes: svn path=/head/; revision=70197
* mdoc(7) police: use the new features of the Nm macro.Ruslan Ermilov2000-11-201-1/+1
| | | | Notes: svn path=/head/; revision=68963
* Install `chflags' in the root partition, NOT /usr where it is not availableDavid E. O'Brien2000-11-101-0/+1
| | | | | | | in single user mode. Notes: svn path=/head/; revision=68542
* Switch over to using the new fflagstostr and strtofflags library calls.Josef Karthauser2000-06-172-5/+2
| | | | Notes: svn path=/head/; revision=61749
* Fixed prototype for setflags(). setflags() returns int, not u_long,Bruce Evans2000-04-041-1/+1
| | | | | | | | | 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. Notes: svn path=/head/; revision=59009
* Document that the flags can be specified as an octal number.John Polstra2000-04-031-1/+2
| | | | Notes: svn path=/head/; revision=58987
* Revert part of the last commit, remove {g|s}etflags from the libcJosef Karthauser2000-02-052-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=57003
* Historically file flags (schg, uschg, etc) have been converted fromJosef Karthauser2000-01-272-4/+1
| | | | | | | | | | | | | | | | | | | | 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 ;) Notes: svn path=/head/; revision=56692
* Added missing DPADD's. Removed unrequired SRCS's.Josef Karthauser2000-01-011-1/+1
| | | | | | | Obtained from: bde Notes: svn path=/head/; revision=55302
* Moved flags_to_string and string_to_flags into libutil. It's used inJosef Karthauser1999-12-301-2/+3
| | | | | | | many places nowadays. Notes: svn path=/head/; revision=55270
* Correct use of .Nm. Add DIAGNOSTICS section. Add rcsidPhilippe Charnier1999-11-212-8/+12
| | | | Notes: svn path=/head/; revision=53507
* Yet another previously forgotten merge from Lite2. (DescribeBruce Evans1999-08-301-4/+5
| | | | | | | | | | `opaque', fix reversed description of `nodump', and don't use `nodump' as an example of adding a `no' prefix since the double negative would be confusing (it's still confusing -- the implicitly documented `nonodump' flag doesn't exist).) Notes: svn path=/head/; revision=50613
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50477
* Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]).Archie Cobbs1998-12-062-2/+3
| | | | Notes: svn path=/head/; revision=41568