Added files via upload
[termux-packages] / packages / termux-tools / su
index bffa122..5b47429 100755 (executable)
@@ -1,7 +1,8 @@
 #!/bin/sh
 
 if [ -x /system/xbin/su ]; then
 #!/bin/sh
 
 if [ -x /system/xbin/su ]; then
-       /system/xbin/su $@
+       # The su tool may require programs from /system/bin in path:
+       PATH=/system/bin:$PATH /system/xbin/su $@
 else
        echo "There is no su program on this device. Termux"
        echo "does not supply tools for rooting, see e.g."
 else
        echo "There is no su program on this device. Termux"
        echo "does not supply tools for rooting, see e.g."