Bug in mtx-update.lua?
Hi, it appears the variable "texroot" isn't always protected properly when fed to rsync. If "texroot" contains a space then rsync fails (see below). From what I can tell the problematic code is most probably in lines 364-369 of mtx-update.lua. This shows up at the very end: --- MTXrun | mtx update: updating luatools for osx-64: rsync -tgo --chmod=a+x /Users/albert/Documents/ConTeXt/Packaging/../Local Minimals/stable/texmf-context/scripts/context/lua/luatools.lua /Users/albert/Documents/ConTeXt/Packaging/../Local Minimals/stable/texmf-osx-64/bin/luatools MTXrun | run: rsync -tgo --chmod=a+x /Users/albert/Documents/ConTeXt/Packaging/../Local Minimals/stable/texmf-context/scripts/context/lua/luatools.lua /Users/albert/Documents/ConTeXt/Packaging/../Local Minimals/stable/texmf-osx-64/bin/luatools rsync: link_stat "/Users/albert/Documents/ConTeXt/Packaging/../Local" failed: No such file or directory (2) rsync: link_stat "/Users/albert/Documents/ConTeXt/Packaging/Minimals/stable/texmf-context/scripts/context/lua/luatools.lua" failed: No such file or directory (2) rsync: link_stat "/Users/albert/Documents/ConTeXt/Packaging/../Local" failed: No such file or directory (2) rsync: push_dir#3 "/Users/albert/Documents/ConTeXt/Packaging/Minimals/stable/texmf-osx-64/bin" failed: No such file or directory (2) rsync error: errors selecting input/output files, dirs (code 3) at /SourceCache/rsync/rsync-37.3/rsync/main.c(580) [receiver=2.6.9] rsync: connection unexpectedly closed (8 bytes received so far) [sender] rsync error: error in rsync protocol data stream (code 12) at /SourceCache/rsync/rsync-37.3/rsync/io.c(452) [sender=2.6.9] MTXrun | mtx update: updating mtxrun for osx-64: rsync -tgo --chmod=a+x /Users/albert/Documents/ConTeXt/Packaging/../Local Minimals/stable/texmf-context/scripts/context/lua/mtxrun.lua /Users/albert/Documents/ConTeXt/Packaging/../Local Minimals/stable/texmf-osx-64/bin/mtxrun MTXrun | run: rsync -tgo --chmod=a+x /Users/albert/Documents/ConTeXt/Packaging/../Local Minimals/stable/texmf-context/scripts/context/lua/mtxrun.lua /Users/albert/Documents/ConTeXt/Packaging/../Local Minimals/stable/texmf-osx-64/bin/mtxrun rsync: link_stat "/Users/albert/Documents/ConTeXt/Packaging/../Local" failed: No such file or directory (2) rsync: link_stat "/Users/albert/Documents/ConTeXt/Packaging/Minimals/stable/texmf-context/scripts/context/lua/mtxrun.lua" failed: No such file or directory (2) rsync: link_stat "/Users/albert/Documents/ConTeXt/Packaging/../Local" failed: No such file or directory (2) rsync: push_dir#3 "/Users/albert/Documents/ConTeXt/Packaging/Minimals/stable/texmf-osx-64/bin" failed: No such file or directory (2) rsync error: errors selecting input/output files, dirs (code 3) at /SourceCache/rsync/rsync-37.3/rsync/main.c(580) [receiver=2.6.9] rsync: connection unexpectedly closed (8 bytes received so far) [sender] rsync error: error in rsync protocol data stream (code 12) at /SourceCache/rsync/rsync-37.3/rsync/io.c(452) [sender=2.6.9] --- Can you reproduce this? Happy new year by the way :-) Oliver
participants (1)
-
Oliver Buerschaper