aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordylan.araps@gmail.com <dylan.araps@gmail.com>2020-01-30 13:40:25 +0000
committerdylan.araps@gmail.com <dylan.araps@gmail.com>2020-01-30 13:40:25 +0000
commit98679c45adc4137c96219cbf382fcc1873e3e1fc (patch)
tree227532028109b490acab2269d0f1d253768300d9
parentdd633006580f525d8bb245ae761226e26ebd5c2a (diff)
downloadcpt-98679c45adc4137c96219cbf382fcc1873e3e1fc.tar.gz
kiss: Harden sudo
FossilOrigin-Name: f767130118ee56c9c4492a445890681d637a7787b285e161088a9f731b76f8a8
-rwxr-xr-xkiss4
1 files changed, 2 insertions, 2 deletions
diff --git a/kiss b/kiss
index 912135d..c9979e5 100755
--- a/kiss
+++ b/kiss
@@ -54,7 +54,7 @@ as_root() {
log "Using '${su:-su}'"
case $su in
- *sudo) sudo -E "$@" ;;
+ *sudo) sudo -E -- "$@" ;;
*doas) doas -- "$@" ;;
*) su -pc "$* <&3" 3<&0 </dev/tty ;;
esac
@@ -1259,7 +1259,7 @@ args() {
;;
v|version|-v|--version)
- log kiss 1.1.5
+ log kiss 1.1.6
;;
h|help|-h|--help|'')