* mount.cc (fillout_mntent): Print options as taken in fstab and mount.
This commit is contained in:
parent
5a58591f45
commit
aed2404c0d
|
@ -1,3 +1,7 @@
|
||||||
|
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>
|
2008-08-13 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* dll_init.cc: Throughout convert to use long pathnames.
|
* dll_init.cc: Throughout convert to use long pathnames.
|
||||||
|
|
|
@ -1160,9 +1160,9 @@ fillout_mntent (const char *native_path, const char *posix_path, unsigned flags)
|
||||||
`silent' here; it's a magic internal thing. */
|
`silent' here; it's a magic internal thing. */
|
||||||
|
|
||||||
if (!(flags & MOUNT_BINARY))
|
if (!(flags & MOUNT_BINARY))
|
||||||
strcpy (_my_tls.locals.mnt_opts, (char *) "textmode");
|
strcpy (_my_tls.locals.mnt_opts, (char *) "text");
|
||||||
else
|
else
|
||||||
strcpy (_my_tls.locals.mnt_opts, (char *) "binmode");
|
strcpy (_my_tls.locals.mnt_opts, (char *) "binary");
|
||||||
|
|
||||||
if (flags & MOUNT_CYGWIN_EXEC)
|
if (flags & MOUNT_CYGWIN_EXEC)
|
||||||
strcat (_my_tls.locals.mnt_opts, (char *) ",cygexec");
|
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 */
|
if (!(flags & MOUNT_SYSTEM)) /* user mount */
|
||||||
strcat (_my_tls.locals.mnt_opts, (char *) ",user");
|
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;
|
ret.mnt_opts = _my_tls.locals.mnt_opts;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue