Coverity: TOCTOU: CID 387
authorNelson Ferreira <nelson.ferreira@ieee.org>
Fri, 24 Feb 2012 17:51:35 +0000 (12:51 -0500)
committerNelson Ferreira <nelson.ferreira@ieee.org>
Fri, 24 Feb 2012 17:51:35 +0000 (12:51 -0500)
commit9c7003ff693f56a2f0a68917a78a735025fa488c
tree13a02ec7d1b77258ac58a843b7307af1530c26f6
parentcdd22e84903d51ed5d2ec9f61cbf90c4e4da9ff4
Coverity: TOCTOU: CID 387

* lib-src/etags.c (process_file_name): use open/popen then handle
failure, instead of stat. Also, after successful open check it is
regular file, and reject it is not.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
lib-src/etags.c