Avoid to use names with reserved characters.
Some characters are reserved and should not be used in Windows independently by the file system used. This avoid to use paths in the filename which could lead to some nasty hacks (like names like "..\hack.txt"). The return statement cause the file transfer to be aborted with VD_AGENT_FILE_XFER_STATUS_ERROR as status. ":" is used to separate filenames from stream names and can be used to create hidden streams. Also is used for drive separator (A:) or device names (NUL:). "/" and "\" are reserved for components (directory, filename, drive, share, server) separators. "*" and "?" are wildcards (which on Windows are supported by different APIs too). "<", ">", """ and "|" are reserved for shell usage. More information on "Naming Files, Paths, and Namespaces" page at https://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx This fixes also https://bugzilla.redhat.com/show_bug.cgi?id=1520393 . Signed-off-by: Frediano Ziglio <firstname.lastname@example.org> Acked-by: Christophe Fergeau <email@example.com>