diff sbin/fjail @ 532:c615279bb797

Call mount and umount with absolute paths
author Franz Glasner <fzglas.hg@dom66.de>
date Thu, 05 Sep 2024 04:05:33 +0200
parents d5591ebc303d
children 847ae246f3cc
line wrap: on
line diff
--- a/sbin/fjail	Wed Sep 04 22:08:23 2024 +0200
+++ b/sbin/fjail	Thu Sep 05 04:05:33 2024 +0200
@@ -404,7 +404,7 @@
     else
         if [ "${_opt_devfs}" = "yes" ]; then
             echo "Mounting devfs"
-            mount -t devfs devfs "${_mp}/dev"
+            /sbin/mount -t devfs devfs "${_mp}/dev"
             _umount_devfs="yes"
         else
             echo "ERROR: a working devfs is needed at \`{_mp}/dev' (use \`-d')" >&2
@@ -500,7 +500,7 @@
 
     if [ "${_umount_devfs}" = "yes" ]; then
         echo "Unmounting devfs"
-        umount "${_mp}/dev"
+        /sbin/umount "${_mp}/dev"
     fi
 }