summaryrefslogtreecommitdiff
path: root/libre-testing/sudo/sudo.install
diff options
context:
space:
mode:
Diffstat (limited to 'libre-testing/sudo/sudo.install')
-rw-r--r--libre-testing/sudo/sudo.install9
1 files changed, 9 insertions, 0 deletions
diff --git a/libre-testing/sudo/sudo.install b/libre-testing/sudo/sudo.install
new file mode 100644
index 000000000..abf58e37b
--- /dev/null
+++ b/libre-testing/sudo/sudo.install
@@ -0,0 +1,9 @@
+pre_upgrade() {
+ # Permissions of /var/db/sudo were changed from 0700 to 0711 in sudo 1.8.10
+ # http://www.sudo.ws/repos/sudo/rev/5c38d77a2d0c
+ if (($(vercmp $2 1.8.10-1) < 0)); then
+ chmod 0711 var/db/sudo
+ fi
+}
+
+# vim:set ts=2 sw=2 et: