OSDN Git Service

* mount.cc (fillout_mntent): Print options as taken in fstab and mount.
authorcorinna <corinna>
Wed, 13 Aug 2008 15:11:24 +0000 (15:11 +0000)
committercorinna <corinna>
Wed, 13 Aug 2008 15:11:24 +0000 (15:11 +0000)
winsup/cygwin/ChangeLog
winsup/cygwin/mount.cc

index de9d91b..b16fe59 100644 (file)
@@ -1,5 +1,9 @@
 2008-08-13  Corinna Vinschen  <corinna@vinschen.de>
 
+       * mount.cc (fillout_mntent): Print options as taken in fstab and mount.
+
+2008-08-13  Corinna Vinschen  <corinna@vinschen.de>
+
        * dll_init.cc: Throughout convert to use long pathnames.
        * dll_init.h (struct dll): Change name to WCHAR, change operator [] to
        take PWCHAR argument.
index 55b2761..c4914e3 100644 (file)
@@ -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;