When system calls indicate an error they return -1, not some arbitraryvalue < 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 arbitraryvalue < 0. errno is only updated in this case. Change all (most?)callers of syscalls to follow this better, and let's see if this strictnesshelps us in the future.
show more ...
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@.
correct precedence; from Ilya Kaliman
normalize the ordering of tame requests (particularily, "rpath wpath cpath",which i have put in that order). this is not important, but helps lookfor 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 lookfor outliers which might be strange. it hints that "ioctl" should bereassessed in a few places, to see if "tty" is better; that "unix" maybe used in some places where "route" could now work.
Change all tame callers to namechange to pledge(2).
tame "stdio cpath rpath fattr", unless mkdir -m is passed a mode whichhas setuid/setgid/sticky bits.ok semarie
Revert rev 1.21 to fix a race condition where multiple mkdir -p's tryingto create overlapping paths in parallel could error out. ok millert@
add an EXIT STATUS section for /bin;
rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andunmaintainable). these days, people use source. these id's do not provideany benefit, and do hurt the small install media(th
rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andunmaintainable). these days, people use source. these id's do not provideany benefit, and do hurt the small install media(the 33,000 line diff is essentially mechanical)ok with the idea millert, ok dms
bump the posix reference in STANDARDS to IEEE Std 1003.1-2008, with a fewupdates to follow;
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.
Fix "-m mode" in conjunction with the -p flag. Also simplify the errorhandling. Closes PR 5908. OK deraadt@
mkfifo makes fifos, not directories; from Ben Calvertwhile here, make the description of -m more consistent for mkdir,mkfifo, and mknod.add a touch of .Ex for mkdir too.
Rework the fix in 1.20. The original fix causes problems for systracepolicies 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 systracepolicies 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@
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 implementationlooks OK otto@ OK millert@
the ellipsis is not an optional argument; while here, sync the usageand synopsis of commandslots of good ideas by jmc@ok jmc@
convert to new .Dd format;
- consistent STANDARDS blurb- note which options are extensions to POSIXdiscussed w/ deraadt otto millert
Add reference to mkdir(1).OK jmc@
Make sure `path' variable is always NUL-terminated.Totally different diff (but functionally equivalent) by Loic Tortayand okayed by tedu@.``Looks sane to me'' moritz@
standard EXAMPLES;
more references to hier(7), from mickey;
setmode(3) returns void *, not mode_t *. ok millert@
spacing
Remove the advertising clause in the UCB license which Berkeleyrescinded 22 July 1999. Proofed by myself and Theo.
123