Properly parse the nowin95 mount option.
Tested by: Rainer Hurling <rhurlin at gwdg dot de>
This commit is contained in:
parent
4dd5f1433a
commit
736e6b710d
@ -81,7 +81,7 @@ static const char *msdosfs_opts[] = {
|
||||
"from",
|
||||
"export",
|
||||
"uid", "gid", "mask", "dirmask",
|
||||
"shortname", "shortnames", "longname", "longnames", "win95",
|
||||
"shortname", "shortnames", "longname", "longnames", "nowin95", "win95",
|
||||
"kiconv", "cs_win", "cs_dos", "cs_local",
|
||||
NULL
|
||||
};
|
||||
@ -172,11 +172,10 @@ update_mp(mp, td)
|
||||
vfs_flagopt(mp->mnt_optnew, "kiconv",
|
||||
&pmp->pm_flags, MSDOSFSMNT_KICONV);
|
||||
|
||||
/* XXX: Can't use flagopt due to negative option */
|
||||
if (!vfs_getopt(mp->mnt_optnew, "win95", NULL, NULL))
|
||||
pmp->pm_flags &= ~MSDOSFSMNT_NOWIN95;
|
||||
else
|
||||
if (vfs_getopt(mp->mnt_optnew, "nowin95", NULL, NULL) == 0)
|
||||
pmp->pm_flags |= MSDOSFSMNT_NOWIN95;
|
||||
else
|
||||
pmp->pm_flags &= ~MSDOSFSMNT_NOWIN95;
|
||||
|
||||
if (pmp->pm_flags & MSDOSFSMNT_NOWIN95)
|
||||
pmp->pm_flags |= MSDOSFSMNT_SHORTNAME;
|
||||
|
Loading…
x
Reference in New Issue
Block a user