Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2012-04-02 15:00:17 +0400
committerCorinna Vinschen <corinna@vinschen.de>2012-04-02 15:00:17 +0400
commit5346e8aebbd4ecc03c8156a91174df74db6fc7db (patch)
tree3d9d92724c60cd5d4dcb66ea42d7ec5306272f85 /winsup/cygwin/mount.cc
parent881beea81de7a0877c64c01ba74de5e8a8d9dfd5 (diff)
* mount.cc (fillout_mntent): Use "none" rather than 0 when checking
FS type.
Diffstat (limited to 'winsup/cygwin/mount.cc')
-rw-r--r--winsup/cygwin/mount.cc2
1 files changed, 1 insertions, 1 deletions
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 ());