=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/vacation/vacation.c,v retrieving revision 1.32 retrieving revision 1.33 diff -c -r1.32 -r1.33 *** src/usr.bin/vacation/vacation.c 2009/10/27 23:59:46 1.32 --- src/usr.bin/vacation/vacation.c 2013/04/19 14:35:40 1.33 *************** *** 1,4 **** ! /* $OpenBSD: vacation.c,v 1.32 2009/10/27 23:59:46 deraadt Exp $ */ /* $NetBSD: vacation.c,v 1.7 1995/04/29 05:58:27 cgd Exp $ */ /* --- 1,4 ---- ! /* $OpenBSD: vacation.c,v 1.33 2013/04/19 14:35:40 okan Exp $ */ /* $NetBSD: vacation.c,v 1.7 1995/04/29 05:58:27 cgd Exp $ */ /* *************** *** 114,120 **** if (interval < 0) usage(); } else ! interval = (time_t)LONG_MAX; /* XXX */ break; default: usage(); --- 114,120 ---- if (interval < 0) usage(); } else ! interval = 0; /* one time only */ break; default: usage(); *************** *** 401,407 **** key.size = strlen(from); if (!(db->get)(db, &key, &data, 0)) { bcopy(data.data, &then, sizeof(then)); ! if (next == (time_t)LONG_MAX || /* XXX */ then + next > time(NULL)) return(1); } --- 401,407 ---- key.size = strlen(from); if (!(db->get)(db, &key, &data, 0)) { bcopy(data.data, &then, sizeof(then)); ! if (next == 0 || then + next > time(NULL)) return(1); }