From ca0d9c4be9366fcb1360c8a4759fc6067dfee6f8 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Tue, 13 Mar 2012 17:38:03 -0400 Subject: [PATCH] Make sudoersdir relative to PKG_INSTALL_ROOT for Solaris. --- sudo.pp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sudo.pp b/sudo.pp index f846a8be5..3d0e060e2 100644 --- a/sudo.pp +++ b/sudo.pp @@ -234,7 +234,11 @@ still allow people to get their work done." %post [!rpm,deb] # Don't overwrite an existing sudoers file +%if [solaris] + sudoersdir=${PKG_INSTALL_ROOT}%{sudoersdir} +%else sudoersdir=%{sudoersdir} +%endif if test ! -r $sudoersdir/sudoers; then cp $sudoersdir/sudoers.dist $sudoersdir/sudoers chmod %{sudoers_mode} $sudoersdir/sudoers