aboutsummaryrefslogtreecommitdiff
path: root/util-linux
diff options
context:
space:
mode:
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-09-14 16:09:27 +0000
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-09-14 16:09:27 +0000
commitea6bd865a3873c97cf0e5c01311062e5a2c10a58 (patch)
treeb6051072da93f1b107ad898fc45770d2e974a89f /util-linux
parent19f83e82dd37f548d0f2fcc58bb938ea91cda5c2 (diff)
downloadbusybox-w32-ea6bd865a3873c97cf0e5c01311062e5a2c10a58.tar.gz
busybox-w32-ea6bd865a3873c97cf0e5c01311062e5a2c10a58.tar.bz2
busybox-w32-ea6bd865a3873c97cf0e5c01311062e5a2c10a58.zip
mount: -o remount should not add lines to /etc/mtab
git-svn-id: svn://busybox.net/trunk/busybox@16121 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'util-linux')
-rw-r--r--util-linux/mount.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util-linux/mount.c b/util-linux/mount.c
index 5592a7a5f..4660b27ef 100644
--- a/util-linux/mount.c
+++ b/util-linux/mount.c
@@ -222,7 +222,7 @@ static int mount_it_now(struct mntent *mp, int vfsflags, char *filteropts)
222 /* If the mount was successful, and we're maintaining an old-style 222 /* If the mount was successful, and we're maintaining an old-style
223 * mtab file by hand, add the new entry to it now. */ 223 * mtab file by hand, add the new entry to it now. */
224 224
225 if(ENABLE_FEATURE_MTAB_SUPPORT && useMtab && !rc) { 225 if(ENABLE_FEATURE_MTAB_SUPPORT && useMtab && !rc && !(vfsflags & MS_REMOUNT)) {
226 char dirbuf[PATH_MAX]; 226 char dirbuf[PATH_MAX];
227 char srcbuf[PATH_MAX]; 227 char srcbuf[PATH_MAX];
228 FILE *mountTable = setmntent(bb_path_mtab_file, "a+"); 228 FILE *mountTable = setmntent(bb_path_mtab_file, "a+");