diff --git a/WHATS_NEW b/WHATS_NEW index 7d3995b98..2c4e51615 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.99 - =================================== + Fix clvmd support for option -d and properly use its argument. Support use of option --yes for lvchange --persistent. Fix memory leak on error path for pvcreate with invalid uuid. Use lv_is_active() instead of lv_info() call. diff --git a/daemons/clvmd/clvmd.c b/daemons/clvmd/clvmd.c index ac465d97b..eb0bffd0d 100644 --- a/daemons/clvmd/clvmd.c +++ b/daemons/clvmd/clvmd.c @@ -362,7 +362,7 @@ int main(int argc, char *argv[]) /* Deal with command-line arguments */ opterr = 0; optind = 0; - while ((opt = getopt_long(argc, argv, "vVhfd::t:RST:CI:E:", + while ((opt = getopt_long(argc, argv, "vVhfd:t:RST:CI:E:", longopts, NULL)) != -1) { switch (opt) { case 'h': @@ -449,7 +449,7 @@ int main(int argc, char *argv[]) return debug_clvmd(debug_arg, clusterwide_opt)==1?0:1; } - clvmd_set_debug(debug_opt); + clvmd_set_debug(debug_arg); /* Fork into the background (unless requested not to) */ if (!foreground_mode)