From 86f797b7ff488954655f1dde44c3cb14a6eefe0e Mon Sep 17 00:00:00 2001 From: merakor Date: Sun, 7 Feb 2021 10:03:56 +0000 Subject: as_root(): reflect rename: sls -> ssu See https://github.com/illiliti/ssu/issues/2 sls is moved to the end of preference order, and will be removed at the end of May. A deprecation notice is printed every time as_root is called with sls. FossilOrigin-Name: aedab01c988ac2f25014c27e776075288f97b2083b5b06d500673cc2ae62a193 --- src/cpt-lib.in | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/cpt-lib.in') diff --git a/src/cpt-lib.in b/src/cpt-lib.in index 4176d93..0578d8b 100644 --- a/src/cpt-lib.in +++ b/src/cpt-lib.in @@ -423,7 +423,11 @@ as_root() { "$@" case ${su##*/} in - sls|sudo|doas) "$su" -u "$user" -- env "$@" ;; + sls) + warn "'sls' is deprecated, use 'ssu' instead." + "$su" -u "$user" -- env "$@" + ;; + ssu|sudo|doas) "$su" -u "$user" -- env "$@" ;; su) su -c "env $* <&3" "$user" 3<&0