#
a0f924b8 |
| 16-Sep-2018 |
millert <millert@openbsd.org> |
Use uid_from_user(3) and gid_from_group(3) in utilities that do repeated lookups. OK tb@
|
#
eeae0aa5 |
| 28-May-2017 |
awolk <awolk@openbsd.org> |
chown: Remove SUPPORT_DOT ifdef - it's on by default for 22 years
The old syntax was deprecated 25 years ago when the utility was first standardised in IEEE Std 1003.2-1992 ("POSIX.2"). There was no
chown: Remove SUPPORT_DOT ifdef - it's on by default for 22 years
The old syntax was deprecated 25 years ago when the utility was first standardised in IEEE Std 1003.2-1992 ("POSIX.2"). There was no POSIX version of chown with the dot separator.
Let's stop pretending that it will ever go away.
OK jung@, deraadt@, jmc@
show more ...
|
#
90634dde |
| 17-Feb-2017 |
tb <tb@openbsd.org> |
In chmod's symbolic mode without -h and -R flags, a missing FTS_COMFOLLOW flag to fts_open led to the following behavior: the symlink's permissions were read, changed according to the command line, a
In chmod's symbolic mode without -h and -R flags, a missing FTS_COMFOLLOW flag to fts_open led to the following behavior: the symlink's permissions were read, changed according to the command line, and transferred to the target file. chflags had a similar problem while chmod was unaffected. Regression introduced in r1.33. Reported by Christopher Wellons, thanks!
ok guenther
show more ...
|
#
8351f622 |
| 19-Oct-2016 |
schwarze <schwarze@openbsd.org> |
Delete useless setlocale(3) in src/bin/. Minor cleanup while here: return from main, static void __dead usage, etc. Based on a patch from Jan Stary <hans at stare dot cz>. Feedback and OK tb@, OK mil
Delete useless setlocale(3) in src/bin/. Minor cleanup while here: return from main, static void __dead usage, etc. Based on a patch from Jan Stary <hans at stare dot cz>. Feedback and OK tb@, OK millert@.
show more ...
|
#
251a4e53 |
| 31-Dec-2015 |
guenther <guenther@openbsd.org> |
Document the -h option for chmod and chflags, rewording the chgrp(1) and chown(8) manpages to be consistent and clearer about it as well.
|
#
0bd1216c |
| 09-Oct-2015 |
deraadt <deraadt@openbsd.org> |
Change all tame callers to namechange to pledge(2).
|
#
943ea0c3 |
| 03-Oct-2015 |
deraadt <deraadt@openbsd.org> |
oops! cannot tame the chmod case, because the kernel drops the setuid/setgid bits.
|
#
cd1f0c0d |
| 03-Oct-2015 |
deraadt <deraadt@openbsd.org> |
the chmod & chflags codepaths can use tame "stdio rpath fattr". the chown codepath obviously cannot use tame -- once tame is activated the kernel prohibits changing uid/gid on a fd/file. ok guenther
|
#
7ddbef1c |
| 03-Oct-2015 |
deraadt <deraadt@openbsd.org> |
KNF
|
#
f12e5d26 |
| 25-Jun-2015 |
uebayasi <uebayasi@openbsd.org> |
Put fts_close() where missing.
Not bugs in short-lived commands that call exit() -> _exit() immediately, but for idempotency.
Originally found in ls(1) by Valgrind. Changes for other commands are
Put fts_close() where missing.
Not bugs in short-lived commands that call exit() -> _exit() immediately, but for idempotency.
Originally found in ls(1) by Valgrind. Changes for other commands are from deraadt@. Reviewed by me, tested in snapshots.
OK deraadt@
show more ...
|
#
de79a805 |
| 13-Dec-2014 |
guenther <guenther@openbsd.org> |
Correct the handling of symbolic links by chmod/chgrp/chown/chflags, making them more resistant to TOCTOU race conditions too.
ok tobias@
|
#
64bd8781 |
| 13-Dec-2014 |
tobias <tobias@openbsd.org> |
Properly validate ranges:
- avoid out of boundary access on very short program names - fix compiler warning when converting values between 0 and INT_MAX
ok deraadt, millert
|
#
f26fdc5d |
| 06-Oct-2014 |
schwarze <schwarze@openbsd.org> |
In case of invalid syntax like "chmod -Pr -w tf" (trailing mode letter in a group of option letters), do not silently ignore the syntax error and do something undefined, but instead error out properl
In case of invalid syntax like "chmod -Pr -w tf" (trailing mode letter in a group of option letters), do not silently ignore the syntax error and do something undefined, but instead error out properly. Found because miod@ said "read the code" (not to me, though).
ok doug@
show more ...
|
#
cd5cfea9 |
| 21-May-2014 |
guenther <guenther@openbsd.org> |
Use errc/warnc to simplify code.
ok jca@ krw@
|
#
acf82b0a |
| 16-Mar-2014 |
guenther <guenther@openbsd.org> |
lint is dead (long live the lint!), so stop using it as a cpp conditional (namespace pollution!) or talking about its opinion on code.
ok krw@
|
#
f4faee91 |
| 04-Dec-2012 |
deraadt <deraadt@openbsd.org> |
remove some unnecessary sys/param.h inclusions
|
#
4b5f4f2c |
| 09-Mar-2011 |
okan <okan@openbsd.org> |
zap from usage() as well; reminded by jmc@
|
#
4de08998 |
| 12-Jan-2010 |
jasper <jasper@openbsd.org> |
sync comment with reality, -f won't be documented.
as discussed with jmc@, otto@ and millert@ ok otto@ millert@
|
#
043fbe51 |
| 27-Oct-2009 |
deraadt <deraadt@openbsd.org> |
rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (th
rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
show more ...
|
#
39ea8a43 |
| 21-Jan-2009 |
sobrado <sobrado@openbsd.org> |
fix the synopsis for chown(8)
|
#
496bd962 |
| 25-Apr-2006 |
deraadt <deraadt@openbsd.org> |
various small lint cleanups; ok otto
|
#
ff2777d2 |
| 25-Jan-2006 |
tedu <tedu@openbsd.org> |
some warning reduction
|
#
4e4e6265 |
| 25-Jan-2006 |
tedu <tedu@openbsd.org> |
an old diff from tech to convert to using strtonum and some other misc cleanup. from ray at cyth net
|
#
ed3e8c99 |
| 29-Nov-2005 |
otto <otto@openbsd.org> |
kill unused var found by lint. ok deraadt@
|
#
6f8099a3 |
| 15-Oct-2005 |
jmc <jmc@openbsd.org> |
sync usage();
|