[Bug 202289] mdconfig -l outputs nothing if filename of vnode backed disk has unsafe characters

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Aug 13 12:29:26 UTC 2015


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=202289

            Bug ID: 202289
           Summary: mdconfig -l outputs nothing if filename of vnode
                    backed disk has unsafe characters
           Product: Base System
           Version: 10.1-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: mmamkin at mail.ru

"mdconfig -l" outputs nothing when there are vnode disks with '&' in filenames.
I suppose this occurs because g_md_dumpconf() doesn't escapse unsafe characters
in filenames:
...
if (mp->type == MD_VNODE && mp->vnode != NULL)
            sbuf_printf(sb, "%s<file>%s</file>\n",
                indent, mp->file);

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list