]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
mdmon: fix arg parsing.
authorNeilBrown <neilb@suse.de>
Mon, 9 Jul 2012 06:50:22 +0000 (16:50 +1000)
committerNeilBrown <neilb@suse.de>
Thu, 27 Sep 2012 06:49:54 +0000 (16:49 +1000)
-t aka --takeover should not be setting container_name.
It sets it to NULL which causes failure when you try
  mdmon --all --takeover

Signed-off-by: NeilBrown <neilb@suse.de>
mdmon.c

diff --git a/mdmon.c b/mdmon.c
index 209347615811e0a3fc249d1f4446ed533f0c0513..dee02a9ccbdf556178e929367ab8fadc6cd19089 100644 (file)
--- a/mdmon.c
+++ b/mdmon.c
@@ -306,7 +306,6 @@ int main(int argc, char *argv[])
                        all = 1;
                        break;
                case 't':
-                       container_name = optarg;
                        takeover = 1;
                        break;
                case OffRootOpt: