]> git.ipfire.org Git - thirdparty/coreutils.git/commit
install,mkdir: fix handling of -DZ and -pZ, respectively
authorKamil Dudka <kdudka@redhat.com>
Mon, 28 Nov 2016 15:21:42 +0000 (16:21 +0100)
committerPádraig Brady <P@draigBrady.com>
Mon, 28 Nov 2016 16:17:31 +0000 (16:17 +0000)
commitd8104265f229ababd5a68a46eeccbccc07e72cdc
tree7708c3d2eca30a3094de010b09bab746ec226770
parenta39641cbb8f37c5a19dd4820c6f6719c82d3e633
install,mkdir: fix handling of -DZ and -pZ, respectively

... 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
NEWS
src/install.c
src/mkdir.c