From ab718378cb58280b3790ae18895cc0359f36d357 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Wed, 26 Sep 2007 18:55:42 +0000 Subject: [PATCH] Don't close stderr in log_close to make -v/-vv work again. --- log.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/log.c b/log.c index 06e1e5a8..9d63e5be 100644 --- a/log.c +++ b/log.c @@ -1,4 +1,4 @@ -/* $Id: log.c,v 1.2 2007-07-25 23:13:18 nicm Exp $ */ +/* $Id: log.c,v 1.3 2007-09-26 18:55:42 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -56,7 +56,7 @@ log_open(FILE *f, int facility, int level) void log_close(void) { - if (log_stream != NULL) + if (log_stream != NULL && log_stream != stderr) /* XXX */ fclose(log_stream); log_enabled = 0;