| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
do repeated lookups. OK tb@
|
| |
|
|
|
|
|
|
|
|
| |
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@
|
| |
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
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@.
|
| |
|
|
| |
chown(8) manpages to be consistent and clearer about it as well.
|
| | |
|
| |
|
|
| |
setuid/setgid bits.
|
| |
|
|
|
|
| |
chown codepath obviously cannot use tame -- once tame is activated
the kernel prohibits changing uid/gid on a fd/file.
ok guenther
|
| | |
|
| |
|
|
|
|
|
|
|
|
| |
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@
|
| |
|
|
|
|
| |
making them more resistant to TOCTOU race conditions too.
ok tobias@
|
| |
|
|
|
|
|
| |
- avoid out of boundary access on very short program names
- fix compiler warning when converting values between 0 and INT_MAX
ok deraadt, millert
|
| |
|
|
|
|
|
|
| |
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@
|
| |
|
|
| |
ok jca@ krw@
|
| |
|
|
|
|
| |
(namespace pollution!) or talking about its opinion on code.
ok krw@
|
| | |
|
| | |
|
| |
|
|
|
| |
as discussed with jmc@, otto@ and millert@
ok otto@ millert@
|
| |
|
|
|
|
|
| |
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
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
cleanup. from ray at cyth net
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
before picking it apart into a username.group pair. OK deraadt@
|
| |
|
|
| |
rescinded 22 July 1999. Proofed by myself and Theo.
|
| |
|
|
|
| |
copyrights say "acknowledgement", not "acknowledgment". You cannot
just go changing the text of a license willy-nilly.
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
| |
also, use new strtofflags, avoid ls/stat_flags.c usage.
millert@ ok
|
| |
|
|
|
|
|
|
|
| |
constant). These are not security holes but it is worth fixing
them anyway both for robustness and so folks looking for examples
in the tree are not misled into doing something potentially dangerous.
Furthermore, it is a bad idea to assume that pathnames will not
include '%' in them and that error routines don't return strings
with '%' in them (especially in light of the possibility of locales).
|
| | |
|
| |
|
|
| |
provide symlinks from old location for the time being.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|