* mount.cc (fillout_mntent): Use "none" rather than 0 when checking
FS type.
This commit is contained in:
parent
881beea81d
commit
5346e8aebb
|
@ -1,3 +1,8 @@
|
||||||
|
2012-04-02 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* mount.cc (fillout_mntent): Use "none" rather than 0 when checking
|
||||||
|
FS type.
|
||||||
|
|
||||||
2012-04-01 Christopher Faylor <me.cygwin2012@cgf.cx>
|
2012-04-01 Christopher Faylor <me.cygwin2012@cgf.cx>
|
||||||
|
|
||||||
* dtable.cc (dtable::fixup_close): Define new function.
|
* dtable.cc (dtable::fixup_close): Define new function.
|
||||||
|
|
|
@ -1628,7 +1628,7 @@ fillout_mntent (const char *native_path, const char *posix_path, unsigned flags)
|
||||||
RtlAppendUnicodeToString (&unat, L"\\");
|
RtlAppendUnicodeToString (&unat, L"\\");
|
||||||
mntinfo.update (&unat, NULL);
|
mntinfo.update (&unat, NULL);
|
||||||
|
|
||||||
if (mntinfo.what_fs () > 0 && mntinfo.what_fs () < max_fs_type)
|
if (mntinfo.what_fs () > none && mntinfo.what_fs () < max_fs_type)
|
||||||
strcpy (_my_tls.locals.mnt_type, fs_names[mntinfo.what_fs ()].name);
|
strcpy (_my_tls.locals.mnt_type, fs_names[mntinfo.what_fs ()].name);
|
||||||
else
|
else
|
||||||
strcpy (_my_tls.locals.mnt_type, mntinfo.fsname ());
|
strcpy (_my_tls.locals.mnt_type, mntinfo.fsname ());
|
||||||
|
|
Loading…
Reference in New Issue