hw/usb/dev-mtp: create directories with a+x mode mask
commit7c204e96384b8e03b917fd30abf3bc96da237990
authorVolker Rümelin <vr_qemu@t-online.de>
Sat, 22 Jan 2022 14:06:19 +0000 (22 15:06 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 4 Mar 2022 08:34:21 +0000 (4 09:34 +0100)
tree39d0125f8b4f49635f77c2996c59e4400c94d3bc
parent42c93917f7829190fcae05c5c0827d0c187d7713
hw/usb/dev-mtp: create directories with a+x mode mask

Current code creates directories with mode 0644. Even the creator
can't create files in the new directory. Set all x mode flags in
variable mask and clear all x mode flags in function open() to
preserve the current open mode.

Signed-off-by: Volker Rümelin <vr_qemu@t-online.de>
Message-Id: <20220122140619.7514-1-vr_qemu@t-online.de>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb/dev-mtp.c