summaryrefslogtreecommitdiffstats
path: root/bin/mkdir (follow)
Commit message (Collapse)AuthorAgeFilesLines
* When system calls indicate an error they return -1, not some arbitraryderaadt2019-06-281-4/+4
| | | | | | 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.
* Delete useless setlocale(3) in src/bin/.schwarze2016-10-191-7/+4
| | | | | | 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 Kalimanderaadt2015-10-231-2/+2
|
* normalize the ordering of tame requests (particularily, "rpath wpath cpath",deraadt2015-10-101-2/+2
| | | | | | | 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.
* Change all tame callers to namechange to pledge(2).deraadt2015-10-091-3/+3
|
* tame "stdio cpath rpath fattr", unless mkdir -m is passed a mode whichderaadt2015-10-071-1/+6
| | | | | has setuid/setgid/sticky bits. ok semarie
* Revert rev 1.21 to fix a race condition where multiple mkdir -p's tryingnaddy2013-04-021-11/+7
| | | | to create overlapping paths in parallel could error out. ok millert@
* add an EXIT STATUS section for /bin;jmc2010-09-031-3/+3
|
* rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt2009-10-271-15/+1
| | | | | | | 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
* bump the posix reference in STANDARDS to IEEE Std 1003.1-2008, with a fewjmc2009-02-081-3/+3
| | | | updates to follow;
* Fix a problem in the last commit. Upon closer reading of POSIX, inmillert2008-09-301-8/+7
| | | | -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 errormillert2008-09-301-24/+23
| | | | handling. Closes PR 5908. OK deraadt@
* mkfifo makes fifos, not directories; from Ben Calvertjmc2008-04-161-7/+4
| | | | | | | while 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 systracemillert2008-02-131-8/+12
| | | | | | | 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@
* fix PR 5141:chl2008-01-021-9/+14
| | | | | | | | | | | 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@
* the ellipsis is not an optional argument; while here, sync the usagesobrado2007-08-062-6/+7
| | | | | | | | and synopsis of commands lots of good ideas by jmc@ ok jmc@
* convert to new .Dd format;jmc2007-05-311-2/+2
|
* - consistent STANDARDS blurbjmc2007-05-291-4/+4
| | | | | | - note which options are extensions to POSIX discussed w/ deraadt otto millert
* Add reference to mkdir(1).ray2006-08-041-1/+2
| | | | OK jmc@
* Make sure `path' variable is always NUL-terminated.ray2006-03-241-4/+7
| | | | | | | Totally different diff (but functionally equivalent) by Loic Tortay and okayed by tedu@. ``Looks sane to me'' moritz@
* standard EXAMPLES;jmc2004-12-131-8/+8
|
* more references to hier(7), from mickey;jmc2004-12-131-2/+6
|
* setmode(3) returns void *, not mode_t *. ok millert@otto2004-07-011-3/+3
|
* spacingderaadt2003-07-291-11/+11
|
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-022-13/+5
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* more .Lideraadt2003-03-121-4/+4
|
* ansideraadt2002-07-041-10/+5
|
* knftodd2002-06-091-3/+3
|
* 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.millert2002-02-161-4/+4
|
* Initial patch.mpech2002-02-111-4/+4
| | | | | | | | | When you give command examples in a manual page prefix them with $ command or # command deraadt@ ok
* missed some registers, kill'em!mpech2002-01-161-4/+4
| | | | millert@ ok
* o) __progname aria;mpech2001-09-061-4/+5
| | | | millert@ ok.
* Change all option list specifications to ".Bl -tag -width Ds". Most manaaron2000-11-091-2/+2
| | | | | pages just needed their -width parameter tweaked to "Ds", which provides a nice width of 6 constant characters. For consistency more than anything.
* typoaaron2000-10-181-2/+2
|
* Add some rudimentary EXAMPLES sections and standardize the way we displayaaron2000-10-181-9/+9
| | | | existing EXAMPLES sections.
* Add HISTORY sections; from FreeBSD. Information originally obtained fromaaron2000-03-211-1/+6
| | | | "A Quarter Centry of UNIX, Peter H. Salus, Page 41".
* Remove hard sentence breaks.aaron2000-03-171-3/+4
|
* Make mkdir -m 1777 foo and the like work. From how Netbsd/Freebsd do it.ericj2000-02-021-3/+15
|
* Add EXAMPLES. Fix formatting nits.aaron1999-09-231-4/+21
|
* consistencyaaron1999-08-171-2/+3
|
* more precise SYNOPSIS syntaxaaron1999-08-161-2/+2
|
* use .Ar on later .It Fl linesderaadt1999-07-211-3/+4
|
* always give .Nm macros an argument in SYNOPSIS sections; krw@tcn.netaaron1998-12-151-2/+2
|
* start killing redundant .Nm macro arguments (mandoc ``remembers'' the first oneaaron1998-11-281-5/+5
| | | | it's given)
* use .Dq/.Sq macros instead of `` ''s and ` 's (think typesetting and futureaaron1998-11-061-2/+1
| | | | processing); kill redundant .Pp macros; other misc fixes
* more setmode() leaks -- kill 'em allderaadt1998-09-261-2/+3
|
* First complete sweep of man pages, bin/. Command/function names previouslyaaron1998-09-141-4/+5
| | | | | (incorrectly) capatilized are fixed. Comma splices, hyphenations, SYNOPSIS cleanups, other miscellaneous typos.
* Fix a race where a dir might have been created after a stat call, but beforeniklas1998-01-251-3/+5
| | | | our mkdir
* $OpenBSD$deraadt1997-09-211-2/+1
|
* i am bored enough to fix terminal space/tab ugliesderaadt1997-09-011-4/+4
|