* mount.cc (fillout_mntent): Always print noumount option last.

This commit is contained in:
Corinna Vinschen 2008-08-13 15:30:52 +00:00
parent aed2404c0d
commit 452f665fb1
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2008-08-13 Corinna Vinschen <corinna@vinschen.de>
* mount.cc (fillout_mntent): Always print noumount option last.
2008-08-13 Corinna Vinschen <corinna@vinschen.de>
* mount.cc (fillout_mntent): Print options as taken in fstab and mount.

View File

@ -1177,12 +1177,12 @@ fillout_mntent (const char *native_path, const char *posix_path, unsigned flags)
if (flags & MOUNT_NOPOSIX)
strcat (_my_tls.locals.mnt_opts, (char *) ",posix=0");
if ((flags & MOUNT_CYGDRIVE)) /* cygdrive */
strcat (_my_tls.locals.mnt_opts, (char *) ",noumount");
if (!(flags & MOUNT_SYSTEM)) /* user mount */
strcat (_my_tls.locals.mnt_opts, (char *) ",user");
if ((flags & MOUNT_CYGDRIVE)) /* cygdrive */
strcat (_my_tls.locals.mnt_opts, (char *) ",noumount");
ret.mnt_opts = _my_tls.locals.mnt_opts;
ret.mnt_freq = 1;