diff options
author | Denis Vlasenko | 2006-09-14 16:09:27 +0000 |
---|---|---|
committer | Denis Vlasenko | 2006-09-14 16:09:27 +0000 |
commit | be507170eb151ed06685e0e8de2fe1af2fedd374 (patch) | |
tree | b6051072da93f1b107ad898fc45770d2e974a89f /util-linux | |
parent | 25098f7fd517367e9f55adb3aa49d3030187404f (diff) | |
download | busybox-be507170eb151ed06685e0e8de2fe1af2fedd374.zip busybox-be507170eb151ed06685e0e8de2fe1af2fedd374.tar.gz |
mount: -o remount should not add lines to /etc/mtab
Diffstat (limited to 'util-linux')
-rw-r--r-- | util-linux/mount.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util-linux/mount.c b/util-linux/mount.c index 5592a7a..4660b27 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) /* 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+"); |