diff options
author | Doug Barton <dougb@FreeBSD.org> | 2011-08-02 05:18:50 +0000 |
---|---|---|
committer | Doug Barton <dougb@FreeBSD.org> | 2011-08-02 05:18:50 +0000 |
commit | 0842d663b7cfb84b478ec937fc1dbc640ceae92b (patch) | |
tree | 4385ddab756952a705f233916d0536e76fe9cc58 /lib/isc/log.c | |
parent | 6a50a75ead6b2f11f0321914c033e8c8670cbb60 (diff) |
Notes
Diffstat (limited to 'lib/isc/log.c')
-rw-r--r-- | lib/isc/log.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/isc/log.c b/lib/isc/log.c index 121bd25b2567..4694f5e2a4bd 100644 --- a/lib/isc/log.c +++ b/lib/isc/log.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2004-2007, 2009 Internet Systems Consortium, Inc. ("ISC") + * Copyright (C) 2004-2007, 2009, 2011 Internet Systems Consortium, Inc. ("ISC") * Copyright (C) 1999-2003 Internet Software Consortium. * * Permission to use, copy, modify, and/or distribute this software for any @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: log.c,v 1.94.332.5 2009-02-16 02:04:05 marka Exp $ */ +/* $Id: log.c,v 1.94.332.7 2011-03-12 04:57:28 tbox Exp $ */ /*! \file * \author Principal Authors: DCL */ @@ -1342,9 +1342,10 @@ isc_log_open(isc_logchannel_t *channel) { (FILE_MAXSIZE(channel) > 0 && statbuf.st_size >= FILE_MAXSIZE(channel))) roll = regular_file; - } else if (errno == ENOENT) + } else if (errno == ENOENT) { regular_file = ISC_TRUE; - else + POST(regular_file); + } else result = ISC_R_INVALIDFILE; /* |