FreeBSD Bugzilla – Attachment 258927 Details for
Bug 70536
reboot(8) -dp tries to dump when powering off
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
reboot.c.diff
reboot.c.diff (text/plain), 646 bytes, created by
Mark Linimon
on 2025-03-22 22:44:55 UTC
(
hide
)
Description:
reboot.c.diff
Filename:
MIME Type:
Creator:
Mark Linimon
Created:
2025-03-22 22:44:55 UTC
Size:
646 bytes
patch
obsolete
>Index: sbin/reboot/reboot.c >=================================================================== >RCS file: /home/ncvs/src/sbin/reboot/reboot.c,v >retrieving revision 1.20 >diff -u -r1.20 reboot.c >--- sbin/reboot/reboot.c 9 Apr 2004 19:58:35 -0000 1.20 >+++ sbin/reboot/reboot.c 16 Aug 2004 12:25:16 -0000 >@@ -108,6 +108,8 @@ > > if ((howto & (RB_DUMP | RB_HALT)) == (RB_DUMP | RB_HALT)) > errx(1, "cannot dump (-d) when halting; must reboot instead"); >+ if ((howto & (RB_DUMP | RB_POWEROFF)) == (RB_DUMP | RB_POWEROFF)) >+ errx(1, "cannot dump (-d) when powering off; must reboot instead"); > if (geteuid()) { > errno = EPERM; > err(1, NULL); >%%%
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 70536
:
45819
| 258927