<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coreutils/src/install.c, branch v8.26</title>
<subtitle>Mirror of https://https.git.savannah.gnu.org/git/coreutils.git/
</subtitle>
<id>https://git.shady.money/coreutils/atom?h=v8.26</id>
<link rel='self' href='https://git.shady.money/coreutils/atom?h=v8.26'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/'/>
<updated>2016-11-28T16:17:31Z</updated>
<entry>
<title>install,mkdir: fix handling of -DZ and -pZ, respectively</title>
<updated>2016-11-28T16:17:31Z</updated>
<author>
<name>Kamil Dudka</name>
<email>kdudka@redhat.com</email>
</author>
<published>2016-11-28T15:21:42Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=d8104265f229ababd5a68a46eeccbccc07e72cdc'/>
<id>urn:sha1:d8104265f229ababd5a68a46eeccbccc07e72cdc</id>
<content type='text'>
... in the case where two or more directories nested in each other are
created and each of them defaults to a different SELinux context.

* src/install.c (make_ancestor): When calling defaultcon(), give it the
same path that is given to mkdir().  The other path is not always valid
wrt. current working directory.
* src/mkdir.c (make_ancestor): Likewise.
* NEWS: Mention the bug fix.

Reported at https://bugzilla.redhat.com/1398913
</content>
</entry>
<entry>
<title>cp: improve status message when omitting directories</title>
<updated>2016-11-19T17:05:33Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2016-11-19T11:26:43Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=f1799198483171c8565a4ff8fc1205d0a52fce37'/>
<id>urn:sha1:f1799198483171c8565a4ff8fc1205d0a52fce37</id>
<content type='text'>
* src/copy.h (cp_options): Add a new flag for install(1).
* src/copy.c (copy_internal): For cp, also output remediation
advice which also indicates why directories aren't copied by default.
The message is unchanged for install(1).
* src/cp.c (cp_option_init): Init install_mode to false.
* src/mv.c (cp_option_init): Likewise.
* src/install.c (cp_option_init): Init install_mode to true.
* tests/install/basic-1.sh: Add a test case.
* tests/cp/link-deref.sh: Adjust test case.
Fixes http://bugs.gnu.org/24958
</content>
</entry>
<entry>
<title>maint: refactor printing of backup suffix --help</title>
<updated>2016-11-07T17:09:35Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2016-11-02T23:56:53Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=7ce2589b77d6f78548d6d025ab7d8f5a57199ef8'/>
<id>urn:sha1:7ce2589b77d6f78548d6d025ab7d8f5a57199ef8</id>
<content type='text'>
* src/system.h (emit_backup_suffix_note): A new function to
output the backup suffix info.  The strings are unchanged,
so translations are not impacted.
* src/cp.c (usage): Use the new function.
* src/ln.c (usage): Likewise.
* src/mv.c (usage): Likewise.
* src/install.c (usage): Likewise.
</content>
</entry>
<entry>
<title>maint: simplify handling of backup --suffix in various tools</title>
<updated>2016-11-07T17:09:35Z</updated>
<author>
<name>Rishabh Dave</name>
<email>rishabhddave@gmail.com</email>
</author>
<published>2016-11-02T23:43:47Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=ec946718ae7c329ba4d4ef46a467bba125c141a6'/>
<id>urn:sha1:ec946718ae7c329ba4d4ef46a467bba125c141a6</id>
<content type='text'>
* src/cp.c (main): Avoid the getenv("SIMPLE_BACKUP_SUFFIX") call,
which is now done if needed in the gnulib backupfile module.
Also avoid the redundant strdup, as we don't modify this suffix.
* src/install.c (main): Likewise.
* src/ln.c (main): Likewise.
* src/mv.c (main): Likewise.
Fixes http://bugs.gnu.org/23153
</content>
</entry>
<entry>
<title>all: use die() rather than error(EXIT_FAILURE)</title>
<updated>2016-10-16T11:23:55Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2016-10-15T22:10:35Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=492dcb2eb191b844a2fd5e51db3eed85289bea1f'/>
<id>urn:sha1:492dcb2eb191b844a2fd5e51db3eed85289bea1f</id>
<content type='text'>
die() has the advantage of being apparent to the compiler
that it doesn't return, which will avoid warnings in some cases,
and possibly generate better code.
* cfg.mk (sc_die_EXIT_FAILURE): A new syntax check rule to
catch any new uses of error (CONSTANT, ...);
</content>
</entry>
<entry>
<title>build: add die.h; avoid new warnings from GCC 7</title>
<updated>2016-10-15T15:41:42Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@fb.com</email>
</author>
<published>2016-10-05T02:20:46Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=dad7ab0b7b322a800e6b1012b777169169068388'/>
<id>urn:sha1:dad7ab0b7b322a800e6b1012b777169169068388</id>
<content type='text'>
* src/die.h (die): New file/function from grep.
Note: we expect this file to migrate to gnulib.
* src/csplit.c: Include die.h.
(check_format_conv_type): Use die in place of error-nonzero;break;
* src/install.c (strip): Likewise.
* src/nl.c (proc_text): Likewise.  This also suppresses a new warning
from GCC 7's -Werror=strict-overflow.
* src/tail.c (parse_options): Likewise.
* src/basename.c (main): Adjust "fall through" comment
so that GCC 7's -Wimplicit-fallthrough honors it.
* src/cp.c (main): Add a "fall through" comment.
* src/ls.c (gobble_file): Likewise.
(get_funky_string): Adjust a "fall through" comment so it is
recognized.
* cfg.mk (exclude_file_name_regexp--sc_system_h_headers): Add die.h
to this list of exempt src/*.h files.
</content>
</entry>
<entry>
<title>install: with -Z, set default SELinux context for created directories</title>
<updated>2016-07-08T17:40:23Z</updated>
<author>
<name>Kamil Dudka</name>
<email>kdudka@redhat.com</email>
</author>
<published>2016-07-08T16:59:35Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=502518b44039138d148e2e15157d125c82d02af0'/>
<id>urn:sha1:502518b44039138d148e2e15157d125c82d02af0</id>
<content type='text'>
* doc/coreutils.texi (install invocation): Update -Z documentation.
* src/install.c (make_ancestor): Set default security context before
calling mkdir() if the -Z option is given.
(process_dir): Call restorecon() on the destination directory if the
-Z option is given.
(usage): Update -Z documentation.
* tests/install/install-Z-selinux.sh: A new test for 'install -Z -D'
and 'install -Z -d' based on tests/mkdir/restorecon.sh.
* tests/local.mk: Reference the test.
* NEWS: Mention the improvement.
Reported at https://bugzilla.redhat.com/1339135
Fixes http://bugs.gnu.org/23868
</content>
</entry>
<entry>
<title>doc: mention in more places that -D will create --target-directory</title>
<updated>2016-01-03T12:58:39Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2016-01-02T22:22:55Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=1dd02b4f8c459a4e720343a3f2d1eedf9bdbe657'/>
<id>urn:sha1:1dd02b4f8c459a4e720343a3f2d1eedf9bdbe657</id>
<content type='text'>
* src/install.c (usage): Mention this commonly required functionality
in the -D option description.
* doc/coreutils.texi (install invocation): Likewise for the
--target-directory description.
</content>
</entry>
<entry>
<title>install: only attempt to create a target dir once</title>
<updated>2016-01-03T12:58:39Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2016-01-02T22:14:41Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=73055581c9ef167faff210338775f668277603ee'/>
<id>urn:sha1:73055581c9ef167faff210338775f668277603ee</id>
<content type='text'>
* src/install.c (main): As an optimization, when calling
install_file_in_dir() for each file, only attempt to create
the target directory once, as this is invariant over the loop.
</content>
</entry>
<entry>
<title>install: fix relative copies to absolute directory with -D</title>
<updated>2016-01-03T12:58:39Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2016-01-02T18:38:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=6c65ce4c643b038c61bd332aab5ea87a75117273'/>
<id>urn:sha1:6c65ce4c643b038c61bd332aab5ea87a75117273</id>
<content type='text'>
* src/install.c (mkancesdirs_safe_wd): Unconditionally
restore the current working directory when possibly called
multiple times (from install_file_in_dir()).
* tests/install/create-leading.sh: Add a test case.
* NEWS: Mention the fix.
Fixes http://bugs.gnu.org/21497
</content>
</entry>
</feed>
