Go to file
lukem ee7f3a601a Rework -p support again;
- If mkdir() fails on a component (no matter what the error is),
  stat() the result.  If the stat() fails, print the error mkdir() generated.
  Otherwise, if the result is not a directory, explicitly fail with ENOTDIR.
- Move the chmod() of last element to be done only if the mkdir() succeeded
  (i.e, it wasn't an existing directory)

Fixes problem introduced in previous commit where "mkdir -p existing"
on a read-only file system would incorrectly return a non zero exit code,
whilst retaining the race-condition fix of the previous commit.

Thanks to simonb@ for sanity checking my fix versus the standards.
2003-03-05 03:58:44 +00:00
bin Rework -p support again; 2003-03-05 03:58:44 +00:00
crypto .Nm does not need a dummy argument ("") before punctuation or 2003-02-25 10:34:36 +00:00
dist Sort help here (just like in the man page). 2003-03-03 07:36:05 +00:00
distrib Add the wsmoused.conf(5) manpage. 2003-03-04 14:51:52 +00:00
doc note changes to mdsetimage (which broke after the binutils update) 2003-03-05 00:06:34 +00:00
etc Use the pidfile created by wsmoused. 2003-03-04 22:32:11 +00:00
games Make this work on sparc64 (don't use long and assume sizeof(long) = 4). 2003-02-26 07:14:44 +00:00
gnu NetBSD doesn't support PS_REGNUM or anything >= MQ_REGNUM. 2003-03-04 21:12:32 +00:00
include - add wctob() function. (I forgot it at the last commit.) 2003-03-03 07:39:53 +00:00
lib Remove the HAS_* ifdefs which select [v]s{,n}printf. Always choose the 2003-03-05 02:20:19 +00:00
libexec Call setsid so we get our own logname. 2003-03-03 19:05:09 +00:00
regress Also test the libc atexit routine in the presence of libpthread. 2003-03-04 18:00:48 +00:00
rescue Build mount_* individually, since mount and most of mount_* no longer 2003-03-03 02:09:18 +00:00
sbin New sentence, new line. 2003-03-03 06:50:18 +00:00
share Explain that "sh" has no effect except for locally attached printers, 2003-03-04 16:10:04 +00:00
sys Implement a minimal pager for the uvm_loanzero_object, which simply has 2003-03-05 01:52:41 +00:00
tools update for binutils 2.13.2.1, and a few other changes... 2003-03-01 13:09:10 +00:00
usr.bin Patch from PR 12304 submitted by Matthias Buelow mkb@moghedien.mayn.de. 2003-03-05 01:10:46 +00:00
usr.sbin Create a pidfile while running (which can be tuned with the new "pidfile" 2003-03-04 22:31:15 +00:00
build.sh don't print the command & start time until after the options are parsed... 2003-03-04 02:20:28 +00:00
BUILDING Fix example 3; the build.sh target is "install" not "installworld". 2003-02-08 10:00:33 +00:00
Makefile all: 2003-02-22 03:20:45 +00:00
Makefile.inc don't set KERNSRCDIR here; pull in <bsd.kernobj.mk> if you need it 2002-04-10 14:53:43 +00:00
UPDATING add entry for smmsp user/group. 2003-02-06 04:37:59 +00:00