summaryrefslogtreecommitdiff
path: root/util/libreboot-utils/mkhtemp.c
AgeCommit message (Collapse)Author
11 hoursutil/mkhtemp: show path on error accessing itLeah Rowe
a bit naughty the way i do it, but it works. without this, the message gets clobbered by EINVAL due to a bad call to vprintf in the err function. in this way, we ensure that there is a path, and thus the errno does not get clobbered. i also removed the EPERM setting in the env_tmpdir function, which also clobbered errno. with this fix, if TMPDIR is set but invalid, it should now show the error reliably. Signed-off-by: Leah Rowe <leah@libreboot.org>
12 hoursutil/mkhtemp: new utility (hardened mktemp)Leah Rowe
part of the same code library as nvmutil. as part of this, i renamed util/nvmutil to util/libreboot-utils/ because it is now a multi-utility codebase. this is more efficient, since i also wish to use mkhtemp (function) in nvmutil. Signed-off-by: Leah Rowe <leah@libreboot.org>