summaryrefslogtreecommitdiff
path: root/usr/src/cmd/cron
diff options
context:
space:
mode:
authorcasper <none@none>2005-11-09 11:19:56 -0800
committercasper <none@none>2005-11-09 11:19:56 -0800
commit4bc0a2ef2b7ba50a7a717e7ddbf31472ad28e358 (patch)
tree8076ef765d7019096fce872c8359a5345dee3160 /usr/src/cmd/cron
parent205d86ae4bc9e661871ff365f59324d8c9b0108a (diff)
downloadillumos-joyent-4bc0a2ef2b7ba50a7a717e7ddbf31472ad28e358.tar.gz
6346636 expunge readdir_r uses from Solaris
6346809 S_IFxxx is not a bitmask but our programmers don't know
Diffstat (limited to 'usr/src/cmd/cron')
-rw-r--r--usr/src/cmd/cron/cron.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/cmd/cron/cron.c b/usr/src/cmd/cron/cron.c
index e87df45fef..a127f3800c 100644
--- a/usr/src/cmd/cron/cron.c
+++ b/usr/src/cmd/cron/cron.c
@@ -2376,8 +2376,8 @@ cleanup(struct runinfo *pr, int rc)
else
--p->cruncnt;
- if (!lstat(pr->outfile, &buf)) {
- if ((buf.st_mode != S_IFLNK) &&
+ if (lstat(pr->outfile, &buf) == 0) {
+ if (!S_ISLNK(buf.st_mode) &&
(buf.st_size > 0 || pr->mailwhendone)) {
/* mail user stdout and stderr */
for (;;) {