#
3aaa63eb |
| 28-Jun-2019 |
deraadt <deraadt@openbsd.org> |
When system calls indicate an error they return -1, not some arbitrary value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if
When system calls indicate an error they return -1, not some arbitrary value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future.
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 ...
|
#
30d3ba7a |
| 23-Oct-2015 |
deraadt <deraadt@openbsd.org> |
correct precedence; from Ilya Kaliman
|
#
18df9530 |
| 10-Oct-2015 |
deraadt <deraadt@openbsd.org> |
normalize the ordering of tame requests (particularily, "rpath wpath cpath", which i have put in that order). this is not important, but helps look for outliers which might be strange. it hints that
normalize the ordering of tame requests (particularily, "rpath wpath cpath", which i have put in that order). this is not important, but helps look for outliers which might be strange. it hints that "ioctl" should be reassessed in a few places, to see if "tty" is better; that "unix" may be used in some places where "route" could now work.
show more ...
|
#
0bd1216c |
| 09-Oct-2015 |
deraadt <deraadt@openbsd.org> |
Change all tame callers to namechange to pledge(2).
|
#
07222127 |
| 07-Oct-2015 |
deraadt <deraadt@openbsd.org> |
tame "stdio cpath rpath fattr", unless mkdir -m is passed a mode which has setuid/setgid/sticky bits. ok semarie
|
#
e5449c70 |
| 02-Apr-2013 |
naddy <naddy@openbsd.org> |
Revert rev 1.21 to fix a race condition where multiple mkdir -p's trying to create overlapping paths in parallel could error out. ok 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 ...
|
#
018082cc |
| 30-Sep-2008 |
millert <millert@openbsd.org> |
Fix a problem in the last commit. Upon closer reading of POSIX, in -p mode we only want to change the mode on directories we actually created.
|
#
e4e30c82 |
| 30-Sep-2008 |
millert <millert@openbsd.org> |
Fix "-m mode" in conjunction with the -p flag. Also simplify the error handling. Closes PR 5908. OK deraadt@
|
#
8440571e |
| 13-Feb-2008 |
millert <millert@openbsd.org> |
Rework the fix in 1.20. The original fix causes problems for systrace policies since mkdir(2) will be called for each directory in the path, even things like / or /usr. We now use a hybrid approach
Rework the fix in 1.20. The original fix causes problems for systrace policies since mkdir(2) will be called for each directory in the path, even things like / or /usr. We now use a hybrid approach uses stat(2) until either we find something missing or we reach that last component. Then we switch to calling mkdir(). Tested by bernd@ and chl@
show more ...
|
#
ebc0cb5d |
| 02-Jan-2008 |
chl <chl@openbsd.org> |
fix PR 5141: race condition in mkdir -p that may lead to an erroneous successful exit status.
reported by Ralf Wildenhues <Ralf.Wildenhues at gmx.de>
fix based on a suggested patch by Bruno Carnazz
fix PR 5141: race condition in mkdir -p that may lead to an erroneous successful exit status.
reported by Ralf Wildenhues <Ralf.Wildenhues at gmx.de>
fix based on a suggested patch by Bruno Carnazzi <bcarnazzi at gmail.com>, largely inspired by NetBSD mkdir()s implementation
looks OK otto@ OK millert@
show more ...
|
#
03cb09c0 |
| 06-Aug-2007 |
sobrado <sobrado@openbsd.org> |
the ellipsis is not an optional argument; while here, sync the usage and synopsis of commands
lots of good ideas by jmc@
ok jmc@
|
#
7c70bf3c |
| 24-Mar-2006 |
ray <ray@openbsd.org> |
Make sure `path' variable is always NUL-terminated.
Totally different diff (but functionally equivalent) by Loic Tortay and okayed by tedu@.
``Looks sane to me'' moritz@
|
#
c7b4a4ca |
| 01-Jul-2004 |
otto <otto@openbsd.org> |
setmode(3) returns void *, not mode_t *. ok millert@
|
#
84f96e5e |
| 29-Jul-2003 |
deraadt <deraadt@openbsd.org> |
spacing
|
#
29295d1c |
| 02-Jun-2003 |
millert <millert@openbsd.org> |
Remove the advertising clause in the UCB license which Berkeley rescinded 22 July 1999. Proofed by myself and Theo.
|
#
ab83b6d6 |
| 04-Jul-2002 |
deraadt <deraadt@openbsd.org> |
ansi
|
#
2d22d230 |
| 09-Jun-2002 |
todd <todd@openbsd.org> |
knf
|
#
c72b5b24 |
| 16-Feb-2002 |
millert <millert@openbsd.org> |
Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be don
Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
show more ...
|
#
f516ca97 |
| 16-Jan-2002 |
mpech <mpech@openbsd.org> |
missed some registers, kill'em!
millert@ ok
|
#
9517852a |
| 06-Sep-2001 |
mpech <mpech@openbsd.org> |
o) __progname aria;
millert@ ok.
|
#
d34117cc |
| 02-Feb-2000 |
ericj <ericj@openbsd.org> |
Make mkdir -m 1777 foo and the like work. From how Netbsd/Freebsd do it.
|
#
05c08b75 |
| 26-Sep-1998 |
deraadt <deraadt@openbsd.org> |
more setmode() leaks -- kill 'em all
|
#
6cd1d31d |
| 25-Jan-1998 |
niklas <niklas@openbsd.org> |
Fix a race where a dir might have been created after a stat call, but before our mkdir
|