<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coreutils/src/copy.c, branch v8.5</title>
<subtitle>Mirror of https://https.git.savannah.gnu.org/git/coreutils.git/
</subtitle>
<id>https://git.shady.money/coreutils/atom?h=v8.5</id>
<link rel='self' href='https://git.shady.money/coreutils/atom?h=v8.5'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/'/>
<updated>2010-04-16T22:02:02Z</updated>
<entry>
<title>cp: preserve "capabilities" when also preserving file ownership</title>
<updated>2010-04-16T22:02:02Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2010-04-16T07:39:11Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=1777d0dfe34dc4d8c148a34a96eb92c6036ff7bd'/>
<id>urn:sha1:1777d0dfe34dc4d8c148a34a96eb92c6036ff7bd</id>
<content type='text'>
* src/copy.c (copy_reg): Copy xattrs _after_ setting file ownership
so that capabilities are not cleared when setting ownership.
* tests/cp/capability: A new root test.
* tests/Makefile.am (root_tests): Reference the new test.
* NEWS: Mention the fix.
</content>
</entry>
<entry>
<title>cp: treat selinux warnings consistently</title>
<updated>2010-04-13T12:09:50Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2010-04-13T11:49:05Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=584e38d8b3199924ce24f9fa075d27d0d82a2a8b'/>
<id>urn:sha1:584e38d8b3199924ce24f9fa075d27d0d82a2a8b</id>
<content type='text'>
* src/copy.c (copy_reg): Suppress SELinux ENOTSUP warnings consistently
between the destination being present or not.  Previously we did
not suppress ENOTSUP messages when the destination was present.
(copy_internal): Use the same ENOTSUP supression method as
copy_reg() even though the issue was not seen in this case.
* tests/cp/cp-a-selinux: Add a test case for the issue and
group the other test cases in the file more coherently.
* tests/cp/cp-mv-enotsup-xattr: Do the same check for xattr
warnings, even though they did not have the issue.
</content>
</entry>
<entry>
<title>maint: ftruncate is always available, even without gnulib</title>
<updated>2010-04-09T08:50:43Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2010-04-09T08:49:38Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=ef5758c3282b3325340d8b601deed5ab5e7ade64'/>
<id>urn:sha1:ef5758c3282b3325340d8b601deed5ab5e7ade64</id>
<content type='text'>
Now that even MinGW provides ftruncate, we know that all
reasonable portability targets provide this function.
Remove the workaround code.  We nearly removed the gnulib
module three years ago:
  http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
and it is now officially "obsolete".
* bootstrap.conf (gnulib_modules): Remove ftruncate.
* src/copy.c (copy_reg): Remove use of HAVE_FTRUNCATE and its
no-longer-used workaround code.
* src/truncate.c: Remove a comment about handling missing ftruncate.
</content>
</entry>
<entry>
<title>maint: add a space before open-paren, where lacking</title>
<updated>2010-03-17T17:28:28Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2010-03-17T17:27:52Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=46e01372773a9ca265009ca085a28aea313a3d73'/>
<id>urn:sha1:46e01372773a9ca265009ca085a28aea313a3d73</id>
<content type='text'>
* src/copy.c (copy_reg): Likewise.
* src/cut.c (main): Likewise.
* src/dd.c (main): Likewise.
* src/getlimits.c (print_int): Likewise.
* src/join.c (join): Likewise.
* src/pwd.c (logical_getcwd): Likewise.
* src/sort.c (specify_nmerge, mergefps, avoid_trashing_input): Likewise.
(merge): Likewise.
* src/uptime.c (usage): Likewise.
</content>
</entry>
<entry>
<title>copy.c: improve a comment</title>
<updated>2010-02-07T20:02:18Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2010-02-07T20:02:18Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=ed509250a2c9436ba1f2fd013b0f192abd3906f2'/>
<id>urn:sha1:ed509250a2c9436ba1f2fd013b0f192abd3906f2</id>
<content type='text'>
* src/copy.c (copy_reg): The comment about POSIXLY_CORRECT refers
only to cp, not to any other application that uses copy.c.
</content>
</entry>
<entry>
<title>maint: update all FSF copyright year lists to include 2010</title>
<updated>2010-01-01T13:06:47Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2010-01-01T09:56:28Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=1aa17dc89b3f313697661541adca0aa0defbdc09'/>
<id>urn:sha1:1aa17dc89b3f313697661541adca0aa0defbdc09</id>
<content type='text'>
Use this command:
git ls-files | grep -v COPYING \
  | xargs env UPDATE_COPYRIGHT_USE_INTERVALS=1 \
      build-aux/update-copyright
</content>
</entry>
<entry>
<title>copy: allow symlink timestamp preservation on more systems</title>
<updated>2009-10-10T21:16:52Z</updated>
<author>
<name>Eric Blake</name>
<email>ebb9@byu.net</email>
</author>
<published>2009-10-08T21:57:06Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=7280a913a12ebfe33e8cad1b217b84944bbd3681'/>
<id>urn:sha1:7280a913a12ebfe33e8cad1b217b84944bbd3681</id>
<content type='text'>
* src/copy.c (utimens_symlink): Simplify by using lutimens.
* m4/jm-macros.m4 (coreutils_MACROS): Drop utimensat; gnulib does
this for us.
* tests/cp/preserve-slink-time: Recognize lutimes support.
</content>
</entry>
<entry>
<title>cp, mv: use linkat to guarantee semantics</title>
<updated>2009-09-25T13:03:36Z</updated>
<author>
<name>Eric Blake</name>
<email>ebb9@byu.net</email>
</author>
<published>2009-09-24T23:11:26Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=ca9e212cf804775f3f460e8b42a4cdb2c74f8ee4'/>
<id>urn:sha1:ca9e212cf804775f3f460e8b42a4cdb2c74f8ee4</id>
<content type='text'>
* src/copy.c (copy_internal): Use linkat, not link.
</content>
</entry>
<entry>
<title>maint: Use logical rather than bitwise operators on bools</title>
<updated>2009-09-23T13:33:40Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2009-09-23T09:10:51Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=a037e838e15c9a698f1634398e0fe2726398d575'/>
<id>urn:sha1:a037e838e15c9a698f1634398e0fe2726398d575</id>
<content type='text'>
This is because bitwise operators are:
- confusing and inconsistent in a boolean context
- non short circuiting
- brittle in C89 where bool can be an int (so &gt; 1)
</content>
</entry>
<entry>
<title>build: avoid compiler warnings on cygwin 1.5</title>
<updated>2009-09-22T02:42:16Z</updated>
<author>
<name>Eric Blake</name>
<email>ebb9@byu.net</email>
</author>
<published>2009-09-21T16:28:01Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=32f987af1274d3ed53244564ab537dce8e330e0a'/>
<id>urn:sha1:32f987af1274d3ed53244564ab537dce8e330e0a</id>
<content type='text'>
* src/copy.c (utimens_symlink): Avoid unused variables.
* src/su.c (getusershell): Rely on gnulib for prototype.
</content>
</entry>
</feed>
