From: Todd C. Miller Date: Tue, 12 Jun 2012 17:52:20 +0000 (-0400) Subject: Add mode for installed locale files but leave the directories with X-Git-Tag: SUDO_1_8_6^2~146 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=60eafc971fe034cd17927399954263488d7da3cc;p=sudo Add mode for installed locale files but leave the directories with default mode and owner. --- 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