mknod, mkfifo: don't segfault when diagnosing invalid SELinux context
authorJim Meyering <meyering@redhat.com>
Fri, 28 Mar 2008 21:37:19 +0000 (22:37 +0100)
committerJim Meyering <meyering@redhat.com>
Fri, 28 Mar 2008 22:03:27 +0000 (23:03 +0100)
commiteb8fa94f2cf030d625c12ad68bb8883de204c196
tree8daec3befeac6fdb67abc97c66367f6cc9458dfe
parentcdb16829a668fae0aa5e4e292364fc1fbd009ba8
mknod, mkfifo: don't segfault when diagnosing invalid SELinux context

Identical to the bug fixed by 72d052896a9092b811961a8f3e6ca5d151a59be5.
* src/mkfifo.c (main): Use "scontext", not NULL optarg in diagnostic.
* src/mknod.c (main): Likewise.
Reported by Cristian Cadar, Daniel Dunbar and Dawson Engler.
* tests/mkdir/selinux: Test for the above fixes.
* NEWS: Mention the fixes.
NEWS
src/mkfifo.c
src/mknod.c
tests/mkdir/selinux