git: dc501a9ec093 - main - Allow DEBUG_SH=rc:all to debug all rc.d

From: Simon J. Gerraty <sjg_at_FreeBSD.org>
Date: Wed, 22 May 2024 02:45:28 UTC
The branch main has been updated by sjg:

URL: https://cgit.FreeBSD.org/src/commit/?id=dc501a9ec093f73d9cbff666df4bf16cd5a358fd

commit dc501a9ec093f73d9cbff666df4bf16cd5a358fd
Author:     Simon J. Gerraty <sjg@FreeBSD.org>
AuthorDate: 2024-05-22 02:44:20 +0000
Commit:     Simon J. Gerraty <sjg@FreeBSD.org>
CommitDate: 2024-05-22 02:44:20 +0000

    Allow DEBUG_SH=rc:all to debug all rc.d
    
    Usually a bad idea but there are exceptions to every rule.
    Allso debugging all rc.d scripts or all with a given arg.
---
 libexec/rc/rc.subr | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libexec/rc/rc.subr b/libexec/rc/rc.subr
index 16b2c9fc5e88..6ed9d24fdf5c 100644
--- a/libexec/rc/rc.subr
+++ b/libexec/rc/rc.subr
@@ -1076,7 +1076,7 @@ run_rc_command()
 		err 3 'run_rc_command: $name is not set.'
 	fi
 
-	DebugOn rc:$name rc:$name:$rc_arg $name:$rc_arg
+	DebugOn rc:all rc:all:$rc_arg rc:$name rc:$name:$rc_arg $name:$rc_arg
 
 	# Don't repeat the first argument when passing additional command-
 	# line arguments to the command subroutines.