diff options
author | Siddhesh Poyarekar <siddhesh@sourceware.org> | 2021-10-06 21:48:35 +0530 |
---|---|---|
committer | Siddhesh Poyarekar <siddhesh@sourceware.org> | 2021-10-06 22:18:24 +0530 |
commit | 27b6edbb090f736b101f569620d8ad0e7217ddf8 (patch) | |
tree | 805e2f3be96c59a4972d065b7513492c020014ba /stdio-common/tst-setvbuf1.expect | |
parent | 3234a31b489707f19ec6d4c9909af06f20ddb901 (diff) | |
download | glibc-27b6edbb090f736b101f569620d8ad0e7217ddf8.tar.gz glibc-27b6edbb090f736b101f569620d8ad0e7217ddf8.tar.xz glibc-27b6edbb090f736b101f569620d8ad0e7217ddf8.zip |
support: Also return fd when it is 0
The fd validity check in open_dev_null checks if fd > 0, which would lead to a leaked fd if it is == 0. Signed-off-by: Siddhesh Poyarekar <siddhesh@sourceware.org> Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'stdio-common/tst-setvbuf1.expect')
0 files changed, 0 insertions, 0 deletions