slitaz-base-files diff rootfs/usr/bin/sudo @ rev 341
Remove cat process
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Oct 20 12:11:12 2019 +0200 (2019-10-20) |
parents | 71f423a331df |
children |
line diff
1.1 --- a/rootfs/usr/bin/sudo Fri Apr 08 19:34:06 2016 +0200 1.2 +++ b/rootfs/usr/bin/sudo Sun Oct 20 12:11:12 2019 +0200 1.3 @@ -15,7 +15,7 @@ 1.4 *) 1.5 if [ -s "$conf" ]; then 1.6 # Saved root password 1.7 - cat "$conf" | su -c "cd $pwd; $cmd" 1.8 + su -c "cd $pwd; $cmd" < "$conf" 1.9 else 1.10 su -c "cd $pwd; $cmd" 1.11 fi ;;