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:
parent
26a20c9738
commit
d4d5a5f001
4
kiss
4
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|'')
|
||||
|
Loading…
Reference in New Issue
Block a user