From aed2404c0d0b12fe8f94cb92de6f3a70210d5d5c Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Wed, 13 Aug 2008 15:11:25 +0000 Subject: [PATCH] * mount.cc (fillout_mntent): Print options as taken in fstab and mount. --- winsup/cygwin/ChangeLog | 4 ++++ winsup/cygwin/mount.cc | 6 ++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index de9d91b81..b16fe59c9 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +2008-08-13 Corinna Vinschen + + * mount.cc (fillout_mntent): Print options as taken in fstab and mount. + 2008-08-13 Corinna Vinschen * dll_init.cc: Throughout convert to use long pathnames. diff --git a/winsup/cygwin/mount.cc b/winsup/cygwin/mount.cc index 55b276193..c4914e37e 100644 --- a/winsup/cygwin/mount.cc +++ b/winsup/cygwin/mount.cc @@ -1160,9 +1160,9 @@ fillout_mntent (const char *native_path, const char *posix_path, unsigned flags) `silent' here; it's a magic internal thing. */ if (!(flags & MOUNT_BINARY)) - strcpy (_my_tls.locals.mnt_opts, (char *) "textmode"); + strcpy (_my_tls.locals.mnt_opts, (char *) "text"); else - strcpy (_my_tls.locals.mnt_opts, (char *) "binmode"); + strcpy (_my_tls.locals.mnt_opts, (char *) "binary"); if (flags & MOUNT_CYGWIN_EXEC) strcat (_my_tls.locals.mnt_opts, (char *) ",cygexec"); @@ -1182,8 +1182,6 @@ fillout_mntent (const char *native_path, const char *posix_path, unsigned flags) if (!(flags & MOUNT_SYSTEM)) /* user mount */ strcat (_my_tls.locals.mnt_opts, (char *) ",user"); - else /* system mount */ - strcat (_my_tls.locals.mnt_opts, (char *) ",system"); ret.mnt_opts = _my_tls.locals.mnt_opts;