summaryrefslogtreecommitdiffstats
path: root/bin/chmod
Commit message (Collapse)AuthorAgeFilesLines
* Modernization effort for bin/c*:imp2002-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)
* Refer to the original mode of the file, not the mode of the originalsheldonh2002-02-011-3/+3
| | | | | | | file. PR: docs/34224 Submitted by: "Gary W. Swearingen" <swear@blarg.net>
* Default to WARNS=2. Binary builds that cannot handle this must explicitlyobrien2001-12-041-2/+0
| | | | | | set WARNS=0. Reviewed by: mike
* mdoc(7) police: utilize the new .Ex macro.ru2001-08-151-3/+1
|
* Remove whitespace at EOL.dd2001-07-151-17/+17
|
* WARNS= -> WARNS?=dd2001-06-221-1/+1
| | | | Submitted by: Mike Barcroft <mike@q9media.com>
* Fixed the bug from the previous revision.ru2001-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).
* Change noop option -h to do the real work. Now mode of symbolic linkru2001-05-282-20/+22
| | | | | | | is changed if -h option is given. Requested by: bde Obtained from: NetBSD (code part)
* Follow symbolic links named as command line arguments if run without -R.ru2001-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
* Make it clear that -P is the default.ru2001-05-251-0/+1
| | | | PR: docs/27629
* Make this compile with WARNS=2kris2001-05-202-0/+3
|
* The 'X' permission symbol is specified by POSIX.2, so don't say that itben2001-03-011-4/+2
| | | | | | | isn't. Obtained from: NetBSD Confirmed by: ru, wollman
* mdoc(7) police: use the default ``file ...'' feature of the .Ar macro.ru2001-02-131-1/+1
|
* Prepare for mdoc(7)NG.ru2001-01-161-1/+1
|
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-201-1/+1
|
* Use Fx macro wherever possible.ru2000-11-141-1/+3
|
* Avoid use of direct troff requests in mdoc(7) manual pages.ru2000-11-101-1/+0
|
* Optimize out no-op chmod() syscalls.peter2000-07-291-2/+5
|
* Don't call warn() with no format string. This is potentially exploitable, ↵kris2000-07-101-1/+1
| | | | | | although it would be difficult both technically and in practise.
* From the PR:unfurl2000-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>
* Default to not -v.obrien1999-11-281-2/+2
| | | | Fix usage() style bug spotted by BDE.
* Add "-v".obrien1999-11-272-2/+18
|
* $Id$ -> $FreeBSD$peter1999-08-273-3/+3
|
* Sort cross-references. Move mount(8) down the list where it belongs, inchris1999-08-251-2/+2
| | | | particular.
* Bad reference of mount(1) changed to mount(8).chris1999-08-141-3/+3
|
* Document -f flag:chris1999-08-082-4/+10
| | | | | -f Do not display a diagnostic message if chmod could not modify the mode for file.
* Various spelling/formatting changes.kris1999-05-081-2/+2
| | | | Submitted by: Philippe Charnier <charnier@xp11.frmug.org>
* Free memory obtained from setmode.imp1998-12-161-1/+2
| | | | Obtained from: OpenBSD
* Improve description of absolute modes.jkoshy1998-05-191-20/+46
| | | | | Submitted by: Josh Gilliam <josh@quick.net> PR: 6634
* Restore original Lite-2 sccsid. Restore include of sys/types.h.charnier1998-05-131-2/+3
|
* Correct use of .Nm and other cosmetics. Add rcsid. Remove unused #inc.charnier1998-05-062-8/+9
|
* Reviewed by: hackers@freebsd.org in generaljulian1997-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.
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-281-2/+2
| | | | posix standard on the topic.
* Revert $FreeBSD$ to $Id$peter1997-02-223-3/+3
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-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.
* Cleanup man page and -Wall cleaning.steve1996-12-142-5/+6
|
* [HISTORY] command appeared in Version 1 AT&T UNIXwosch1996-08-291-1/+6
| | | | Obtained from: A Quarter Century of UNIX, Peter H. Salus, page 41
* chmod(2) directories once only (was twice)adam1996-08-101-6/+5
|
* Add an .Xr for chflags(1) into the SEE ALSO sectoin.joerg1996-02-161-1/+2
| | | | Submitted by: jhs
* You will find enclosed some changes to make gcc -Wall more happy injoerg1995-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)
* Include <limits.h> to get the definition of INT_MAX - don't depend onbde1995-02-031-1/+2
| | | | namespace pollution in <time.h>.
* Added $Id$dg1994-09-243-0/+4
|
* BSD 4.4 Lite bin Sourcesrgrimes1994-05-263-0/+500
OpenPOWER on IntegriCloud