<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coreutils/src/cp.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-12-06T19:44:08Z</updated>
<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): Don't pass mkdir a mode greater than</title>
<updated>2006-10-18T20:56:38Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2006-10-18T20:56:38Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=11cf1d39f2fbe2dcfb6d268fd3e2a56334f1d224'/>
<id>urn:sha1:11cf1d39f2fbe2dcfb6d268fd3e2a56334f1d224</id>
<content type='text'>
7777.  This matches historical 'cp' behavior and avoids some
(though not all) implementation-defined behavior of mkdir.
* src/cp.c (make_dir_parents_private): Likewise.
* src/copy.c (copy_internal): Don't pass 'open' a mode greater
than 777.  This is required by POSIX.  It doesn't make any difference
in actual behavior on any host that I know of.
</content>
</entry>
<entry>
<title>mv and "cp -r" no longer fail when invoked with two arguments</title>
<updated>2006-09-08T17:08:53Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2006-09-08T17:08:53Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=d7619b5fe899074ef196154b2eec54d51290d450'/>
<id>urn:sha1:d7619b5fe899074ef196154b2eec54d51290d450</id>
<content type='text'>
where the first one names a directory and the second name ends in
a slash and doesn't exist.  E.g., "mv dir B/", for nonexistent B,
now succeeds, once more. This reverts part of the 2004-06-27
change for 5.3.0.
* NEWS: Say the above.
* src/mv.c (target_directory_operand): Don't require (here)
that the target operand "look like" a directory.  This change
pushes the test down to the rename syscall level, where a
"mv dir existing-non-dir/" will mistakenly succeed on older systems
that ignore trailing slashes in the rename destination argument.
* src/cp.c (target_directory_operand): Likewise, but for cp.
* tests/mv/trailing-slash: Exercise the above fixes.
* tests/cp/trailing-slash: New file.
* tests/cp/Makefile.am (EXTRA_DIST): Add trailing-slash.
</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>* src/copy.c (copy_internal): Don't test whether macros like</title>
<updated>2006-08-28T23:29:38Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2006-08-28T23:29:38Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=25aebae77d29f2984078606f0789a6db36218ea9'/>
<id>urn:sha1:25aebae77d29f2984078606f0789a6db36218ea9</id>
<content type='text'>
S_ISLNK are defined, since they're always defined now.
* src/cp.c (main): Likewise.
* src/ln.c (main): Likewise.
* src/ls.c (get_link_name, make_link_name): Likewise.
* src/mkfifo.c (usage): Likewise.
* src/who.c (S_IWGRP): Likewise.
</content>
</entry>
<entry>
<title>(usage): Correct description of -a: s/-dpR/-dpPR/. From Tomas Pospisek.</title>
<updated>2006-05-15T20:19:02Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2006-05-15T20:19:02Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=e06a5a5cc77a462087ca68aea9b538651f502ec5'/>
<id>urn:sha1:e06a5a5cc77a462087ca68aea9b538651f502ec5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>(target_directory_operand): Use new last_component.</title>
<updated>2006-03-26T12:05:51Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2006-03-26T12:05:51Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=c3965052fe2d222744f58e7bbd2756a9548c8740'/>
<id>urn:sha1:c3965052fe2d222744f58e7bbd2756a9548c8740</id>
<content type='text'>
(ASSIGN_BASENAME_STRDUPA): Likewise.  Reduce time spent
traversing the string.
</content>
</entry>
<entry>
<title>(usage): Use two spaces (not one) to separate the</title>
<updated>2006-02-06T07:39:37Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2006-02-06T07:39:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=c446eceb9c4d85cd32ffce64a37452ad2fbfc4a2'/>
<id>urn:sha1:c446eceb9c4d85cd32ffce64a37452ad2fbfc4a2</id>
<content type='text'>
option string from its description, so help2man formats the
derived man page properly.  Patch from Nicolas François
in http://bugs.debian.org/351601.
</content>
</entry>
<entry>
<title>Include lchmod.h.</title>
<updated>2006-01-02T06:36:55Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2006-01-02T06:36:55Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=4aff81e69a0c3ce376e331a088f0839335f8400d'/>
<id>urn:sha1:4aff81e69a0c3ce376e331a088f0839335f8400d</id>
<content type='text'>
(re_protect, make_dir_parents_private): Use lchmod rather than chmod.
</content>
</entry>
<entry>
<title>Don't include &lt;assert.h&gt;; it wasn't used.</title>
<updated>2005-12-28T10:22:41Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2005-12-28T10:22:41Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=67e065e79d5858e5959578e94e2b161b4b5c24dc'/>
<id>urn:sha1:67e065e79d5858e5959578e94e2b161b4b5c24dc</id>
<content type='text'>
</content>
</entry>
</feed>
