blob: cbce88b0718013e95163f02a58f3cdd5556cc50b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
mount: Ignore `loop' option
* utils/mount.c (do_mount): Ignore `loop' option.
---
mount.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
--- a/utils/mount.c
+++ b/utils/mount.c
@@ -273,7 +273,8 @@ do_mount (struct fs *fs, int remount)
{
ARGZ (add (&fsopts, &fsopts_len, o));
}
- else if (strcmp (o, "defaults") != 0)
+ else if (strcmp (o, "defaults") != 0 &&
+ strcmp (o, "loop") != 0)
{
/* Prepend `--' to the option to make a long option switch,
e.g. `--ro' or `--rsize=1024'. */
|