The calls to mount and umount are assuming the correct tools are in the $PATH and not any other dubiously behaving commands added the $PATH. It may be more sensible to remove the exec of these and replace them with the mount/umount system call alternatives.
The calls to mount and umount are assuming the correct tools are in the $PATH and not any other dubiously behaving commands added the $PATH. It may be more sensible to remove the exec of these and replace them with the mount/umount system call alternatives.