From b5e4c2c2db3d32dcc70426e058132c52e32603f1 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Fri, 13 Aug 2021 10:46:57 -0500 Subject: [PATCH] Revert "openrc-init: ignore an empty string in argv[1]" This reverts commit dec9ef200b0d7e96993e2725792a9e7abe9c5f1f. This check is no longer needed since rc_runlevel_exists() is fixed. X-Gentoo-Bug: 803536 X-Gentoo-Bug-URL: https://bugs.gentoo.org/803536 Closes: https://github.com/OpenRC/openrc/pull/431 --- src/rc/openrc-init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rc/openrc-init.c b/src/rc/openrc-init.c index 00423746..c27e2086 100644 --- a/src/rc/openrc-init.c +++ b/src/rc/openrc-init.c @@ -263,7 +263,7 @@ int main(int argc, char **argv) printf("OpenRC init version %s starting\n", VERSION); - if (argc > 1 && argv[1][0] != '\0') + if (argc > 1) default_runlevel = argv[1]; else default_runlevel = NULL;