commit 7a8b204c948f719038a74a7a837d626661b115eb
parent 3bf2f9e26771eae5657243471227f975cc990797
Author: Laurent Bercot <ska-skaware@skarnet.org>
Date: Fri, 21 May 2021 21:09:11 +0000
Trivial syscall number optimization
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/conn-tools/s6-ipcserverd.c b/src/conn-tools/s6-ipcserverd.c
@@ -235,7 +235,7 @@ static void run_child (int s, uid_t uid, gid_t gid, unsigned int num, char const
unsigned int n = 0 ;
char fmt[65 + UID_FMT + GID_FMT + UINT_FMT + rplen] ;
PROG = "s6-ipcserver (child)" ;
- if ((fd_move(0, s) < 0) || (fd_copy(1, 0) < 0))
+ if ((fd_move(1, s) < 0) || (fd_copy(0, 1) < 0))
strerr_diefu1sys(111, "move fds") ;
memcpy(fmt+n, "PROTO=IPC\0IPCREMOTEEUID", 23) ; n += 23 ;
if (flaglookup)