From 99bce927f8d50ee836d2549aced717abfa0dc99a Mon Sep 17 00:00:00 2001 From: kzak Date: Tue, 18 Jul 2006 22:19:58 +0000 Subject: [PATCH] use absolute paths in post script --- util-linux.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util-linux.spec b/util-linux.spec index eabda19..f3ac1de 100644 --- a/util-linux.spec +++ b/util-linux.spec @@ -510,7 +510,7 @@ rm -f ${RPM_BUILD_ROOT}%{_infodir}/dir /bin/chmod 0644 /var/log/lastlog # Fix the file context, do not use restorecon if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then - chcon `matchpathcon -n /var/log/lastlog` /var/log/lastlog >/dev/null 2>&1 + /usr/bin/chcon `/usr/sbin/matchpathcon -n /var/log/lastlog` /var/log/lastlog >/dev/null 2>&1 fi %preun