aboutsummaryrefslogtreecommitdiff
path: root/bin/chmod
Commit message (Collapse)AuthorAgeFilesLines
...
* Set WFORMAT=0, because our compiler currently complains about NULLSheldon Hearn2002-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 Notes: svn path=/head/; revision=99767
* err() is documented as allowing NULL for the format string but GCC isn'tMatthew Dillon2002-07-101-1/+1
| | | | | | | happy about it any more so change the useage so buildworld works again. Notes: svn path=/head/; revision=99743
* Consistently use __FBSDIDDavid E. O'Brien2002-06-301-2/+2
| | | | Notes: svn path=/head/; revision=99109
* Fix warnings inspired by lint, a commercial lint and WARNS=4Mark Murray2002-02-221-9/+8
| | | | Notes: svn path=/head/; revision=91078
* Modernization effort for bin/c*:Warner Losh2002-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) Notes: svn path=/head/; revision=90107
* Refer to the original mode of the file, not the mode of the originalSheldon Hearn2002-02-011-3/+3
| | | | | | | | | | file. PR: docs/34224 Submitted by: "Gary W. Swearingen" <swear@blarg.net> Notes: svn path=/head/; revision=90059
* Default to WARNS=2. Binary builds that cannot handle this must explicitlyDavid E. O'Brien2001-12-041-2/+0
| | | | | | | | | set WARNS=0. Reviewed by: mike Notes: svn path=/head/; revision=87323
* mdoc(7) police: utilize the new .Ex macro.Ruslan Ermilov2001-08-151-3/+1
| | | | Notes: svn path=/head/; revision=81687
* Remove whitespace at EOL.Dima Dorfman2001-07-151-17/+17
| | | | Notes: svn path=/head/; revision=79754
* WARNS= -> WARNS?=Dima Dorfman2001-06-221-1/+1
| | | | | | | Submitted by: Mike Barcroft <mike@q9media.com> Notes: svn path=/head/; revision=78624
* Fixed the bug from the previous revision.Ruslan Ermilov2001-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). Notes: svn path=/head/; revision=77522
* Change noop option -h to do the real work. Now mode of symbolic linkRuslan Ermilov2001-05-282-20/+22
| | | | | | | | | | is changed if -h option is given. Requested by: bde Obtained from: NetBSD (code part) Notes: svn path=/head/; revision=77342
* 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
* Make this compile with WARNS=2Kris Kennaway2001-05-202-0/+3
| | | | Notes: svn path=/head/; revision=76871
* The 'X' permission symbol is specified by POSIX.2, so don't say that itBen Smithurst2001-03-011-4/+2
| | | | | | | | | | isn't. Obtained from: NetBSD Confirmed by: ru, wollman Notes: svn path=/head/; revision=73281
* mdoc(7) police: use the default ``file ...'' feature of the .Ar macro.Ruslan Ermilov2001-02-131-1/+1
| | | | Notes: svn path=/head/; revision=72432
* Prepare for mdoc(7)NG.Ruslan Ermilov2001-01-161-1/+1
| | | | Notes: svn path=/head/; revision=71097
* mdoc(7) police: use the new features of the Nm macro.Ruslan Ermilov2000-11-201-1/+1
| | | | Notes: svn path=/head/; revision=68935
* Use Fx macro wherever possible.Ruslan Ermilov2000-11-141-1/+3
| | | | Notes: svn path=/head/; revision=68716
* Avoid use of direct troff requests in mdoc(7) manual pages.Ruslan Ermilov2000-11-101-1/+0
| | | | Notes: svn path=/head/; revision=68575
* Optimize out no-op chmod() syscalls.Peter Wemm2000-07-291-2/+5
| | | | Notes: svn path=/head/; revision=64013
* Don't call warn() with no format string. This is potentially exploitable, ↵Kris Kennaway2000-07-101-1/+1
| | | | | | | | | although it would be difficult both technically and in practise. Notes: svn path=/head/; revision=62887
* From the PR:Bill Swingle2000-02-171-4/+4
| | | | | | | | | | | | | | | | | | 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> Notes: svn path=/head/; revision=57274
* Default to not -v.David E. O'Brien1999-11-281-2/+2
| | | | | | | Fix usage() style bug spotted by BDE. Notes: svn path=/head/; revision=53824
* Add "-v".David E. O'Brien1999-11-272-2/+18
| | | | Notes: svn path=/head/; revision=53780
* $Id$ -> $FreeBSD$Peter Wemm1999-08-273-3/+3
| | | | Notes: svn path=/head/; revision=50471
* Sort cross-references. Move mount(8) down the list where it belongs, inChris Costello1999-08-251-2/+2
| | | | | | | particular. Notes: svn path=/head/; revision=50341
* Bad reference of mount(1) changed to mount(8).Chris Costello1999-08-141-3/+3
| | | | Notes: svn path=/head/; revision=49721
* Document -f flag:Chris Costello1999-08-082-4/+10
| | | | | | | | -f Do not display a diagnostic message if chmod could not modify the mode for file. Notes: svn path=/head/; revision=49544
* Various spelling/formatting changes.Kris Kennaway1999-05-081-2/+2
| | | | | | | Submitted by: Philippe Charnier <charnier@xp11.frmug.org> Notes: svn path=/head/; revision=46684
* Free memory obtained from setmode.Warner Losh1998-12-161-1/+2
| | | | | | | Obtained from: OpenBSD Notes: svn path=/head/; revision=41842
* Improve description of absolute modes.Joseph Koshy1998-05-191-20/+46
| | | | | | | | Submitted by: Josh Gilliam <josh@quick.net> PR: 6634 Notes: svn path=/head/; revision=36175
* Restore original Lite-2 sccsid. Restore include of sys/types.h.Philippe Charnier1998-05-131-2/+3
| | | | Notes: svn path=/head/; revision=36002
* Correct use of .Nm and other cosmetics. Add rcsid. Remove unused #inc.Philippe Charnier1998-05-062-8/+9
| | | | Notes: svn path=/head/; revision=35773
* Reviewed by: hackers@freebsd.org in generalJulian Elischer1997-11-131-2/+6
| | | | | | | | | | | | | | | | Obtained from: Whistle Communications tree Add an option to the way UFS works dependent on the SUID bit of directories This changes makes things a whole lot simpler on systems running as fileservers for PCs and MACS. to enable the new code you must 1/ enable option SUIDDIR on the kernel. 2/ mount the filesystem with option suiddir. hopefully this makes it difficult enough for people to do this accidentally. see the new chmod(2) man page for detailed info. Notes: svn path=/head/; revision=31144
* compare return value from getopt against -1 rather than EOF, per the finalWarner Losh1997-03-281-2/+2
| | | | | | | posix standard on the topic. Notes: svn path=/head/; revision=24348
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-223-3/+3
| | | | Notes: svn path=/head/; revision=22988
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-143-3/+3
| | | | | | | | | | | 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. Notes: svn path=/head/; revision=21673
* Cleanup man page and -Wall cleaning.Steve Price1996-12-142-5/+6
| | | | Notes: svn path=/head/; revision=20411
* [HISTORY] command appeared in Version 1 AT&T UNIXWolfram Schneider1996-08-291-1/+6
| | | | | | | Obtained from: A Quarter Century of UNIX, Peter H. Salus, page 41 Notes: svn path=/head/; revision=17891
* chmod(2) directories once only (was twice)Adam David1996-08-101-6/+5
| | | | Notes: svn path=/head/; revision=17496
* Add an .Xr for chflags(1) into the SEE ALSO sectoin.Joerg Wunsch1996-02-161-1/+2
| | | | | | | Submitted by: jhs Notes: svn path=/head/; revision=14105
* You will find enclosed some changes to make gcc -Wall more happy inJoerg Wunsch1995-03-191-1/+3
| | | | | | | | | | | | /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) Notes: svn path=/head/; revision=7165
* Include <limits.h> to get the definition of INT_MAX - don't depend onBruce Evans1995-02-031-1/+2
| | | | | | | namespace pollution in <time.h>. Notes: svn path=/head/; revision=6170
* Added $Id$David Greenman1994-09-243-0/+4
| | | | Notes: svn path=/head/; revision=3044
* BSD 4.4 Lite bin SourcesRodney W. Grimes1994-05-263-0/+500
Notes: svn path=/head/; revision=1556