summaryrefslogtreecommitdiffstats
path: root/include/exec
diff options
context:
space:
mode:
authorBandan Das2019-08-28 14:49:28 +0200
committerGerd Hoffmann2019-08-29 07:31:12 +0200
commite4c1c64112565a9be50008e6f28dbc41b53da740 (patch)
treeb2d6ad76ba9f9e5937a654ba141735ca1a031a2e /include/exec
parentxhci: Fix memory leak in xhci_kick_epctx (diff)
downloadqemu-e4c1c64112565a9be50008e6f28dbc41b53da740.tar.gz
qemu-e4c1c64112565a9be50008e6f28dbc41b53da740.tar.xz
qemu-e4c1c64112565a9be50008e6f28dbc41b53da740.zip
usb-mtp: add sanity checks on rootdir
Currently, we don't check if rootdir exists and is accessible. Furthermore, a trailing slash results in a null "desc" string which ends up in the share not visible in the guest. Add some simple sanity checks for appropriate permissions. Also, bail out if the user does not supply an absolute path. Signed-off-by: Bandan Das <bsd@redhat.com> Message-id: jpga7bto3on.fsf@linux.bootlegged.copy Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'include/exec')
0 files changed, 0 insertions, 0 deletions