two minor multipath tools fixes
Benjamin Marzinski
maintainerThere was a spot where multipathd's reply length forgot to count the NULL, and I noticed that the way domap go rewritten, the dry-run option doesn't print out the maps.
This patch fixes both.
-Ben
multipath/main.c +3 -1
@@ -626,8 +626,10 @@ domap (struct multipath * mpp)/* * last chance to quit before touching the devmaps */ -if (conf->dry_run) +if (conf->dry_run) { +print_mp (mpp);return 0 ; + }switch (mpp->action) {case ACT_NOTHING :
multipathd/cli.c +1 -1
@@ -314,7 +314,7 @@ parse_cmd (char * cmd, char ** reply, inif (!cmdvec) { *reply =genhelp_handler (); - *len =strlen (*reply); + *len =strlen (*reply) +1 ;return 0 ; }
Christophe Varoqui
AppliedQuoted 6 lines · Benjamin Marzinski
There was a spot where multipathd's reply length forgot to count the NULL, and I noticed that the way domap go rewritten, the dry-run option doesn't print out the maps.
This patch fixes both.
Applied, thanks.
Regards,
cvaroqui