summaryrefslogtreecommitdiffstats
path: root/common/recsel.h
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2018-10-02 07:22:24 +0200
committerNIIBE Yutaka <gniibe@fsij.org>2018-10-02 07:22:24 +0200
commit50b02dba2060a8969da47b18d9c0ecdccbd30db4 (patch)
tree3baa8916fd8bd8debbc4d934da145f193eb92307 /common/recsel.h
parentg10,scd: Support UIF changing command. (diff)
downloadgnupg2-50b02dba2060a8969da47b18d9c0ecdccbd30db4.tar.xz
gnupg2-50b02dba2060a8969da47b18d9c0ecdccbd30db4.zip
common: Fix gnupg_reopen_std.
* common/sysutils.c (gnupg_reopen_std): Use fcntl instead of fstat. -- When gpg was invoked by a Perl web application on FreeBSD, fstat in gnupg_reopen_std failed with EBADF. Using fcntl, which is considered lighter than fstat, it works fine. Since uur purpose is to check if file descriptor is valid or not, lighter operation is better. Reported-by: Marcin Gryszkalis <mg@fork.pl> Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to 'common/recsel.h')
0 files changed, 0 insertions, 0 deletions