mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-11-21 01:42:15 +00:00
21b24f1e7d
imgutils.pm imports File::Copy with an empty list, so the module exports no function and a bare move() is not defined. use_host_resolver calls move() unqualified, so it dies with "Undefined subroutine &imgutils::move called" the first time genimage reaches it, before it has moved either file aside. Every other call site in the file already qualifies the name: File::Copy::cp at line 139, File::Copy::copy at 208 and at 302, the last of them two lines below the defect. The call is now qualified the same way. xCAT-test/unit/imgutils_host_resolver.t and imgutils_reused_root.t both die at load on the unfixed tree and pass with the fix, 34 tests. Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>