Page MenuHomeFreeBSD

D43800.id134028.diff
No OneTemporary

D43800.id134028.diff

diff --git a/sbin/reboot/reboot.c b/sbin/reboot/reboot.c
--- a/sbin/reboot/reboot.c
+++ b/sbin/reboot/reboot.c
@@ -115,6 +115,8 @@
errx(1, "-c and -p cannot be used together");
if ((howto & RB_REROOT) != 0 && howto != RB_REROOT)
errx(1, "-r cannot be used with -c, -d, -n, or -p");
+ if ((howto & RB_REROOT) != 0 && kernel != NULL)
+ errx(1, "-r and -k cannot be used together, there is no next kernel.");
if (geteuid()) {
errno = EPERM;
err(1, NULL);

File Metadata

Mime Type
text/plain
Expires
Sun, Oct 12, 6:34 PM (34 m, 28 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
23635822
Default Alt Text
D43800.id134028.diff (470 B)

Event Timeline