summaryrefslogtreecommitdiffstats
path: root/bin/mkdir
Commit message (Collapse)AuthorAgeFilesLines
* Add META_MODE support.sjg2015-06-131-0/+18
|\ | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp
| * dirdeps.mk now sets DEP_RELDIRsjg2015-06-081-2/+0
| |
| * Updated dependenciessjg2014-05-161-1/+0
| |
| * Updated dependenciessjg2014-05-101-0/+2
| |
| * Merge from headsjg2013-09-051-2/+2
| |\ | |/ |/|
| * sync from headsjg2013-04-121-1/+18
| |\
| * | Updated dependenciessjg2013-03-111-0/+1
| | |
| * | Updated dependenciessjg2013-02-161-2/+0
| | |
| * | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.marcel2012-08-221-0/+19
| | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net>
* | | Add missing static qualifierseadler2013-04-271-2/+2
| |/ |/| | | | | | | Reviewed by: ed, jilles MFC After: 3 days
* | Add a few examples.joel2013-03-151-1/+18
|/ | | | Obtained from: OpenBSD
* Put some static keywords in the source code.ed2011-10-311-1/+1
| | | | | | For these simple utilities, it doesn't harm to make all global variables static. In fact, this allows the compiler to perform better forms of optimisation and analysis.
* More markup fixes.ru2006-12-271-3/+3
|
* Fix markup.ru2006-12-271-6/+7
|
* Adhere to POSIX: the -m option only applies to the newly createdru2006-10-101-13/+21
| | | | | | | directories; it should not change the permission bits of already existing directories. Submitted by: Alex Unleashed (modified by me)
* Sync program's usage() with manpage's SYNOPSIS.ru2005-02-091-1/+2
|
* Remove WARNS?= 6 from Makefile, since it is already in src/bin/Makefile.incssouhlal2005-01-261-1/+0
| | | | | Requested by: ru Approved by: grehan (mentor)
* - The first argument of getmode() is a void *ssouhlal2005-01-252-1/+3
| | | | | | | - Add WARNS?= 6 Approved by: stefanf, grehan (mentor) Obtained from: DragonFlyBSD
* Add the new standard EXIT STATUS section where appropriate.ru2005-01-161-3/+3
| | | | Sort standard sections in the (documented) preferred order.
* /*- or .\"- or #- to begin license clauses.imp2005-01-102-1/+2
|
* Don't read the byte at *argv[strlen(*argv) + 1].das2004-09-241-1/+1
| | | | PR: 71743
* Deal with double whitespace.ru2004-07-031-2/+2
|
* Remove clause 3 from the UCB licenses.markm2004-04-062-8/+0
| | | | OK'ed by: imp, core
* Quiet warnings about copyright[].obrien2003-05-011-2/+2
|
* Put documentation of the -m option's argument in its list tag in thetjr2002-06-301-2/+4
| | | | Description section for consistency with other manpages.
* Consistently use __FBSDIDobrien2002-06-301-2/+2
|
* Use `The .Nm utility'charnier2002-04-161-2/+3
|
* Fix a bug introduced in rev.1.23 - for some reason mkdir("/", ...) systemsobomax2002-02-251-1/+1
| | | | | | | call returns `EISDIR', not `EEXIST', so that be prepared for that. This should fix number of ports, that often call `mkdir -p //usr/local/foobar'. This is just a quick workaround, the real fix would be either to avoid calling mkdir("/", ...) or fix VFS code to return consistent errno for this case.
* Fix warnings inspired by lint, a commercial lint and WARNS=4.markm2002-02-221-4/+4
|
* Fix the race between the stat() and the mkdir().zarzycki2002-02-051-16/+19
| | | | Reviewed by: jkh
* o __P has been reovedimp2002-02-021-10/+5
| | | | | | | | | o Old-style K&R declarations have been converted to new C89 style o register has been removed o prototype for main() has been removed (gcc3 makes it an error) o int main(int argc, char *argv[]) is the preferred main definition. o Attempt to not break style(9) conformance for declarations more than they already are.
* Default to WARNS=2. Binary builds that cannot handle this must explicitlyobrien2001-12-041-1/+0
| | | | | | set WARNS=0. Reviewed by: mike
* mdoc(7) police: utilize the new .Ex macro.ru2001-08-151-3/+1
|
* Set WARNS=2 on programs which compile cleanly.dd2001-07-151-0/+1
| | | | Submitted by: Mike Barcroft <mike@q9media.com>
* Add a note on what happens if the "-p" option is specifiedyar2001-06-291-0/+2
| | | | | | | and a final directory already exists. Reviewed by: freebsd-audit MFC after: 5 days
* Silence WARNS=2 and BDECFLAGS except for stupid mode_t warnings.kris2001-05-201-0/+1
| | | | MFC after: 1 week
* Special case the error reporting when errno is ENOTDIR or ENOENT.alfred2001-01-141-1/+5
| | | | | | | | This makes "mkdir /nonexistant/foo" complain that /nonexistant doesn't exist rather than /nonexistant/foo which doesn't make much sense. Submitted (in a different form) by: W.H.Scholten <whs@xs4all.nl>
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-201-1/+1
|
* brucify and add comment about -v being non-standard to manpagemharo1999-09-042-6/+10
| | | | Reviewed by: obrien
* Fix typo in previous commit that documented the -v option.mpp1999-08-281-1/+1
|
* add verbose flagmharo1999-08-282-5/+17
| | | | Reviewed by: obrien
* $Id$ -> $FreeBSD$peter1999-08-273-3/+3
|
* Various spelling/formatting changes.kris1999-05-081-4/+5
| | | | Submitted by: Philippe Charnier <charnier@xp11.frmug.org>
* Free memory obtained from setmode.imp1998-12-161-1/+2
| | | | Obtained from: OpenBSD
* Fix behaviour for 'mkdir -m 777 / /tmp/foo'. Play "guess the style bug"msmith1998-10-231-6/+8
| | | | | | with Bruce again. Reported by: bde
* Honour the spirit rather than the implementation of the previous changes;msmith1998-10-221-19/+10
| | | | | if we are invoked with -m, use chmod() on the final directory component in order to ensure the mode is correctly set.
* Make this compile, and honour the spirit of the original design whilemsmith1998-10-201-8/+10
| | | | | | | incorporating the intended fix. Attempt to address some of the putative style bugs introduced. Others doubtless remain. Embarrassed by: bde
* - mkdir -m should call chmod because the high-order bits get ignoredmsmith1998-10-201-1/+19
| | | | | | by the kernel as a security feature of some sort. Submitted by: Wilfredo Sanchez <wsanchez@apple.com>
* correct use of .Nm. Add rcsid.charnier1998-05-152-7/+9
|
* Fix several problems with mkdir:mpp1997-04-011-29/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1) Fix mkdir -p to exit with the proper exit status and issue an error message if it was unable to create all of the specified directories and they did not previously exist. POSIX says: The mkdir utility shall exit with one of the following values: 0 All the specified directories were created successfully or the -p option was specified and all the specified directories now exist. E.g. % mkdir -p /var/mkdir mkdir: /var/mkdir: Permission denied % touch /tmp/file % mkdir -p /tmp/file/dir mkdir: /tmp/file: Not a directory Previously the above examples would exit with a zero exit status and no error message. Something like the following run as a normal user will still not produce an error: % id uid=629(mpp) gid=629(mpp).... % mkdir -p /usr/local/etc % ls -ld /usr/local/etc drwxr-xr-x 4 bin bin 512 Dec 26 14:55 /usr/local/etc/ 2) Cleaned up the mode handling to be more efficient when multiple directories are being created. 3) Fixed a problem where directories could be created with the wrong mode if the the -p option was specified and the build() routine returned and error. It would leave the umask set incorrectly at this point. 4) Removed an unused variable. Closes PR# 2304.
OpenPOWER on IntegriCloud