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

(cherry picked from commit e8d027be6b84ac976eacd46283c286b934dd6f1f)

Details

Provenance
ahmadkhalifa570_gmail.comAuthored on Aug 14 2024, 2:26 PM
impCommitted on Wed, Mar 26, 1:28 AM
Parents
rG2ce4f021827a: libc/stdio: Increase BUF in vfprintf.c and vfwprintf.c
Branches
Unknown
Tags
Unknown