Do not get confused by the captive default 'noauto' mount(8) option.
[captive.git] / src / client / lufs / mount.captive.in
index cd34d73..d416e53 100755 (executable)
@@ -88,7 +88,8 @@ if ($fsname eq "ntfs") {
 # to let the options be overridable by user (such as 'ro').
 $oo=";$oo;";
 $oo=~tr/,/;/;
-$oo=~s/;(ro|rw);/;--$1/g;
+$oo=~s/;(ro|rw);/;--$1;/g;
+$oo=~s/;(?:no)?auto;/;/g;      # ignore
 $oo=""
                ."mntent.mnt_fsname=$image,mntent.mnt_type=captive-$fsname,"    # Double-dashes forbidden.
                ."dir_cache_entries=0,"