Article View: net.bugs.v7
Article #67uucico time check wraparound
From: utzoohenry
Date: Tue, 11 May 1982 18:46
Date: Tue, 11 May 1982 18:46
13 lines
671 bytes
671 bytes
The time check ("is it OK to call X now?") in uucico does not allow for
the possibility that the time range might wrap around (e.g. "2300-0800";
we have some odd long-distance discount schedules here). It takes such
ranges to be "never". To fix this, make the following change near the
end of conn.c/ifdate():
< if (tn >= tl && tn <= th)
< return(1);
---
> if (tl <= th && (tl <= tn && tn <= th))
> return(1);
> if (tl >= th && (tl <= tn || tn <= th))
> return(1);
Technical Details
Message-ID:
<anews.Autzoo.1656>Path:
arc1-ca.pugleaf.net!utzoo!henryShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!henry From: utzoo!henry Newsgroups: net.bugs.v7 Subject: uucico time check wraparound Date: Tue, 11 May 1982 18:46:38 +0000 Message-ID: <anews.Autzoo.1656>