svn commit: trunk/busybox/util-linux
vda at busybox.net
vda at busybox.net
Thu Sep 14 16:09:28 UTC 2006
Author: vda
Date: 2006-09-14 09:09:27 -0700 (Thu, 14 Sep 2006)
New Revision: 16121
Log:
mount: -o remount should not add lines to /etc/mtab
Modified:
trunk/busybox/util-linux/mount.c
Changeset:
Modified: trunk/busybox/util-linux/mount.c
===================================================================
--- trunk/busybox/util-linux/mount.c 2006-09-14 15:46:33 UTC (rev 16120)
+++ trunk/busybox/util-linux/mount.c 2006-09-14 16:09:27 UTC (rev 16121)
@@ -222,7 +222,7 @@
/* If the mount was successful, and we're maintaining an old-style
* mtab file by hand, add the new entry to it now. */
- if(ENABLE_FEATURE_MTAB_SUPPORT && useMtab && !rc) {
+ if(ENABLE_FEATURE_MTAB_SUPPORT && useMtab && !rc && !(vfsflags & MS_REMOUNT)) {
char dirbuf[PATH_MAX];
char srcbuf[PATH_MAX];
FILE *mountTable = setmntent(bb_path_mtab_file, "a+");
More information about the busybox-cvs
mailing list