Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151239299
D43800.id134119.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
469 B
Referenced Files
None
Subscribers
None
D43800.id134119.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Wed, Apr 8, 1:32 AM (3 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30862357
Default Alt Text
D43800.id134119.diff (469 B)
Attached To
Mode
D43800: reboot: Disallow -k and -r, it doesn't make sense.
Attached
Detach File
Event Timeline
Log In to Comment