summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/mount.cc2
2 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index e7fa46e2d..2f1865444 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -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>
* dtable.cc (dtable::fixup_close): Define new function.
diff --git a/winsup/cygwin/mount.cc b/winsup/cygwin/mount.cc
index 90b369154..ddbccae21 100644
--- a/winsup/cygwin/mount.cc
+++ b/winsup/cygwin/mount.cc
@@ -1628,7 +1628,7 @@ fillout_mntent (const char *native_path, const char *posix_path, unsigned flags)
RtlAppendUnicodeToString (&unat, L"\\");
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);
else
strcpy (_my_tls.locals.mnt_type, mntinfo.fsname ());