cmake tar fails on network drive
I have a Windows VM that I am sharing a folder with my host Linux system with. Inside Windows this shared folder represented as a network drive (S:).
When I execute
S:/vcpkg/downloads/tools/cmake-3.19.2-windows/cmake-3.19.2-win32-x86/bin/cmake.exe -E tar xzf S:/vcpkg/downloads/msys-gawk-5.1.0-1-x86_64.pkg.tar.xz
I get the following error:
CMake Error: Problem with archive_write_header(): Can't create '\\?\S:\test\usr\bin\gawk.exe' CMake Error: Current file: usr/bin/gawk.exe CMake Error: Problem extracting tar: S:/vcpkg/downloads/msys-gawk-5.1.0-1-x86_64.pkg.tar.xz
If I execute the very same command while not being on the network drive (e.g. Under C:users/bla/Documents), the extraction works just fine.
To me it seem like the
\\? is somehow prepended to the current directory and thereby messing up the path to extract to.