From 5c56af98e95d12fd4531cd9197657eace1fe8bc1 Mon Sep 17 00:00:00 2001 From: merakor Date: Sun, 3 Jan 2021 10:13:12 +0000 Subject: as_root(): add `sls` to accepted root tools FossilOrigin-Name: ca05dfca6f8529b23647ddac4e9d7d3317c4508ee15045e60a4eac63787a04b7 --- src/cpt-lib.in | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/cpt-lib.in b/src/cpt-lib.in index 2af31fb..73e483c 100644 --- a/src/cpt-lib.in +++ b/src/cpt-lib.in @@ -389,7 +389,7 @@ as_root() { "$@" case ${su##*/} in - sudo|doas) "$su" -u "$user" -- env "$@" ;; + sls|sudo|doas) "$su" -u "$user" -- env "$@" ;; su) su -c "env $* <&3" "$user" 3<&0