mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-05-29 14:10:59 +00:00
701e9e00c0
The is_tftp_ready() function creates test files that inherit the shell's umask. With umask 027, files get 640 permissions and the TFTP daemon (running as nobody/tftp) cannot read them, causing a false negative even when TFTP service is healthy. Temporarily set umask to 022 during test file creation so files are world-readable (644), then restore the original umask. Fixes: https://github.com/xcat2/xcat-core/issues/7487