Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F157497551
D31287.id92681.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
823 B
Referenced Files
None
Subscribers
None
D31287.id92681.diff
View Options
Index: sys/kern/vfs_mount.c
===================================================================
--- sys/kern/vfs_mount.c
+++ sys/kern/vfs_mount.c
@@ -2562,10 +2562,18 @@
return;
sbuf_printf(sb, " %s=\"", what);
TAILQ_FOREACH(opt, opts, link) {
- if (opt->name[0] == '\0' || (opt->len > 0 && *(char *)opt->value == '\0'))
+ if (opt->name[0] == '\0')
continue;
devctl_safe_quote_sb(sb, opt->name);
- if (opt->len > 0) {
+ /*
+ * Only print the option values for those options that are known
+ * to be ascii strings. Many others are, but we cannot assume
+ * that here.
+ */
+ if (opt->len > 1 &&
+ (strcmp(opt->name, "fstype") == 0 ||
+ strcmp(opt->name, "fspath") == 0 ||
+ strcmp(opt->name, "from") == 0)) {
sbuf_putc(sb, '=');
devctl_safe_quote_sb(sb, opt->value);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, May 23, 1:57 AM (8 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33439227
Default Alt Text
D31287.id92681.diff (823 B)
Attached To
Mode
D31287: devctl: don't publish the mount options
Attached
Detach File
Event Timeline
Log In to Comment