reboot: handle -p switch properly

https://bugzilla.redhat.com/show_bug.cgi?id=618678
This commit is contained in:
Michal Schmidt 2010-08-05 14:00:00 +02:00 committed by Lennart Poettering
parent 6319292f15
commit a042efad57

View File

@ -3933,7 +3933,8 @@ static int halt_parse_argv(int argc, char *argv[]) {
break;
case 'p':
arg_action = ACTION_POWEROFF;
if (arg_action != ACTION_REBOOT)
arg_action = ACTION_POWEROFF;
break;
case ARG_REBOOT: