summaryrefslogtreecommitdiff
path: root/debian/patches/mount.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/mount.patch')
-rw-r--r--debian/patches/mount.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/debian/patches/mount.patch b/debian/patches/mount.patch
new file mode 100644
index 00000000..9d9cd2f4
--- /dev/null
+++ b/debian/patches/mount.patch
@@ -0,0 +1,21 @@
+mount: Ignore `loop' and `exec' options
+
+* utils/mount.c (do_mount): Ignore `loop' and `exec' options.
+---
+ mount.c | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+diff --git a/utils/mount.c b/utils/mount.c
+index 8b059c2..8af055e 100644
+--- a/utils/mount.c
++++ b/utils/mount.c
+@@ -248,7 +248,9 @@ 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 &&
++ strcmp (o, "exec") != 0)
+ {
+ /* Prepend `--' to the option to make a long option switch,
+ e.g. `--ro' or `--rsize=1024'. */