]> Cypherpunks repositories - gostls13.git/commit
syscall: use correct file descriptor in dup2 fallback path
authorIan Lance Taylor <iant@golang.org>
Fri, 24 Jul 2020 22:13:43 +0000 (15:13 -0700)
committerIan Lance Taylor <iant@golang.org>
Sat, 25 Jul 2020 20:13:27 +0000 (20:13 +0000)
commit8696ae82c94f0a7707cbbbdf2cec44e93edf5b23
treef3a094aa6f47197fdf1ad6bcf2d4c1a7eb6f551c
parent9591515f515a76f627bc1cfc6d71f98f43526faf
syscall: use correct file descriptor in dup2 fallback path

This fixes a mistake in CL 220422. This changes code that is only
executed on Linux kernel versions earlier than 2.6.27.

Change-Id: I01280184f4d7b75e06387c38f1891e8f0a81f793
Reviewed-on: https://go-review.googlesource.com/c/go/+/244630
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
src/syscall/exec_linux.go