Skip to content

Commit 0585c2c

Browse files
committed
openrc-run: remove unsetenv before setenv(..., true)
1 parent 01f6f22 commit 0585c2c

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/openrc-run/openrc-run.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1305,8 +1305,7 @@ int main(int argc, char **argv)
13051305
This is important as we stamp on the restart function now but
13061306
some start/stop routines still need to behave differently if
13071307
restarting. */
1308-
unsetenv("RC_CMD");
1309-
setenv("RC_CMD", optarg, 1);
1308+
setenv("RC_CMD", optarg, true);
13101309

13111310
for (size_t i = 0; i < ARRAY_SIZE(commands); i++) {
13121311
if (strcmp(optarg, commands[i].name) != 0)

0 commit comments

Comments
 (0)