Revert "rc: Disable pathname expansion when calling run_rc_command()"

At least nuageinit is broken after this commit, breaking some downstream
CI systems.  It also disables globbing for rc.local scripts, which is
likely to break users in surprising ways.

This reverts commit 4deb9760a9.
This commit is contained in:
Mark Johnston 2025-06-27 18:59:54 +00:00
parent d783591a7d
commit 9c014cc25c

View file

@ -1788,11 +1788,7 @@ _run_rc_doit()
debug "run_rc_command: doit: $*"
_m=$(umask)
${_umask:+umask ${_umask}}
# Disable pathname expansion temporarily for run_rc_command.
set -o noglob
eval "$@"
set +o noglob
_return=$?
umask ${_m}