Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153836959
D18584.id54386.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
644 B
Referenced Files
None
Subscribers
None
D18584.id54386.diff
View Options
Index: head/usr.sbin/makefs/ffs.c
===================================================================
--- head/usr.sbin/makefs/ffs.c
+++ head/usr.sbin/makefs/ffs.c
@@ -932,8 +932,7 @@
if (isfile) {
fbuf = emalloc(ffs_opts->bsize);
if ((ffd = open((char *)buf, O_RDONLY, 0444)) == -1) {
- warn("Can't open `%s' for reading", (char *)buf);
- goto leave_ffs_write_file;
+ err(EXIT_FAILURE, "Can't open `%s' for reading", (char *)buf);
}
} else {
p = buf;
@@ -987,8 +986,6 @@
write_inode_and_leave:
ffs_write_inode(&in.i_din, in.i_number, fsopts);
-
- leave_ffs_write_file:
if (fbuf)
free(fbuf);
if (ffd != -1)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Apr 25, 3:39 AM (8 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32107783
Default Alt Text
D18584.id54386.diff (644 B)
Attached To
Mode
D18584: makefs(8) improper error handling (or lack of thereof)
Attached
Detach File
Event Timeline
Log In to Comment