History log of /freebsd/bin/chmod/chmod.c (Results 51 – 75 of 102)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 7007d55c 08-Aug-1999 Chris Costello <chris@FreeBSD.org>

Document -f flag:

-f Do not display a diagnostic message if chmod could not modify the
mode for file.


Revision tags: release/3.2.0, release/3.1.0, release/3.0.0, release/2.2.8
# a4324714 16-Dec-1998 Warner Losh <imp@FreeBSD.org>

Free memory obtained from setmode.

Obtained from: OpenBSD


Revision tags: release/2.2.7
# d4e2eddf 13-May-1998 Philippe Charnier <charnier@FreeBSD.org>

Restore original Lite-2 sccsid. Restore include of sys/types.h.


# cbf6f7d3 06-May-1998 Philippe Charnier <charnier@FreeBSD.org>

Correct use of .Nm and other cosmetics. Add rcsid. Remove unused #inc.


Revision tags: release/2.2.6, release/2.2.5_cvs, release/2.2.2_cvs
# 93ef08af 28-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
# b97fa2ef 22-Feb-1997 Peter Wemm <peter@FreeBSD.org>

Revert $FreeBSD$ to $Id$


Revision tags: release/2.1.6_cvs, release/2.1.6.1
# 1130b656 14-Jan-1997 Jordan K. Hubbard <jkh@FreeBSD.org>

Make the long-awaited change from $Id$ to $FreeBSD$

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

Make the long-awaited change from $Id$ to $FreeBSD$

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.

show more ...


# 1686b602 14-Dec-1996 Steve Price <steve@FreeBSD.org>

Cleanup man page and -Wall cleaning.


Revision tags: release/2.1.5_cvs
# f3ad46f4 10-Aug-1996 Adam David <adam@FreeBSD.org>

chmod(2) directories once only (was twice)


Revision tags: release/2.1.0_cvs, release/2.0.5_cvs
# 0fd510b7 19-Mar-1995 Joerg Wunsch <joerg@FreeBSD.org>

You will find enclosed some changes to make gcc -Wall more happy in
/usr/src/bin. Note that some patches are still needed in that directory.

I (Joerg) finished most of Philippe's cleanup. /bin/sh w

You will find enclosed some changes to make gcc -Wall more happy in
/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)

show more ...


# 50c1f897 03-Feb-1995 Bruce Evans <bde@FreeBSD.org>

Include <limits.h> to get the definition of INT_MAX - don't depend on
namespace pollution in <time.h>.


Revision tags: release/2.0
# 89730b29 24-Sep-1994 David Greenman <dg@FreeBSD.org>

Added $Id$


Revision tags: release/1.1.5.1_cvs
# 4b88c807 26-May-1994 Rodney W. Grimes <rgrimes@FreeBSD.org>

BSD 4.4 Lite bin Sources


# cbd59a4f 08-Sep-2009 Oleksandr Tymoshenko <gonzo@FreeBSD.org>

- MFC from head@196987


# f0246686 02-Sep-2009 Edward Tomasz Napierala <trasz@FreeBSD.org>

- Don't include both <sys/types.h> and <sys/param.h>

- 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

- Don't include both <sys/types.h> and <sys/param.h>

- 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

show more ...


# c5cb1e51 31-Aug-2009 Edward Tomasz Napierala <trasz@FreeBSD.org>

Make the code more readable and fix chmod(1) on symlinks with
NFSv4 enabled.


# 09c817ba 03-Jul-2009 Oleksandr Tymoshenko <gonzo@FreeBSD.org>

- MFC


# deda5987 01-Jul-2009 Edward Tomasz Napierala <trasz@FreeBSD.org>

With NFSv4 ACLs, it is possible that applying a mode to an ACL which
is identical to the mode computed from that ACL will modify the ACL.
For example, mode computed from the following ACL is 0600:

With NFSv4 ACLs, it is possible that applying a mode to an ACL which
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)

show more ...


# 431586a8 24-Jun-2009 Xin LI <delphij@FreeBSD.org>

Staticify internal routines.


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, 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, 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, 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, release/5.2.0_cvs, release/5.2.0
# 887cb17f 16-Dec-2003 Ruslan Ermilov <ru@FreeBSD.org>

Print unambiguous paths with -R -v.


# ad6a34de 31-Oct-2003 Anton Berezin <tobez@FreeBSD.org>

Remove the code for parsing octal modes, since setmode(3) already
handles them.

Reviewed by: audit
MFC after: 2 weeks


Revision tags: release/4.9.0_cvs, release/4.9.0, release/5.1.0_cvs, release/5.1.0
# 09a80d48 01-May-2003 David E. O'Brien <obrien@FreeBSD.org>

Quiet warnings about copyright[].


Revision tags: release/4.8.0_cvs, release/4.8.0
# 572417c7 29-Jan-2003 Maxime Henrion <mux@FreeBSD.org>

Remove now unnecessary main() prototype.


12345