From: Bdale Garbee Date: Thu, 7 Oct 2010 21:52:47 +0000 (-0600) Subject: change path specification to avoid complaints when /var/run/sudo exists but X-Git-Tag: debian/1.7.4p4-4~2 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=2c19e019cbc7f545a55a02a3476a1abb5fc4fe86;p=debian%2Fsudo change path specification to avoid complaints when /var/run/sudo exists but has no content, closes #598877 --- diff --git a/debian/sudo-ldap.postinst b/debian/sudo-ldap.postinst index c70c938..aee102c 100644 --- a/debian/sudo-ldap.postinst +++ b/debian/sudo-ldap.postinst @@ -34,7 +34,7 @@ if ( ! -f "/etc/sudoers") { # moving any existing content over to avoid re-lecturing existing users if ( -d "/var/run/sudo") { system ('mkdir -p /var/lib/sudo'); - system ('(cd /var/run/sudo ; tar cf - *) | (cd /var/lib/sudo ; tar xf -)'); + system ('(cd /var/run/sudo ; tar cf - .) | (cd /var/lib/sudo ; tar xf -)'); system ('rm -rf /var/run/sudo'); } diff --git a/debian/sudo.postinst b/debian/sudo.postinst index a6f64ce..c78cf8d 100644 --- a/debian/sudo.postinst +++ b/debian/sudo.postinst @@ -34,7 +34,7 @@ if ( ! -f "/etc/sudoers") { # moving any existing content over to avoid re-lecturing existing users if ( -d "/var/run/sudo") { system ('mkdir -p /var/lib/sudo'); - system ('(cd /var/run/sudo ; tar cf - *) | (cd /var/lib/sudo ; tar xf -)'); + system ('(cd /var/run/sudo ; tar cf - .) | (cd /var/lib/sudo ; tar xf -)'); system ('rm -rf /var/run/sudo'); }