test-imagex-ntfs: fix msg, mount without allow_other
[wimlib] / tests / test-imagex-ntfs
index dbfd10a7342cb77e7ae83f1e23f000dc621e4367..412ac20a10e3383e49d17c69788b7dd7ae6934e0 100755 (executable)
@@ -31,7 +31,12 @@ do_unmount() {
 
 __do_mount() {
        options="$3"
-       if ! ntfs-3g ${options:+-o $options} $1 $2; then
+       if [ -z "$options" ]; then
+               options="no_def_opts,silent"
+       else
+               options="$options,no_def_opts,silent"
+       fi
+       if ! ntfs-3g -o $options $1 $2; then
                error "Could not mount NTFS volume \"$1\" on \"$2\".  Make sure ntfs-3g is installed."
        fi
 }