]> git.ipfire.org Git - thirdparty/coreutils.git/commit
On systems without utime and without a utimes function capable of
authorJim Meyering <jim@meyering.net>
Mon, 17 Nov 2003 16:13:04 +0000 (16:13 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 17 Nov 2003 16:13:04 +0000 (16:13 +0000)
commit476ff1e6232f7d636b5665496f5346d161eeb47b
tree165c6bd3b7ae747b0099c727348f7416e6508d7b
parente81926abd0071068caad93eff8d9751a3e0baffa
On systems without utime and without a utimes function capable of
dealing with a NULL struct utimbuf* argument, this utime replacement
could -- in unusual circumstances -- leak a file descriptor.

Include <unistd.h> and <errno.h>.
(utime_null): Be sure to close `fd' and to preserve errno.
lib/utime.c