<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coreutils/src/mkdir.c, branch v6.2</title>
<subtitle>Mirror of https://https.git.savannah.gnu.org/git/coreutils.git/
</subtitle>
<id>https://git.shady.money/coreutils/atom?h=v6.2</id>
<link rel='self' href='https://git.shady.money/coreutils/atom?h=v6.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/'/>
<updated>2006-09-16T20:03:56Z</updated>
<entry>
<title>* NEWS: Document that mkdir -p and install -d now fork on occasion.</title>
<updated>2006-09-16T20:03:56Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2006-09-16T20:03:56Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=b67faf329cebf0805b2b73cc775ccfc7a05390de'/>
<id>urn:sha1:b67faf329cebf0805b2b73cc775ccfc7a05390de</id>
<content type='text'>
* bootstrap.conf (gnulib_modules): Add savewd.
* src/install.c: Include savewd.h.
(process_dir): New function.
(main, install_file_in_file_parents): Use it, along with the new
savewd module, to avoid some race conditions.
* src/mkdir.c: Include savewd.h.
(struct mkdir_options): New members make_ancestor_function, mode,
mode_bits.
(make_ancestor): Return 1 if the resulting directory is not readable.
(process_dir): New function.
(main): Use it, along with new savewd module, to avoid some
race conditions.  Fill in new slots of struct mkdir_options, so
that callees get the values.
* tests/install/basic-1: Test for coreutils 5.97 bug that was
fixed in coreutils 6.0, and which should still be fixed with
this change.
* tests/mkdir/p-3: Likewise.
</content>
</entry>
<entry>
<title>Don't include dirname.h, since system.h does it now.</title>
<updated>2006-09-03T02:53:16Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2006-09-03T02:53:16Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=d8049d74780e587525622f69219243097a13861b'/>
<id>urn:sha1:d8049d74780e587525622f69219243097a13861b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>(struct mkdir_options): New struct.</title>
<updated>2006-07-17T03:10:10Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2006-07-17T03:10:10Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=76b12f000534e588e65a6d8b4a152e9e382d4f85'/>
<id>urn:sha1:76b12f000534e588e65a6d8b4a152e9e382d4f85</id>
<content type='text'>
(announce_mkdir, make_ancestor): New functions.
(main): Use them.  Adjust to mode_adjust API change.  Stick with
umask 0.  Use make_dir_parents for all the work.
</content>
</entry>
<entry>
<title>Include lchmod.h.</title>
<updated>2006-01-02T06:37:36Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2006-01-02T06:37:36Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=51050b62c890b9e988335d6fa444c252392a84db'/>
<id>urn:sha1:51050b62c890b9e988335d6fa444c252392a84db</id>
<content type='text'>
(usage): Clarify -m's operation.
(main): Use lchmod rather than chmod.  Don't use lchmod unless the
new mode contains bits outside the 777 range.
</content>
</entry>
<entry>
<title>(main) Avoid a minor race condition when `-m MODE' is specified, by using</title>
<updated>2005-12-19T18:17:16Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2005-12-19T18:17:16Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=52893ffd2a3ff896e0b51f3f35bca191b71a47d4'/>
<id>urn:sha1:52893ffd2a3ff896e0b51f3f35bca191b71a47d4</id>
<content type='text'>
open, fchown, and close rather than just chown.  To do that reliably
(even with an overly restrictive umask), ensure that each
mkdir call uses a mode including at least owner-read access.
</content>
</entry>
<entry>
<title>(create_parents): Remove static var (now local to 'main').</title>
<updated>2005-06-14T23:55:47Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2005-06-14T23:55:47Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=0b2ac253e7a1e95827115e85ba5fe90e570b81df'/>
<id>urn:sha1:0b2ac253e7a1e95827115e85ba5fe90e570b81df</id>
<content type='text'>
(main): Standardize on a diagnostic for restore_cwd failure,
and report errno.
Don't bother to check cwd_errno unless create_parents.
Use mkdir rather than make_dir; it's simpler.
</content>
</entry>
<entry>
<title>(main): Adjust to new make_dir_parents convention.</title>
<updated>2005-06-14T18:35:58Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2005-06-14T18:35:58Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=7cc0d42200db3b208540494410acd97bb95752ab'/>
<id>urn:sha1:7cc0d42200db3b208540494410acd97bb95752ab</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tweak diagnostic wording: Use `... return to working directory', rather</title>
<updated>2005-06-14T08:18:43Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2005-06-14T08:18:43Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=19c47583a27b8ff4d0d58c0fd0b82a515404630b'/>
<id>urn:sha1:19c47583a27b8ff4d0d58c0fd0b82a515404630b</id>
<content type='text'>
than `... restore working directory'.
</content>
</entry>
<entry>
<title>(main): When make_dir_parents changes the current working</title>
<updated>2005-06-13T10:17:36Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2005-06-13T10:17:36Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=4063f9696ce3402f8ebcff6ac4f95f861c4a7d4d'/>
<id>urn:sha1:4063f9696ce3402f8ebcff6ac4f95f861c4a7d4d</id>
<content type='text'>
directory, give a diagnostic about each subsequent failure to create
a dot-relative directory.
</content>
</entry>
<entry>
<title>Don't use "path" or "filename".</title>
<updated>2005-06-02T05:17:24Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2005-06-02T05:17:24Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=97603a5d2adc889186f2934624a95c92dbfa2fdd'/>
<id>urn:sha1:97603a5d2adc889186f2934624a95c92dbfa2fdd</id>
<content type='text'>
</content>
</entry>
</feed>
