History log of /netbsd-src/bin/chmod/chmod.c (Results 1 – 25 of 39)
Revision Date Author Comments
# da39777e 05-May-2023 kre <kre@NetBSD.org>

If chown and chgrp can grow -d flags to suppress performing the
operation when it will have no effect (other than changing the
inode's ctime value) then chmod and chflags should also have -d
flags fo

If chown and chgrp can grow -d flags to suppress performing the
operation when it will have no effect (other than changing the
inode's ctime value) then chmod and chflags should also have -d
flags for the same purpose. Make it so.

show more ...


# c8bb8a7a 22-Oct-2012 christos <christos@NetBSD.org>

fix argument parsing.


# bc806954 22-Oct-2012 christos <christos@NetBSD.org>

add --reference=rfile


# 5bb1ddcc 29-Aug-2011 joerg <joerg@NetBSD.org>

Use __dead


# f3bbc67d 22-Jan-2010 snj <snj@NetBSD.org>

Document "-f". From Andreas Wiese in PR bin/35409, slightly modified.


# 2fe2731d 20-Jul-2008 lukem <lukem@NetBSD.org>

Remove the \n and tabs from the __COPYRIGHT() strings.


# 037f0a7b 01-Oct-2005 christos <christos@NetBSD.org>

Now that setmode() is fixed, handle errors with err instead errx.


# 420b2ac8 04-Jan-2004 jschauma <jschauma@NetBSD.org>

Remove unused code left over from temporary printescaped functionality.
Noted by Jeff Ito in PR bin/23967.


# 6a75fbb6 14-Sep-2003 jschauma <jschauma@NetBSD.org>

Following private discussion with kleink@ and hubertf@ and public discussion
on tech-userlevel@, back out printescaped() functionality.
kleink: ``We sell rope.''


# b5b29542 07-Aug-2003 agc <agc@NetBSD.org>

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22249, verified by myself.


# 458ed234 04-Aug-2003 jschauma <jschauma@NetBSD.org>

As discusses a little while back on tech-userlevel:

If stdout is a tty, use vis(3) to print any filenames to prevent garbage
from being printed if the filename contains control- or other non-printab

As discusses a little while back on tech-userlevel:

If stdout is a tty, use vis(3) to print any filenames to prevent garbage
from being printed if the filename contains control- or other non-printable
characters.

While here, sprinkle some EXIT_FAILURE and NOTREACHED where appropriate.

show more ...


# 525b0502 07-Jul-2002 bjh21 <bjh21@NetBSD.org>

Align default behaviour of chmod, chgrp, chown, and chflags with symlink(7),
IEEE 1003.1-2001 (where applicable) and other systems, by follwoing symlinks
on the command line and changing their target

Align default behaviour of chmod, chgrp, chown, and chflags with symlink(7),
IEEE 1003.1-2001 (where applicable) and other systems, by follwoing symlinks
on the command line and changing their targets' modes/ownership/flags, rather
than ignoring them.

This fixes PR standards/563 (at last).

show more ...


# 28ac946c 31-May-2002 bjh21 <bjh21@NetBSD.org>

Fix a comment: POSIX doesn't specify -h.


# 516b44de 16-Sep-2001 wiz <wiz@NetBSD.org>

ANSIfy, use {s,g}etprogname and other KNF. Patch by Petri Koistinen.


# 17c8af2f 10-Oct-2000 enami <enami@NetBSD.org>

Printing argv[0] on fts_open failure doesn't make sense. Just print
``fts_open'' instead.


# d67a90e6 06-Sep-2000 enami <enami@NetBSD.org>

Remove a hack to prevent unwanted gcc -Wuninitialized warning; it's now
unnecessary since the code path is simple enough after rev. 1.21.


# 127c71b0 07-Jul-2000 itojun <itojun@NetBSD.org>

do not pass user-supplied string alone, to errx?(). use "%s".
from openbsd.


# a3db7715 20-Jan-2000 mycroft <mycroft@NetBSD.org>

Oops; remove unused variables.


# 9f93f79f 20-Jan-2000 mycroft <mycroft@NetBSD.org>

Just use setmode(3); don't special-case numeric values.


# 9dc385be 28-Jul-1998 mycroft <mycroft@NetBSD.org>

Delint.


# a05983be 28-Jul-1998 mycroft <mycroft@NetBSD.org>

Delint.


# 29bf463d 28-Jul-1998 mycroft <mycroft@NetBSD.org>

Delint.


# c0be646f 11-Oct-1997 enami <enami@NetBSD.org>

Add -h to usage.


# 16747b0e 06-Oct-1997 enami <enami@NetBSD.org>

Change noop option -h to do the real work. Now mode of symbolic link
is changed if -h option is given.


# 5194aa72 06-Oct-1997 enami <enami@NetBSD.org>

Don't pass the pathname itself as format string of warn(). Instead,
use "%s".


12