diff options
author | Nicolas Iooss <nicolas.iooss@m4x.org> | 2014-01-04 03:03:51 +0000 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2014-01-13 23:11:37 +0000 |
commit | d718331e59afb35e56445f3a1597ed74a7f3a3e2 (patch) | |
tree | e223ecfbeca136b7001a8efaacbc80e011603825 /tests/local.mk | |
parent | ba25b75dc2a4f37cb65b5e2ff1bf41bd1707770b (diff) | |
download | coreutils-d718331e59afb35e56445f3a1597ed74a7f3a3e2.tar.xz |
copy: fix a segfault in SELinux context copying code
* src/selinux.c (restorecon_private): On ArchLinux the
`fakeroot cp -a file1 file2` command segfaulted due
to getfscreatecon() returning a NULL context.
So map this to the sometimes ignored ENODATA error,
rather than crashing.
* tests/cp/no-ctx.sh: Add a new test case.
* tests/local.mk: Reference the new test.
* NEWS: Mention the fix.
Fixes http://bugs.gnu.org/16335
Diffstat (limited to 'tests/local.mk')
-rw-r--r-- | tests/local.mk | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/local.mk b/tests/local.mk index dc7341c63..9d556f6db 100644 --- a/tests/local.mk +++ b/tests/local.mk @@ -161,6 +161,7 @@ all_tests = \ tests/rm/ext3-perf.sh \ tests/rm/cycle.sh \ tests/cp/link-heap.sh \ + tests/cp/no-ctx.sh \ tests/misc/tty-eof.pl \ tests/tail-2/inotify-hash-abuse.sh \ tests/tail-2/inotify-hash-abuse2.sh \ |