|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
From 141a1ceaa62578f1ed14f04cae2113dd0f49fd7f Mon Sep 17 00:00:00 2001
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
From: Emil Renner Berthing <systemd@esmil.dk>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
Date: Thu, 18 Sep 2014 15:24:59 +0200
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
Subject: [PATCH] mount: order options before other arguments to mount
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
---
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
src/core/mount.c | 8 ++++----
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
1 file changed, 4 insertions(+), 4 deletions(-)
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
diff --git a/src/core/mount.c b/src/core/mount.c
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
index e284357c6f..f3ec7365d1 100644
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
--- a/src/core/mount.c
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+++ b/src/core/mount.c
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
@@ -903,10 +903,10 @@ static void mount_enter_mounting(Mount *m) {
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
m->control_command,
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
"/bin/mount",
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
m->sloppy_options ? "-ns" : "-n",
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ "-t", m->parameters_fragment.fstype ? m->parameters_fragment.fstype : "auto",
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ "-o", m->parameters_fragment.options ? m->parameters_fragment.options : "",
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
m->parameters_fragment.what,
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
m->where,
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
- "-t", m->parameters_fragment.fstype ? m->parameters_fragment.fstype : "auto",
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
- m->parameters_fragment.options ? "-o" : NULL, m->parameters_fragment.options,
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
NULL);
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
else
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
r = -ENOENT;
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
@@ -951,10 +951,10 @@ static void mount_enter_remounting(Mount *m) {
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
m->control_command,
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
"/bin/mount",
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
m->sloppy_options ? "-ns" : "-n",
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
- m->parameters_fragment.what,
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
- m->where,
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
"-t", m->parameters_fragment.fstype ? m->parameters_fragment.fstype : "auto",
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
"-o", o,
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ m->parameters_fragment.what,
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ m->where,
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
NULL);
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
} else
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
r = -ENOENT;
|