Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F157715143
D44013.id134823.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
398 B
Referenced Files
None
Subscribers
None
D44013.id134823.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
@@ -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
Details
Attached
Mime Type
text/plain
Expires
Mon, May 25, 9:39 AM (7 m, 14 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33505977
Default Alt Text
D44013.id134823.diff (398 B)
Attached To
Mode
D44013: nextboot: check unlink, but only warn on !ENOENT
Attached
Detach File
Event Timeline
Log In to Comment