From 9c014cc25c437d2c4e18a7554e1276e0f290a8a0 Mon Sep 17 00:00:00 2001 From: Mark Johnston Date: Fri, 27 Jun 2025 18:59:54 +0000 Subject: [PATCH] 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 4deb9760a9d84d5861ee45162ffebe83f13503b8. --- libexec/rc/rc.subr | 4 ---- 1 file changed, 4 deletions(-) diff --git a/libexec/rc/rc.subr b/libexec/rc/rc.subr index 359eebd1d34..2eaf336b522 100644 --- a/libexec/rc/rc.subr +++ b/libexec/rc/rc.subr @@ -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}