From 47cc7b3fde1988d13220d706030f62388ec4d47c Mon Sep 17 00:00:00 2001 From: AZero13 Date: Wed, 17 Dec 2025 19:41:15 -0500 Subject: [PATCH] Return 0 only when realtime signals are supported, not when it isn't Otherwise, it would always return 0. --- lib/util/sig2str.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util/sig2str.c b/lib/util/sig2str.c index 7391cc78a4..5bb2d7e2f1 100644 --- a/lib/util/sig2str.c +++ b/lib/util/sig2str.c @@ -72,8 +72,8 @@ sudo_sig2str(int signo, char *signame) (void)snprintf(signame, SIG2STR_MAX, "RTMAX-%d", (SIGRTMAX - signo)); } + return 0; } - return 0; } #endif if (signo > 0 && signo < NSIG) {