<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coreutils/src/mkdir.c, branch v6.7</title>
<subtitle>Mirror of https://https.git.savannah.gnu.org/git/coreutils.git/
</subtitle>
<id>https://git.shady.money/coreutils/atom?h=v6.7</id>
<link rel='self' href='https://git.shady.money/coreutils/atom?h=v6.7'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/'/>
<updated>2006-10-07T07:08:29Z</updated>
<entry>
<title>* src/install.c (make_ancestor): New arg COMPONENT.</title>
<updated>2006-10-07T07:08:29Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2006-10-07T07:08:29Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=dc52b433efc3bba39fb801b05e8d0530c680ad0e'/>
<id>urn:sha1:dc52b433efc3bba39fb801b05e8d0530c680ad0e</id>
<content type='text'>
* src/mkdir.c (make_ancestor): Likewise.
* tests/install/basic-1: Check for install -Dv bug.
</content>
</entry>
<entry>
<title>Fix bug reported today by Mike Frysinger: mkdir -pv is logging the</title>
<updated>2006-10-06T20:44:31Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2006-10-06T20:44:31Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=4767fc607e5fd38b2a9c8db2d876125aaa10e578'/>
<id>urn:sha1:4767fc607e5fd38b2a9c8db2d876125aaa10e578</id>
<content type='text'>
wrong file name in some cases.
* src/install.c (struct install_options): New type.
(install_file_in_file_parents, main):
Use it instead of struct cp_options.
(process_dir): Remember the full name.
(announce_mkdir, make_ancestor): Use the full name in announcements.
* src/mkdir.c (struct mkdir_options): Add full_name member.
(make_ancestor): Use the full name in announcements.
(process_dir): Remember the full name.
* tests/mkdir/Makefile.am (TESTS): Add p-v.
* tests/mkdir/p-v: New file, to test this bug.
</content>
</entry>
<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>
</feed>
