On systems without utime and without a utimes function capable of
authorJim Meyering <jim@meyering.net>
Mon, 17 Nov 2003 16:16:00 +0000 (16:16 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 17 Nov 2003 16:16:00 +0000 (16:16 +0000)
commit1631ea41e4a29eea87f534f9e70db84c1cf29a9b
tree4a60bec3fa84c5fc22ca7b888d7e73b3c2dc8cf6
parenta416aa560a13c4fc49a39ab5f0225c999bcda510
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