summaryrefslogtreecommitdiff
path: root/autoscripts/postinst-suid
diff options
context:
space:
mode:
authorjoey <joey>2002-05-26 05:06:51 +0000
committerjoey <joey>2002-05-26 05:06:51 +0000
commit4106beebd28b7fe73dd19e43cf15378c08b8241f (patch)
treea2b42f4eefb46e7b3ae27ab09d115f1093fa6103 /autoscripts/postinst-suid
parent9dc5e9ccba3756ad14d7c2941c3130243bbc4406 (diff)
r528: * Consistently use the which command instead of command -v or hardcoded
paths in autoscripts. Neither is in posix, but which is in debianutils, so will always be available. command -v is not available in zsh. Closes: #148172
Diffstat (limited to 'autoscripts/postinst-suid')
-rw-r--r--autoscripts/postinst-suid2
1 files changed, 1 insertions, 1 deletions
diff --git a/autoscripts/postinst-suid b/autoscripts/postinst-suid
index 820d69a4..d0d16c06 100644
--- a/autoscripts/postinst-suid
+++ b/autoscripts/postinst-suid
@@ -1,5 +1,5 @@
if [ "$1" = "configure" ]; then
- if command -v suidregister >/dev/null 2>&1 && [ -e /etc/suid.conf ]; then
+ if which suidregister >/dev/null 2>&1 && [ -e /etc/suid.conf ]; then
suidregister -s #PACKAGE# /#FILE# #OWNER# #GROUP# #PERMS#
elif [ -e /#FILE# ]; then
chown #OWNER#.#GROUP# /#FILE#