]> granicus.if.org Git - sudo/commitdiff
Add mode for installed locale files but leave the directories with
authorTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 12 Jun 2012 17:52:20 +0000 (13:52 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 12 Jun 2012 17:52:20 +0000 (13:52 -0400)
default mode and owner.

sudo.pp

diff --git a/sudo.pp b/sudo.pp
index 6816cdd94bf8027d2dd46514db0c6b3cc83cc0b4..40d941d6769c9cd29a1fd1b67ff67befd4063874 100644 (file)
--- a/sudo.pp
+++ b/sudo.pp
@@ -226,6 +226,7 @@ still allow people to get their work done."
        # OS-level directories that should generally exist but might not.
        extradirs=`echo ${pp_destdir}/${mandir}/[mc]* | sed "s#${pp_destdir}/##g"`
        extradirs="$extradirs `dirname $docdir` `dirname $timedir`"
+       test -d ${pp_destdir}${localedir} && extradirs="$extradirs $localedir"
        test -d ${pp_destdir}/etc/pam.d && extradirs="${extradirs} /etc/pam.d"
        for dir in $bindir $sbindir $libexecdir $includedir $extradirs; do
                while test "$dir" != "/"; do
@@ -268,8 +269,9 @@ still allow people to get their work done."
        $docdir/ChangeLog       ignore,ignore-others
 %endif
        $docdir/*               0644
-       $localedir/             -    optional
-       $localedir/**           -    optional
+       $localedir/*/           -    optional
+       $localedir/*/LC_MESSAGES/ -    optional
+       $localedir/*/LC_MESSAGES/* 0644    optional
        /etc/pam.d/*            0644 volatile,optional
 %if [rpm,deb]
        $sudoersdir/sudoers $sudoers_mode $sudoers_uid:$sudoers_gid volatile