hfingerd

hhvn.uk:79
Log | Files | Refs | LICENSE

commit b8742af45b8879381da73052360c024a35afa0b1
parent 01161664556acfb2c360db485f98ba5f29ca6653
Author: hhvn <dev@hhvn.uk>
Date:   Sat,  5 Jun 2021 23:45:28 +0100

handler.c: use descriptive macros for dup2()

Diffstat:
Mhandler.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/handler.c b/handler.c @@ -99,8 +99,8 @@ get_plan(int fd, char *user) { error("fork(): %s\n", strerror(errno)); return; case 0: - dup2(fd, 1); - dup2(fd, 2); + dup2(fd, STDOUT_FILENO); + dup2(fd, STDERR_FILENO); execl(path, path, NULL); break; default: