HomeFreeBSD

install: print directory name instead of file name if mkstemp fails

Description

install: print directory name instead of file name if mkstemp fails

Printing the file name doesn't make sense since mkstemp failing means
that the file wasn't created.

Also add a test case for this.

Co-authored-by: Jose Luis Duran <jlduran@gmail.com>
Reviewed by: imp,jhb
Pull Request: https://github.com/freebsd/freebsd-src/pull/1383

Details

Provenance
ahmadkhalifa570_gmail.comAuthored on Aug 14 2024, 2:26 PM
impCommitted on Fri, Nov 29, 9:38 PM
Parents
rGd4f9e326393e: libc/stdio: Increase BUF in vfprintf.c and vfwprintf.c
Branches
Unknown
Tags
Unknown