slitaz-base-files 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 | dc2507062df3 |
children | ebdc840a8655 |
files | rootfs/usr/bin/sudo |
line diff
1.1 --- a/rootfs/usr/bin/sudo Tue Feb 26 08:22:10 2019 +0100 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 ;;