Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:18
erlang
0418-kernel-Fix-setting-of-non-existing-file-as...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0418-kernel-Fix-setting-of-non-existing-file-as-inet_db-r.patch of Package erlang
From f92fc026fe6f34bc869a5166a2726f890986929a Mon Sep 17 00:00:00 2001 From: Lukas Larsson <lukas@erlang.org> Date: Mon, 6 May 2019 11:05:21 +0200 Subject: [PATCH] kernel: Fix setting of non-existing file as inet_db resolv_conf This was broken in 7c63a98c28d477. --- lib/kernel/src/inet_db.erl | 3 ++- lib/kernel/test/inet_res_SUITE.erl | 7 ++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/kernel/src/inet_db.erl b/lib/kernel/src/inet_db.erl index 3f5a2ea5ee..630ef5d2f7 100644 --- a/lib/kernel/src/inet_db.erl +++ b/lib/kernel/src/inet_db.erl @@ -1226,7 +1226,8 @@ handle_set_file(Option, Fname, TagTm, TagInfo, ParseFun, From, _ -> ets:insert(Db, {TagInfo, undefined}), TimeZero = - (?RES_FILE_UPDATE_TM + 1), % Early enough - ets:insert(Db, {TagTm, TimeZero}) + ets:insert(Db, {TagTm, TimeZero}), + <<>> end, handle_set_file(ParseFun, Bin, From, State); false -> {reply,error,State} -- 2.16.4
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor