opnsense-src/usr.bin/touch
Mariusz Zaborski e7023af434 touch: don't leak descriptor if fstat(2) fails
If fstat(2) fails the close(2) won't be called, which will leak the
file descriptor.

The idea was borrowed from OpenBSD, where similar patch
was applied for futimens(2).

MFC after:	1 week

(cherry picked from commit cb54c500d0)
2022-03-19 14:16:29 +01:00
..
Makefile
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
touch.1 touch.1: Update to conform to POSIX 2004 2018-06-01 22:34:59 +00:00
touch.c touch: don't leak descriptor if fstat(2) fails 2022-03-19 14:16:29 +01:00