<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coreutils/src/copy.c, branch v6.8</title>
<subtitle>Mirror of https://https.git.savannah.gnu.org/git/coreutils.git/
</subtitle>
<id>https://git.shady.money/coreutils/atom?h=v6.8</id>
<link rel='self' href='https://git.shady.money/coreutils/atom?h=v6.8'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/'/>
<updated>2007-02-22T15:32:45Z</updated>
<entry>
<title>Adjust preceding change not to perform an unaligned access.</title>
<updated>2007-02-22T15:32:45Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2007-02-22T15:32:45Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=c450b625b4351aa5ab87a4334f95b6a24f3a0022'/>
<id>urn:sha1:c450b625b4351aa5ab87a4334f95b6a24f3a0022</id>
<content type='text'>
* src/copy.c (copy_reg): Undo previous change.  Instead, make
it clearer that we're using a single-byte sentinel, and
[lint]: Initialize uintptr_t-1 bytes after the sentinel.
Reported by Andreas Schwab.
</content>
</entry>
<entry>
<title>Placate valgrind, wrt ./cp --sparse=always</title>
<updated>2007-02-22T11:50:36Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2007-02-22T11:50:36Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=f48ca7f500cd55e88f9fa24ec8ef74d6bed25a69'/>
<id>urn:sha1:f48ca7f500cd55e88f9fa24ec8ef74d6bed25a69</id>
<content type='text'>
* src/copy.c (copy_reg): Place the sentinel by setting a
full word's worth of bits, not just a single byte's worth.
This avoids a harmless (but distracting) case of memory being
used-uninitialized.
</content>
</entry>
<entry>
<title>* src/copy.c (cached_umask): Cast -1 to mode_t to avoid a warning</title>
<updated>2007-02-21T16:23:05Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2007-02-21T16:23:05Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=cc388d140c15c5b524124d4f96539b80385e5e06'/>
<id>urn:sha1:cc388d140c15c5b524124d4f96539b80385e5e06</id>
<content type='text'>
about out-of-range initializer with Sun C 5.8.
</content>
</entry>
<entry>
<title>* NEWS: Document fix for cp --preserve=mode.</title>
<updated>2007-02-03T17:45:46Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2007-02-03T17:45:46Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=b28a8851ed22dbf0cd123974a0c97ae0b82bec2b'/>
<id>urn:sha1:b28a8851ed22dbf0cd123974a0c97ae0b82bec2b</id>
<content type='text'>
* src/copy.c (copy_internal): Omit the group- or other-writeable
permissions when creating a directory, to avoid a race condition
if the special mode bits aren't right just after the directory is
created.
* src/cp.c (make_dir_parents_private): Likewise.
* tests/cp/parent-perm-race: Test for the "cp --preserve=mode"
race fix in copy.c.
</content>
</entry>
<entry>
<title>* src/copy.c (copy_internal): Use mkfifo as a fallback if mknod fails.</title>
<updated>2007-01-03T09:46:25Z</updated>
<author>
<name>Bruno Haible</name>
<email>bruno@clisp.org</email>
</author>
<published>2007-01-03T09:46:25Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=8563b4c0519cee303e9609694b7a36453458cbbd'/>
<id>urn:sha1:8563b4c0519cee303e9609694b7a36453458cbbd</id>
<content type='text'>
Needed on MacOS X.

Signed-off-by: Jim Meyering &lt;jim@meyering.net&gt;
</content>
</entry>
<entry>
<title>* src/copy.c (copy_reg): Rewrite a comment that was rendered</title>
<updated>2006-12-30T08:34:31Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2006-12-30T08:34:31Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=67b9752cd184d19e791c2e14275518956f441bfc'/>
<id>urn:sha1:67b9752cd184d19e791c2e14275518956f441bfc</id>
<content type='text'>
inaccurate by the 2006-10-18 change.
</content>
</entry>
<entry>
<title>cp -p now clears special bits if it fails to preserve owner or group</title>
<updated>2006-12-07T07:10:35Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2006-12-07T07:10:35Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=fc92148eac1cd2f8a5e99b3facc21e630e815bef'/>
<id>urn:sha1:fc92148eac1cd2f8a5e99b3facc21e630e815bef</id>
<content type='text'>
* NEWS: Document the cp -p fix for special bits.
* src/copy.c (set_owner): Now returns a three-way result, so
that the caller can clear the special bits.  All callers changed.
(copy_reg): Don't set the special bits if chown failed.
(copy_internal): Likewise.
* tests/cp/special-bits: Test this fix.
Signed-off-by: Jim Meyering &lt;jim@meyering.net&gt;
</content>
</entry>
<entry>
<title>* NEWS: Document the cp --preserve=ownership fix.</title>
<updated>2006-12-06T19:44:08Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2006-12-06T19:44:08Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=a4f7b723f0723ec17b48ae25f0a218adcab2ff54'/>
<id>urn:sha1:a4f7b723f0723ec17b48ae25f0a218adcab2ff54</id>
<content type='text'>
* m4/jm-macros.m4 (coreutils_MACROS): Check for fchmod.
* src/copy.c (fchmod_or_lchmod): New function.
(copy_reg): New arg OMITTED_PERMISSIONS.  All uses changed.
Omit confusing and unused ", dst_mode" arg to 'open' without O_CREAT.
When creating a file, use O_EXCL, so we're more likely to detect
funny business by other processes.  At the end, if permissions
were omitted, chmod them back in.
(copy_internal): If the ownership might change, omit some permissions
at first, then restore them after chowning the file.
* src/cp.c (make_dir_parents_private): Likewise.
* src/copy.c (cached_umask): New function.
* src/copy.h (cached_umask): New decl.
</content>
</entry>
<entry>
<title>* src/copy.c (copy_internal): Add a comment saying why we prefer</title>
<updated>2006-10-21T07:16:19Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2006-10-21T07:16:19Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=46775398f2575505d355a5fea93f87bb45f07937'/>
<id>urn:sha1:46775398f2575505d355a5fea93f87bb45f07937</id>
<content type='text'>
mknod over mkfifo.
</content>
</entry>
<entry>
<title>* src/copy.c (copy_reg): Rewrite slightly to avoid duplicte code</title>
<updated>2006-10-19T05:22:54Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2006-10-19T05:22:54Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=86823158eb72dd472499cba2fb2e947f69afae72'/>
<id>urn:sha1:86823158eb72dd472499cba2fb2e947f69afae72</id>
<content type='text'>
when opening dst_name.
(copy_reg, copy_internal): Use (SYSCALL != 0) rather than plain
(SYSCALL) to test for failure in a system call.
</content>
</entry>
</feed>
