From: Hervé Poussineau Date: Mon, 10 Oct 2022 17:55:11 +0000 (+0200) Subject: vvfat: allow spaces in file names X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=1e85c7259b7f5b5b7f9a360e2327b1baff723c79;p=qemu.git vvfat: allow spaces in file names In R/W mode, files with spaces were never created on host side. Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1176 Fixes: c79e243ed67683d6d06692bd7040f7394da178b0 Signed-off-by: Hervé Poussineau Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Kevin Wolf Message-Id: <20221010175511.3414357-3-hpoussin@reactos.org> Signed-off-by: Kevin Wolf --- diff --git a/block/vvfat.c b/block/vvfat.c index e76b42dbaf..c5b1442145 100644 --- a/block/vvfat.c +++ b/block/vvfat.c @@ -499,7 +499,7 @@ static bool valid_filename(const unsigned char *name) (c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z') || c > 127 || - strchr("$%'-_@~`!(){}^#&.+,;=[]", c) != NULL)) + strchr(" $%'-_@~`!(){}^#&.+,;=[]", c) != NULL)) { return false; }