--- otp_src_R9B-1.orig/lib/kernel/src/inet_config.erl 2002-10-09 16:39:22.000000000 +0200 +++ otp_src_R9B-1/lib/kernel/src/inet_config.erl 2003-06-15 01:42:55.000000000 +0200 @@ -82,8 +82,13 @@ 'bsd/os' -> load_resolv(filename:join(Etc,"irs.conf"), host_conf_bsdos); linux -> - load_resolv(filename:join(Etc,"host.conf"),host_conf_linux), - + case load_resolv(filename:join(Etc,"host.conf"),host_conf_linux) of + ok -> + ok; + _Other -> + load_resolv(filename:join(Etc,"nsswitch.conf"), nsswitch_conf) + end, + % It may be the case that the domain name was not set % because the hostname was short. But we can now look it % up and get the long name and the domain name from it. @@ -296,10 +301,12 @@ case apply(inet_parse, Func, [File,{chars,Bin}]) of {ok, Ls} -> inet_db:add_rc_list(Ls); {error, Reason} -> - error("parse error in file ~s: ~p", [File, Reason]) + error("parse error in file ~s: ~p", [File, Reason]), + {error, Reason} end; Error -> - warning("file not found ~s~n", [File]) + warning("file not found ~s~n", [File]), + Error end. %%