home *** CD-ROM | disk | FTP | other *** search
/ minnie.tuhs.org / unixen.tar / unixen / PDP-11 / Bug_Fixes / Net.v7bugs / 0109 < prev   
Encoding:
Text File  |  1982-05-11  |  572 b   |  19 lines

  1. Autzoo.1656
  2. net.bugs.v7
  3. utzoo!henry
  4. Tue May 11 18:46:38 1982
  5. uucico time check wraparound
  6. The time check ("is it OK to call X now?") in uucico does not allow for
  7. the possibility that the time range might wrap around (e.g. "2300-0800";
  8. we have some odd long-distance discount schedules here).  It takes such
  9. ranges to be "never".  To fix this, make the following change near the
  10. end of conn.c/ifdate():
  11.  
  12.     <     if (tn >= tl && tn <= th)
  13.     <        return(1);
  14.     ---
  15.     >     if (tl <= th && (tl <= tn && tn <= th))
  16.     >         return(1);
  17.     >     if (tl >= th && (tl <= tn || tn <= th))
  18.     >        return(1);
  19.