|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
From 2ff8abbd40feee90dbac8788efba2218b546df6c Mon Sep 17 00:00:00 2001
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
From: Lennart Poettering <lennart@poettering.net>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
Date: Thu, 2 Oct 2014 21:02:03 +0200
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
Subject: [PATCH] Revert "mount: order options before other arguments to mount"
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
This reverts commit 141a1ceaa62578f1ed14f04cae2113dd0f49fd7f.
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
People should fix their libc's getopt(), instead of us using a weird
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
option ordering...
|
|
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 f3ec7365d1..e284357c6f 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 |
- "-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 |
+ "-t", m->parameters_fragment.fstype ? m->parameters_fragment.fstype : "auto",
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ "-o", o,
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
NULL);
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
} else
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
r = -ENOENT;
|