Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F156565674
D53649.id166108.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
865 B
Referenced Files
None
Subscribers
None
D53649.id166108.diff
View Options
diff --git a/sbin/newfs_msdos/mkfs_msdos.c b/sbin/newfs_msdos/mkfs_msdos.c
--- a/sbin/newfs_msdos/mkfs_msdos.c
+++ b/sbin/newfs_msdos/mkfs_msdos.c
@@ -264,7 +264,7 @@
goto done;
}
if (o.OEM_string && strlen(o.OEM_string) > 8) {
- warnx("%s: bad OEM string", o.OEM_string);
+ warnx("%s: OEM string too long", o.OEM_string);
goto done;
}
if (o.create_size) {
@@ -274,11 +274,11 @@
}
fd = open(fname, O_RDWR | O_CREAT | O_TRUNC, 0644);
if (fd == -1) {
- warnx("failed to create %s", fname);
+ warn("failed to create %s", fname);
goto done;
}
if (ftruncate(fd, o.create_size)) {
- warnx("failed to initialize %jd bytes", (intmax_t)o.create_size);
+ warn("failed to initialize %jd bytes", (intmax_t)o.create_size);
goto done;
}
} else if ((fd = open(fname, o.no_create ? O_RDONLY : O_RDWR)) == -1) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, May 15, 5:25 PM (13 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33091849
Default Alt Text
D53649.id166108.diff (865 B)
Attached To
Mode
D53649: newfs_msdos: Improve error messages
Attached
Detach File
Event Timeline
Log In to Comment