Fix: runas check fd value before calling close()
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 31 Aug 2018 17:33:51 +0000 (13:33 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 31 Aug 2018 17:33:53 +0000 (13:33 -0400)
commit9abb7e4a8758e6894872d81aef285aa2b521318a
tree4c82de96c9866f4ebe395b0e1becaa0c0e1f3d25
parent727d148d7e2ad9f2baba0b998e8aebb4487d1b60
Fix: runas check fd value before calling close()

A bug could cause an 'open' command to return no FD in which
case the initial value of '-1' would be used in the call to
close().

Reported-by: Coverity Scan (1395329 Improper use of negative value)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/common/runas.c
This page took 0.02517 seconds and 4 git commands to generate.