cvs commit: src/bin/rcp rcp.c

Colin Percival cperciva at
Tue May 22 04:21:02 UTC 2007

cperciva    2007-05-22 04:21:01 UTC

  FreeBSD src repository

  Modified files:
    bin/rcp              rcp.c 
  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

More information about the cvs-src mailing list