Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F163403381
D18584.id.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.id.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
Thu, Jul 23, 9:54 PM (20 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35416903
Default Alt Text
D18584.id.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