6bc21642a1
- drmgr: Fix segfault when running 'drmgr -c pmig -h'
29 lines
851 B
Diff
29 lines
851 B
Diff
commit 4fd247b178c81b0395be7dd48db2c762b9922a00
|
|
Author: Than Ngo <than@redhat.com>
|
|
Date: Tue Feb 25 15:09:00 2020 +0100
|
|
|
|
drmgr: Fix segfault when running 'drmgr -c pmig -h'
|
|
|
|
diff --git a/src/drmgr/drmgr.c b/src/drmgr/drmgr.c
|
|
index 0f207cc..0630f1d 100644
|
|
--- a/src/drmgr/drmgr.c
|
|
+++ b/src/drmgr/drmgr.c
|
|
@@ -310,12 +310,16 @@ struct command *get_command(void)
|
|
usr_action = HIBERNATE;
|
|
return &commands[DRSLOT_CHRP_PHIB];
|
|
break;
|
|
+ case DRC_TYPE_MIGRATION:
|
|
+ usr_action = MIGRATE;
|
|
+ return &commands[DRMIG_CHRP_PMIG];
|
|
+ break;
|
|
default:
|
|
/* If we make it this far, the user specified an invalid
|
|
* connector type.
|
|
*/
|
|
say(ERROR, "Dynamic reconfiguration is not supported for "
|
|
- "connector\ntype \"%s\" on this system\n", usr_drc_type);
|
|
+ "connector\ntype \"%d\" on this system\n", usr_drc_type);
|
|
break;
|
|
}
|
|
|