We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 01f6f22 commit 0585c2cCopy full SHA for 0585c2c
1 file changed
src/openrc-run/openrc-run.c
@@ -1305,8 +1305,7 @@ int main(int argc, char **argv)
1305
This is important as we stamp on the restart function now but
1306
some start/stop routines still need to behave differently if
1307
restarting. */
1308
- unsetenv("RC_CMD");
1309
- setenv("RC_CMD", optarg, 1);
+ setenv("RC_CMD", optarg, true);
1310
1311
for (size_t i = 0; i < ARRAY_SIZE(commands); i++) {
1312
if (strcmp(optarg, commands[i].name) != 0)
0 commit comments