Commit Graph

26 Commits

Author SHA1 Message Date
scw
3c6b31bc90 Insert a missing 'else' which caused mknod(2) to still be called
even if mkdir(2) failed. At best this caused two (different)
error messages to be printed. At worst, it changed the mode of
an existing file/directory.
1998-10-13 20:11:42 +00:00
wsanchez
508f3bd4f6 umask()/mkdir() system calls will not set the setuid bit; the kernel intentionally
discards the high bits, so "mkdir -m 1777 foo" won't set the sticky bit. So call
  chmod() on the directory.
1998-10-08 02:14:16 +00:00
mycroft
9dc385beb1 Delint. 1998-07-28 05:31:22 +00:00
cgd
bad15fd37f lint 1997-11-05 21:17:14 +00:00
enami
c3872193cf Fix .Nm usage. 1997-10-20 08:50:59 +00:00
christos
23edbe3557 Remove WARNS=1 from all the subdirectory Makefiles, and add it to Makefile.inc
now that all /bin has been cleaned.
1997-07-20 22:36:20 +00:00
christos
d3e25e3b59 Fix compiler warnings
Add WARNS=1
1997-07-20 18:55:28 +00:00
tls
3811362c9a kill use of register 1997-01-09 16:31:05 +00:00
explorer
464f1bd5ff Fix mkdir -p to not ignore terminal directory mode specified.
Closes pr bin/2686.
1996-08-12 22:44:53 +00:00
jtc
23e6aab105 Use "utility" instead of "command". Modern definitions of these terms
are distinct (See POSIX.2 glossary).

A utility is a executable, script or shell builtin; while a command
can be any of those things plus lists, pipelines, compound commands
(if, for, while) and shell function definitions.
1995-07-25 19:36:36 +00:00
mycroft
33b2edf3a9 Style and format police. 1995-06-25 21:59:21 +00:00
mycroft
26fcf513d2 Don't complain if a directory already exists. From Greg Hudson, but
slightly edited.
1995-06-25 21:44:34 +00:00
cgd
e150dc2818 clean up slightly; id tags, alphabetization, prototypes, etc. 1995-03-21 07:28:51 +00:00
jtc
6c6b9acef0 Revert to code before it was merged with 4.4lite.
Updated to conform to new NetBSD RCS ID conventions.
1995-03-01 07:52:23 +00:00
mycroft
667b5ea158 Merge 4.4-Lite version. 1994-09-22 09:24:46 +00:00
jtc
4725e86083 Strip trailing slashes, to make "mkdir -p" work as specified by POSIX.2. 1994-04-29 00:13:54 +00:00
jtc
7485400f95 simplify recursive directory create (mkdir -p) code 1994-04-28 00:10:30 +00:00
jtc
b148ed66e2 Localization changes.
Updated to use standard error message routines.
1993-12-31 19:34:53 +00:00
jtc
2ddbb97f0f #include <unistd.h>, so getopt(), optarg, opterr, optind, and optopt
declarations can be removed from <stdlib.h>.
1993-10-13 18:33:45 +00:00
mycroft
8542364e07 Add RCS identifiers. 1993-08-01 18:49:50 +00:00
mycroft
b1bd4afedc Add RCS indentifiers. 1993-08-01 07:42:49 +00:00
mycroft
cda4f8f6ee Add RCS identifiers. 1993-08-01 05:37:30 +00:00
jtc
724f511de6 Make Posix 1003.2 (D11.2) compliant by adding -m (mode) option. 1993-07-20 22:27:07 +00:00
cgd
06be60083d changed "Id" to "Header" for rcsids 1993-03-23 00:22:59 +00:00
cgd
346aa5dd48 added rcs ids to all files 1993-03-22 08:04:00 +00:00
cgd
61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00