summaryrefslogtreecommitdiff
path: root/usr/src/cmd/auditreduce/option.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/cmd/auditreduce/option.c')
-rw-r--r--usr/src/cmd/auditreduce/option.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/cmd/auditreduce/option.c b/usr/src/cmd/auditreduce/option.c
index 450b0c5add..181a383ad4 100644
--- a/usr/src/cmd/auditreduce/option.c
+++ b/usr/src/cmd/auditreduce/option.c
@@ -887,7 +887,7 @@ proc_file(char *fname, int mode)
if (stat(fname, &stat_buf)) {
return (0);
}
- if ((stat_buf.st_mode & S_IFREG) == 0)
+ if (!S_ISREG(stat_buf.st_mode))
return (0);
/*
* Allocate a new fcb to hold fcb and full filename.