From luke@REDACTED Tue Jan 13 14:39:43 2004 From: luke@REDACTED (Luke Gorrie) Date: Tue, 13 Jan 2004 14:39:43 +0100 Subject: snmp_compile_lib.erl patch Message-ID: Ahoy, This patch lets the SNMP compiler handle MIBs with no object definitions. I had to process a MIB with only textual conventions. Index: snmp_compile_lib.erl =================================================================== RCS file: /home/share/erlang/cvsroot/otp/lib/snmp/src/snmp_compile_lib.erl,v retrieving revision 1.5 diff -u -u -r1.5 snmp_compile_lib.erl --- snmp_compile_lib.erl 3 Sep 2003 13:54:14 -0000 1.5 +++ snmp_compile_lib.erl 7 Jan 2004 15:04:39 -0000 @@ -1475,8 +1475,13 @@ resolve_oids(OidEts) -> - [{_, _, _, _, RootChildren}] = ets:lookup(OidEts, root), - resolve_oids(RootChildren, [], OidEts). + case ets:lookup(OidEts, root) of + [{_, _, _, _, RootChildren}] -> + resolve_oids(RootChildren, [], OidEts); + [] -> + %% No OIDs registered + ok + end. resolve_oids([Name | T], FatherOid, OidEts) -> {MyOid, MyChildren, MyLine} = From thomas@REDACTED Wed Jan 14 17:03:28 2004 From: thomas@REDACTED (Thomas Lange) Date: Wed, 14 Jan 2004 17:03:28 +0100 Subject: Bug in inets (httpd) Message-ID: <40056850.108@corelatus.se> The "Last-modified" field in the http response is not converted to GMT. Instead, the local time is used, but tagged as GMT. The "Date:" field is correct, but file appears to be modified in the future. This causes Mozilla to do funny stuff. In my test, Mozilla sets expire date to year 2017(!). Tested with debian/linux + R9C-0, Mozilla 1.5 --------------- Patch attached for R9C-0 * Assumes that all calls to rfc1123_date/1 are with local time. * Assumes that all platforms return fileinfo in local time. Works on linux/debian. /Thomas -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: diff_httpd_util URL: