From 60eafc971fe034cd17927399954263488d7da3cc Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Tue, 12 Jun 2012 13:52:20 -0400 Subject: [PATCH] Add mode for installed locale files but leave the directories with default mode and owner. --- sudo.pp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sudo.pp b/sudo.pp index 6816cdd94..40d941d67 100644 --- 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