From 98679c45adc4137c96219cbf382fcc1873e3e1fc Mon Sep 17 00:00:00 2001 From: "dylan.araps@gmail.com" Date: Thu, 30 Jan 2020 13:40:25 +0000 Subject: kiss: Harden sudo FossilOrigin-Name: f767130118ee56c9c4492a445890681d637a7787b285e161088a9f731b76f8a8 --- kiss | 4 ++-- 1 file 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