* mount.cc (fillout_mntent): Use "none" rather than 0 when checking

FS type.
This commit is contained in:
Corinna Vinschen 2012-04-02 11:00:17 +00:00
parent 881beea81d
commit 5346e8aebb
2 changed files with 6 additions and 1 deletions

View File

@ -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.

View File

@ -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 ());