-/* $OpenBSD: calendar.c,v 1.31 2015/04/18 18:28:37 deraadt Exp $ */
+/* $OpenBSD: calendar.c,v 1.32 2015/10/23 11:43:16 zhuk Exp $ */
/*
* Copyright (c) 1989, 1993, 1994
if (acstat) {
if (chdir(pw->pw_dir) ||
stat(calendarFile, &sbuf) != 0 ||
- chdir(calendarHome) ||
+ chdir(calendarHome) ||
stat(calendarNoMail, &sbuf) == 0 ||
stat(calendarFile, &sbuf) != 0)
exit(0);
-/* $OpenBSD: day.c,v 1.29 2015/03/17 19:31:30 millert Exp $ */
+/* $OpenBSD: day.c,v 1.30 2015/10/23 11:43:16 zhuk Exp $ */
/*
* Copyright (c) 1989, 1993, 1994
/* adjust bodun rate */
if (bodun && !bodun_always)
bodun = !arc4random_uniform(3);
-
+
/* Easter or Easter depending days */
if (flags & F_SPECIAL)
vwd = v1;
-/* $OpenBSD: io.c,v 1.40 2015/10/23 11:01:30 zhuk Exp $ */
+/* $OpenBSD: io.c,v 1.41 2015/10/23 11:43:16 zhuk Exp $ */
/*
* Copyright (c) 1989, 1993, 1994
var = 0;
if (printing) {
struct match *foo;
-
+
ev1 = NULL;
while (m) {
cur_evt = malloc(sizeof(struct event));
if (cur_evt == NULL)
err(1, NULL);
-
+
cur_evt->when = m->when;
snprintf(cur_evt->print_date,
sizeof(cur_evt->print_date), "%s%c",
* number of special events. */
break;
}
- *flags |= F_SPECIAL;
+ *flags |= F_SPECIAL;
}
if (!(*flags & F_SPECIAL)) {
/* undefined rest */
(void)close(pdes[1]);
}
(void)close(pdes[0]);
- /*
+ /*
* Set stderr to /dev/null. Necessary so that cron does not
* wait for cpp to finish if it's running calendar -a.
*/