Skip to content

Commit 7aa72e3

Browse files
committed
node/inetd: fix args for execvp()
The first element of the args array of execvp() should be the called program name, not its 1rst arg.
1 parent 2501fed commit 7aa72e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node/inetd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ int main(int argc, char *argv[]) {
7575
dup2(sock_accept, 0);
7676
dup2(sock_accept, 1);
7777
close(sock_accept);
78-
execvp(argv[2], argv + 3);
78+
execvp(argv[2], argv + 2);
7979
/* according to vfork(2) we must use _exit */
8080
_exit(1);
8181
} else {

0 commit comments

Comments
 (0)