Date: Tue, 22 May 2007 04:21:01 +0000 (UTC) From: Colin Percival <cperciva@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/bin/rcp rcp.c Message-ID: <200705220421.l4M4L19U072294@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
cperciva 2007-05-22 04:21:01 UTC FreeBSD src repository Modified files: bin/rcp rcp.c Log: In the error handling path, don't call close(fd) if the error we're handling is that fd = open(foo) is -1. This bug is harmless since close(-1) just returns an error (which the code ignores). Found by: Coverity Prevent(tm) CID: 1503 (in userland test run) Revision Changes Path 1.46 +2 -1 src/bin/rcp/rcp.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200705220421.l4M4L19U072294>