summaryrefslogtreecommitdiff
path: root/usr/src/lib/libresolv2/common/isc/logging.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/lib/libresolv2/common/isc/logging.c')
-rw-r--r--usr/src/lib/libresolv2/common/isc/logging.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/lib/libresolv2/common/isc/logging.c b/usr/src/lib/libresolv2/common/isc/logging.c
index 13fc49259d..48ce0859c9 100644
--- a/usr/src/lib/libresolv2/common/isc/logging.c
+++ b/usr/src/lib/libresolv2/common/isc/logging.c
@@ -1,5 +1,5 @@
/*
- * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -121,7 +121,7 @@ log_open_stream(log_channel chan) {
}
regular = 1;
} else
- regular = (sb.st_mode & S_IFREG);
+ regular = S_ISREG(sb.st_mode);
if (chan->out.file.versions) {
if (!regular) {