1
0
mirror of https://codeberg.org/kiss-community/kiss synced 2024-12-25 08:30:05 -07:00

kiss: Harden sudo

This commit is contained in:
Dylan Araps 2020-01-30 15:40:26 +02:00
parent 26a20c9738
commit d4d5a5f001
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E

4
kiss
View File

@ -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|'')