Page MenuHomeFreeBSD

D44013.1794800475.diff
No OneTemporary

Authored By
Unknown
Size
398 B
Referenced Files
None
Subscribers
None

D44013.1794800475.diff

diff --git a/sbin/reboot/reboot.c b/sbin/reboot/reboot.c
--- a/sbin/reboot/reboot.c
+++ b/sbin/reboot/reboot.c
@@ -288,7 +288,8 @@
errx(1, "-r and -k cannot be used together, there is no next kernel");
if (Dflag) {
- (void)unlink(PATH_NEXTBOOT); /* Say nothing if it's not there */
+ if (unlink(PATH_NEXTBOOT) != 0 && errno != ENOENT)
+ warn("unlink " PATH_NEXTBOOT);
exit(0);
}

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 16, 3:41 AM (15 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41758115
Default Alt Text
D44013.1794800475.diff (398 B)

Event Timeline