← Commit list

104e01409

Denys Vlasenko
Denys Vlasenko
2011-07-03
FAILED Duration: 222s

Subject

halt/reboot: better message if /sbin/telinit is not found

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

init/halt.c+3 -1
@@ -154,11 +154,13 @@ int halt_main(int argc UNUSED_PARAM, char **argv)
/* runlevels:
* 0 == shutdown
* 6 == reboot */
- rc = execlp(CONFIG_TELINIT_PATH,
+ execlp(CONFIG_TELINIT_PATH,
CONFIG_TELINIT_PATH,
which == 2 ? "6" : "0",
(char *)NULL
);
+ perror_msg_and_die("can't execute '%s'",
+ CONFIG_TELINIT_PATH);
}
}
} else {