File 0006-Check-restorecon-existence-before-calling-it-bnc-845.patch of Package sysconfig.openSUSE_13.1_Update
From bd8eb7bc895cf1340e5e9b9d4798cb213ccc30d8 Mon Sep 17 00:00:00 2001 From: Marius Tomaschewski <mt@suse.com> Date: Tue, 5 Nov 2013 14:48:09 +0100 Upstream: yes References: bnc#845792 Subject: [PATCH] Check restorecon existence before calling it (bnc#845792) --- scripts/functions.common | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/functions.common b/scripts/functions.common index 6d79e58..a90253e 100644 --- a/scripts/functions.common +++ b/scripts/functions.common @@ -28,7 +28,7 @@ # It __must__ __not__ contain a trailing slash. RUN_FILES_BASE=/dev/.sysconfig/network test -d $RUN_FILES_BASE || mkdir -p $RUN_FILES_BASE -restorecon -R /dev/.sysconfig 2>/dev/null || : +test -x /sbin/restorecon && /sbin/restorecon -R /dev/.sysconfig 2>/dev/null || : ##################################################################### # Returnvalues -- 1.8.4