]> granicus.if.org Git - sudo/commitdiff
Better check for /etc/rc.d/rc2.d/S90sudo on AIX
authorTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 26 Apr 2017 21:49:10 +0000 (15:49 -0600)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 26 Apr 2017 21:49:10 +0000 (15:49 -0600)
sudo.pp

diff --git a/sudo.pp b/sudo.pp
index 6ed6280112f76092f3774a29f94965aee6354d2f..308ac2ebc6135c7c3083134a744bd5ba165813fa 100644 (file)
--- a/sudo.pp
+++ b/sudo.pp
@@ -457,8 +457,8 @@ still allow people to get their work done."
 %post [rpm]
        case "%{pp_rpm_distro}" in
        aix*)
-               # Create /etc/rc.d/rc2.d/S90sudo link if /etc/rc.d exists
-               if [ -d /etc/rc.d ]; then
+               # Create /etc/rc.d/rc2.d/S90sudo link if possible
+               if [ -d /etc/rc.d/rc2.d ]; then
                        rm -f /etc/rc.d/rc2.d/S90sudo
                        ln -s /etc/rc.d/init.d/sudo /etc/rc.d/rc2.d/S90sudo
                fi