* mount.cc (fillout_mntent): Always print noumount option last.
This commit is contained in:
		
							parent
							
								
									aed2404c0d
								
							
						
					
					
						commit
						452f665fb1
					
				|  | @ -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> | 2008-08-13  Corinna Vinschen  <corinna@vinschen.de> | ||||||
| 
 | 
 | ||||||
| 	* mount.cc (fillout_mntent): Print options as taken in fstab and mount. | 	* mount.cc (fillout_mntent): Print options as taken in fstab and mount. | ||||||
|  |  | ||||||
|  | @ -1177,12 +1177,12 @@ fillout_mntent (const char *native_path, const char *posix_path, unsigned flags) | ||||||
|   if (flags & MOUNT_NOPOSIX) |   if (flags & MOUNT_NOPOSIX) | ||||||
|     strcat (_my_tls.locals.mnt_opts, (char *) ",posix=0"); |     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 */ |   if (!(flags & MOUNT_SYSTEM))		/* user mount */ | ||||||
|     strcat (_my_tls.locals.mnt_opts, (char *) ",user"); |     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_opts = _my_tls.locals.mnt_opts; | ||||||
| 
 | 
 | ||||||
|   ret.mnt_freq = 1; |   ret.mnt_freq = 1; | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue