[Pkg-gnupg-commit] [gnupg2] 116/185: common: logstream fix.
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Mon Aug 7 11:55:27 UTC 2017
This is an automated email from the git hooks/post-receive script.
dkg pushed a commit to branch experimental
in repository gnupg2.
commit 84146b3ec44943f06c66a603de19094b930ad446
Author: NIIBE Yutaka <gniibe at fsij.org>
Date: Thu Jul 20 16:37:56 2017 +0900
common: logstream fix.
* common/logging.c (set_file_fd): Don't close es_stderr.
Signed-off-by: NIIBE Yutaka <gniibe at fsij.org>
---
common/logging.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/common/logging.c b/common/logging.c
index bc5f72b..c4eaca4 100644
--- a/common/logging.c
+++ b/common/logging.c
@@ -472,7 +472,8 @@ set_file_fd (const char *name, int fd)
/* Close an open log stream. */
if (logstream)
{
- es_fclose (logstream);
+ if (logstream != es_stderr)
+ es_fclose (logstream);
logstream = NULL;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git
More information about the Pkg-gnupg-commit
mailing list