diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2008-08-13 15:11:25 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2008-08-13 15:11:25 +0000 |
commit | aed2404c0d0b12fe8f94cb92de6f3a70210d5d5c (patch) | |
tree | 9b992a7b32c56895b0c27de809451d54c72be942 | |
parent | 5a58591f45d195f5acf1cf04e691a19ef3794530 (diff) | |
download | newlib-aed2404c0d0b12fe8f94cb92de6f3a70210d5d5c.zip newlib-aed2404c0d0b12fe8f94cb92de6f3a70210d5d5c.tar.gz newlib-aed2404c0d0b12fe8f94cb92de6f3a70210d5d5c.tar.bz2 |
* mount.cc (fillout_mntent): Print options as taken in fstab and mount.
-rw-r--r-- | winsup/cygwin/ChangeLog | 4 | ||||
-rw-r--r-- | winsup/cygwin/mount.cc | 6 |
2 files changed, 6 insertions, 4 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index de9d91b..b16fe59 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -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. diff --git a/winsup/cygwin/mount.cc b/winsup/cygwin/mount.cc index 55b2761..c4914e3 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; |