Page MenuHome GnuPG

Better temporary file handling for applygnupgdefaults
Closed, ResolvedPublic

Description

applygnupgdefaults' temporary file handling could be improved; it doesn't check
whether the error file already exists but just goes ahead and truncates it which
isn't nice especially for something run as root (symlinks in /tmp ...). Fix
attached, along with a couple of comment typo fixes.

Details

Version
2.0.13

Event Timeline

Unfortunately mktemp is not a standard tool. I see what I can do.

FWIW, note that tools/gpgsm-gencert.sh already uses mktemp.

Fixed in 2.0 and 2.1 rev 5238.