mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-10-21 23:28:19 +00:00
1a71d9d33c
packimage passes the image directory to shell commands without quotes, such as the rm -rf of the xcatpost directory. It finds its abandoned stages with glob. For an image directory such as "/install/custom images/node", the shell and glob split the path at the space, so packimage removed /install/custom with the images in it. packimage now refuses an image directory whose path has a space or a shell character, before it runs any command.