e2fsprogs/util
Theodore Ts'o 2873927d15 subst: clean up various coverity nits
Add appropriate error checking for all error returns, and only open
each file that we need to manipulate once, to avoid potential
time-of-check/time-of-use races.  (Not that this is likely for this
program, but the result is much more clean.)

We also preserve the atime in the case where the file has not changed.

Addresses-Coverty-Id: #709537
Addresses-Coverty-Id: #1049150
Addresses-Coverty-Id: #1049151

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2014-01-04 19:11:37 -05:00
..
Makefile.in subst: clean up various coverity nits 2014-01-04 19:11:37 -05:00
Makefile.pq Many files: 1997-11-14 05:23:04 +00:00
all.exclude gen-tarball: ignore all of the build* directories 2013-12-28 15:57:29 -05:00
copy_sparse.c Remove trailing whitespace for the entire source tree 2008-08-27 23:07:54 -04:00
gcc-wall-cleanup Fix gcc -Wall nitpicks 2003-12-07 01:28:50 -05:00
gen-tarball.in Unbreak build if directory renamed from e2fsprogs. 2008-09-07 21:53:28 -04:00
install-symlink.in Teach build system to install relative symlinks if requested 2012-05-12 23:34:33 -04:00
libecho.c Makefile.pq, libecho.c: 1997-10-31 06:25:24 +00:00
subset.exclude gen-tarball: ignore all of the build* directories 2013-12-28 15:57:29 -05:00
subst.c subst: clean up various coverity nits 2014-01-04 19:11:37 -05:00
subst.conf.in mke2fs: remove quota docs if not configured in 2013-10-14 08:57:17 -04:00
symlinks.c util: respect HAVE_MALLOC_H 2012-08-19 17:57:17 -04:00