slitaz-base-files rev 304
sudo: tiny fix
author | Xander Ziiryanoff <psychomaniak@xakep.ru> |
---|---|
date | Fri Apr 08 19:34:06 2016 +0200 (2016-04-08) |
parents | 6149f56cbfaf |
children | 1aeb659d01c4 |
files | rootfs/usr/bin/sudo |
line diff
1.1 --- a/rootfs/usr/bin/sudo Wed Mar 30 01:29:22 2016 +0300 1.2 +++ b/rootfs/usr/bin/sudo Fri Apr 08 19:34:06 2016 +0200 1.3 @@ -13,7 +13,7 @@ 1.4 echo -e "\nExecute a command as root" 1.5 echo -e "Usage: $(basename $0) [command]\n" ;; 1.6 *) 1.7 - if [ -f "$conf" ]; then 1.8 + if [ -s "$conf" ]; then 1.9 # Saved root password 1.10 cat "$conf" | su -c "cd $pwd; $cmd" 1.11 else