mirror of
https://github.com/opnsense/src.git
synced 2026-05-04 17:05:14 -04:00
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
|
||
|---|---|---|
| .. | ||
| Makefile | ||
| Makefile.depend | ||
| touch.1 | ||
| touch.c | ||