Branch: Tag:

2004-09-07

2004-09-07 08:28:39 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Stdio.read_bytes() can throw errors since a few days back...

Rev: lib/modules/Calendar.pmod/Timezone.pmod:1.33

87: Inside #if 1
   }      // Linux RedHat -  if ( (s=Stdio.read_bytes("/etc/sysconfig/clock")) ) +  if (Stdio.is_dir("/etc/sysconfig/.") && +  (s = Stdio.read_bytes("/etc/sysconfig/clock")) )    {    sscanf(s,"%*sZONE=\"%s\"",s);    tz=`[](s);
871:    FIXID(a[1]),-a[0],a[2]);    else // simple timezone    return sprintf( -  "Rules.Timezone(%d,%O)", +  "Rule.Timezone(%d,%O)",    -(roff+a[0]),a[2]);    }   
959:    else a[6]=rname[a[4]]="tz"+n++;       res+=({ "inherit TZHistory;\n" -  "Rules.Timezone ", +  "Rule.Timezone ",    sort(values(rname))*",",";\n" -  "Rules.Timezone whatrule(int ux)\n" +  "Rule.Timezone whatrule(int ux)\n"    "{\n" });       foreach (rules,array a)
1061:    (["TZrules":Dummymodule(find_rule),    "TZRules":TZRules,    "TZHistory":TZHistory, -  "Rules":.Rule, +  "Rule":.Rule,    "ZEROSHIFT":({0,0,0,""})    ]);