NetBSD/bin
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
..
cat New policy: New sentences start on a new line. 2002-09-25 15:18:36 +00:00
chio New policy: New sentences start on a new line. 2002-09-25 15:18:36 +00:00
chmod Start new paragraph after options are listed. 2003-01-20 03:10:38 +00:00
cp The Double-Semi-Colon Police. 2003-01-20 05:29:53 +00:00
csh .Nm does not need a dummy argument ("") before punctuation or 2003-02-25 10:34:36 +00:00
date .Nm does not need a dummy argument ("") before punctuation or 2003-02-25 10:34:36 +00:00
dd .Nm does not need a dummy argument ("") before punctuation or 2003-02-25 10:34:36 +00:00
df human-readable output via -h flag. output matches Linux and other BSDs. 2002-09-26 16:27:43 +00:00
domainname New policy: New sentences start on a new line. 2002-09-25 15:18:36 +00:00
echo Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:21:55 +00:00
ed Avoid conflict with reserved identifier "exp". 2002-12-06 01:39:10 +00:00
expr 'NetBSD.org' 2003-02-14 16:17:30 +00:00
hostname New policy: New sentences start on a new line. 2002-09-25 15:18:36 +00:00
kill .Nm does not need a dummy argument ("") before punctuation or 2003-02-25 10:34:36 +00:00
ksh Make 'times' be a proper posix special builtin. 2003-01-20 08:49:00 +00:00
ln .Nm does not need a dummy argument ("") before punctuation or 2003-02-25 10:34:36 +00:00
ls .Nm does not need a dummy argument ("") before punctuation or 2003-02-25 10:34:36 +00:00
mkdir Rework -p support again; 2003-03-05 03:58:44 +00:00
mt .Nm does not need a dummy argument ("") before punctuation or 2003-02-25 10:34:36 +00:00
mv .Nm does not need a dummy argument ("") before punctuation or 2003-02-25 10:34:36 +00:00
pax No other program prints errors inside angle brackets! 2003-03-04 19:19:25 +00:00
ps Seems better to display p_sv{u,g}id when asked for it... 2003-03-03 23:13:21 +00:00
pwd evironment -> environment. 2002-10-02 09:57:14 +00:00
rcmd New policy: New sentences start on a new line. 2002-09-25 15:18:36 +00:00
rcp .Nm does not need a dummy argument ("") before punctuation or 2003-02-25 10:34:36 +00:00
rm Remove space at the end of line. 2003-03-01 07:57:33 +00:00
rmdir Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:21:55 +00:00
sh .Nm does not need a dummy argument ("") before punctuation or 2003-02-25 10:34:36 +00:00
sleep Use shell glob expansion in the csh example, instead of ls with glob. 2002-11-21 15:02:03 +00:00
stty New policy: New sentences start on a new line. 2002-09-25 15:18:36 +00:00
sync Fix .Nm usage. 2003-03-02 13:57:30 +00:00
systrace allow logging for untranslated syscalls; from anil@recoil.org 2002-12-15 19:05:31 +00:00
test New policy: New sentences start on a new line. 2002-09-25 15:18:36 +00:00
Makefile Add userland portion of systrace. 2002-06-17 16:29:07 +00:00
Makefile.inc Revert previous; the change that required it will be done differently. 2002-09-27 21:04:46 +00:00