diff options
| author | Aymeric Wibo <obiwac@FreeBSD.org> | 2026-02-04 20:58:13 +0000 |
|---|---|---|
| committer | Aymeric Wibo <obiwac@FreeBSD.org> | 2026-02-05 11:16:06 +0000 |
| commit | b8d55a86995b5a8db5d1651c8dc9fc5093b67d2c (patch) | |
| tree | 3b1d0ad93a64e14bd4d4150ada5ad40e866ea3e2 /share/syscons/scrnmaps | |
| parent | cc702c78f70f972cf2f8ea008752d96df1989988 (diff) | |
Previously, if creating the file and fstat() fails, we would've ended up
calling utimensat() on that file anyways with whatever was in sb. Not
that this is an error likely to happen...
We don't check for the return value of close() as we aren't writing
anything to the file and the file is always created on success of
open().
Reviewed by: kevans
Approved by: kevans
Fixes: cb54c500d0e1 ("touch: don't leak descriptor if fstat(2) fails")
Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D55117
MFC after: 1 week
Diffstat (limited to 'share/syscons/scrnmaps')
0 files changed, 0 insertions, 0 deletions
