<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/bin/mkdir, branch stable/3</title>
<subtitle>FreeBSD source tree</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<entry>
<title>$Id$ -&gt; $FreeBSD$</title>
<updated>1999-08-29T14:23:02+00:00</updated>
<author>
<name>Peter Wemm</name>
<email>peter@FreeBSD.org</email>
</author>
<published>1999-08-29T14:23:02+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=8433714d3c66fe9fb1b3dc6c15dcdf7ec086d7e5'/>
<id>8433714d3c66fe9fb1b3dc6c15dcdf7ec086d7e5</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>MFC: Spelling/formatting fixes.</title>
<updated>1999-05-08T10:43:20+00:00</updated>
<author>
<name>Kris Kennaway</name>
<email>kris@FreeBSD.org</email>
</author>
<published>1999-05-08T10:43:20+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=ff535ac290b0bc7a04fe652f4c76a2cf41349394'/>
<id>ff535ac290b0bc7a04fe652f4c76a2cf41349394</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Free memory obtained from setmode.</title>
<updated>1998-12-16T04:42:33+00:00</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>1998-12-16T04:42:33+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=a4324714a9da4dbb693d2a090337b1ed824009a3'/>
<id>a4324714a9da4dbb693d2a090337b1ed824009a3</id>
<content type='text'>
Obtained from: OpenBSD
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Obtained from: OpenBSD
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix behaviour for 'mkdir -m 777 / /tmp/foo'.  Play "guess the style bug"</title>
<updated>1998-10-23T06:28:40+00:00</updated>
<author>
<name>Mike Smith</name>
<email>msmith@FreeBSD.org</email>
</author>
<published>1998-10-23T06:28:40+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=e45520f76e36200d0f4107a4e9ed8a7099fba662'/>
<id>e45520f76e36200d0f4107a4e9ed8a7099fba662</id>
<content type='text'>
with Bruce again.

Reported by:	bde
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
with Bruce again.

Reported by:	bde
</pre>
</div>
</content>
</entry>
<entry>
<title>Honour the spirit rather than the implementation of the previous changes;</title>
<updated>1998-10-22T21:42:20+00:00</updated>
<author>
<name>Mike Smith</name>
<email>msmith@FreeBSD.org</email>
</author>
<published>1998-10-22T21:42:20+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=16c0b5195cae2394d27ba44d41b34d055a7161b4'/>
<id>16c0b5195cae2394d27ba44d41b34d055a7161b4</id>
<content type='text'>
if we are invoked with -m, use chmod() on the final directory component
in order to ensure the mode is correctly set.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
if we are invoked with -m, use chmod() on the final directory component
in order to ensure the mode is correctly set.
</pre>
</div>
</content>
</entry>
<entry>
<title>Make this compile, and honour the spirit of the original design while</title>
<updated>1998-10-20T08:04:15+00:00</updated>
<author>
<name>Mike Smith</name>
<email>msmith@FreeBSD.org</email>
</author>
<published>1998-10-20T08:04:15+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=37a182e2b27683ffbbdb2fa04122ea710d1b953d'/>
<id>37a182e2b27683ffbbdb2fa04122ea710d1b953d</id>
<content type='text'>
incorporating the intended fix.  Attempt to address some of the
putative style bugs introduced.  Others doubtless remain.

Embarrassed by: bde
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
incorporating the intended fix.  Attempt to address some of the
putative style bugs introduced.  Others doubtless remain.

Embarrassed by: bde
</pre>
</div>
</content>
</entry>
<entry>
<title> - mkdir -m should call chmod because the high-order bits get ignored</title>
<updated>1998-10-20T06:37:01+00:00</updated>
<author>
<name>Mike Smith</name>
<email>msmith@FreeBSD.org</email>
</author>
<published>1998-10-20T06:37:01+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=2426ecdfa252acce09b680d5d928b6ea1f4cd441'/>
<id>2426ecdfa252acce09b680d5d928b6ea1f4cd441</id>
<content type='text'>
   by the kernel as a security feature of some sort.

Submitted by:	Wilfredo Sanchez &lt;wsanchez@apple.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
   by the kernel as a security feature of some sort.

Submitted by:	Wilfredo Sanchez &lt;wsanchez@apple.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>correct use of .Nm. Add rcsid.</title>
<updated>1998-05-15T06:23:45+00:00</updated>
<author>
<name>Philippe Charnier</name>
<email>charnier@FreeBSD.org</email>
</author>
<published>1998-05-15T06:23:45+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=06f628852afd3c955a261b194603c90dbe0e0cfa'/>
<id>06f628852afd3c955a261b194603c90dbe0e0cfa</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix several problems with mkdir:</title>
<updated>1997-04-01T23:46:22+00:00</updated>
<author>
<name>Mike Pritchard</name>
<email>mpp@FreeBSD.org</email>
</author>
<published>1997-04-01T23:46:22+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=1a8d9bc1f76a2020de67a493ce35035521d80d8d'/>
<id>1a8d9bc1f76a2020de67a493ce35035521d80d8d</id>
<content type='text'>
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.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.
</pre>
</div>
</content>
</entry>
<entry>
<title>compare return value from getopt against -1 rather than EOF, per the final</title>
<updated>1997-03-28T15:24:41+00:00</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>1997-03-28T15:24:41+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=93ef08af3ef1a9fb7a3af6b7212d3ca094e9aba6'/>
<id>93ef08af3ef1a9fb7a3af6b7212d3ca094e9aba6</id>
<content type='text'>
posix standard on the topic.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
posix standard on the topic.
</pre>
</div>
</content>
</entry>
</feed>
