aboutsummaryrefslogtreecommitdiffstats
path: root/modules/buildsystem/templates/maintdb/wrapper.maintdb
diff options
context:
space:
mode:
authorDan Fandrich <danf@mageia.org>2024-09-30 16:38:20 -0700
committerDan Fandrich <danf@mageia.org>2024-09-30 16:45:03 -0700
commit2a2686188674bee2b19bef5f09b11f80fd63046b (patch)
tree8ea9faa79d1d2e0420a115c74c07258ff4ff4404 /modules/buildsystem/templates/maintdb/wrapper.maintdb
parentca3d3ce540b88d0ca3d4f43f7bbbba28b462ef99 (diff)
downloadpuppet-2a2686188674bee2b19bef5f09b11f80fd63046b.tar
puppet-2a2686188674bee2b19bef5f09b11f80fd63046b.tar.gz
puppet-2a2686188674bee2b19bef5f09b11f80fd63046b.tar.bz2
puppet-2a2686188674bee2b19bef5f09b11f80fd63046b.tar.xz
puppet-2a2686188674bee2b19bef5f09b11f80fd63046b.zip
Tighten the sudo for the maintdb scripts
Make sudoers a bit more robust against attempts to play with the arguments. Unfortunately, our sudo is too old to support regexes.
Diffstat (limited to 'modules/buildsystem/templates/maintdb/wrapper.maintdb')
-rw-r--r--modules/buildsystem/templates/maintdb/wrapper.maintdb3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/buildsystem/templates/maintdb/wrapper.maintdb b/modules/buildsystem/templates/maintdb/wrapper.maintdb
index 2adddd1e..fcf69dab 100644
--- a/modules/buildsystem/templates/maintdb/wrapper.maintdb
+++ b/modules/buildsystem/templates/maintdb/wrapper.maintdb
@@ -22,5 +22,4 @@ then
exit 1
fi
-sudo -u "$maintdbuser" "$maintdbpath" $(whoami) $@
-
+sudo -u "$maintdbuser" "$maintdbpath" $(whoami) "$@"