summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremie Koenig <jk@jk.fr.eu.org>2010-06-23 10:29:35 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2010-06-23 10:29:35 +0200
commit958aba769688457d49d989160791fb7da0d35a25 (patch)
tree8ae4916eda12c76be1de2eb7447e63be98d8aaee
parent566222bce7a75f66cb7930f1808ab4aad4ab5d5e (diff)
Ignore the "defaults" mount option
* utils/mount.c (do_mount): Ignore the "defaults" option.
-rw-r--r--utils/mount.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/mount.c b/utils/mount.c
index 8e593aac..e9f64d85 100644
--- a/utils/mount.c
+++ b/utils/mount.c
@@ -248,7 +248,7 @@ do_mount (struct fs *fs, int remount)
{
ARGZ (add (&fsopts, &fsopts_len, o));
}
- else
+ else if (strcmp (o, "defaults") != 0)
{
/* Prepend `--' to the option to make a long option switch,
e.g. `--ro' or `--rsize=1024'. */