X-Git-Url: https://git.sesse.net/?p=itkacl;a=blobdiff_plain;f=itkacl-2.1%2Fitkacl.c;h=eda3ebb70dbe00694a87d3d23f0d1abe9b5717e8;hp=2795cf4d6885899058ab740cb436997a9276db5d;hb=528f44e38f8d0e7924abbf3606382f22fd2ad296;hpb=b53d275766bb14e5d2e6d06ff306878b311c8123 diff --git a/itkacl-2.1/itkacl.c b/itkacl-2.1/itkacl.c index 2795cf4..eda3ebb 100644 --- a/itkacl-2.1/itkacl.c +++ b/itkacl-2.1/itkacl.c @@ -195,22 +195,22 @@ int itkacl_check(const char * const realm, const char * const user, return -1; } - ret = ub_ctx_resolvconf(ctx, "/etc/resolv.conf"); + ret = ub_ctx_resolvconf(ctx, NULL); if (ret != 0) { if (errmsg) snprintf(errmsg, errmsg_size, - "Host name lookup failure: Could not read /etc/resolv.conf " + "Host name lookup failure: Could not read resolv.conf " "(resolver error: %s) (system error: %s)", ub_strerror(ret), strerror(errno)); ub_ctx_delete(ctx); return -1; } - ret = ub_ctx_hosts(ctx, "/etc/hosts"); + ret = ub_ctx_hosts(ctx, NULL); if (ret != 0) { if (errmsg) snprintf(errmsg, errmsg_size, - "Host name lookup failure: Could not read /etc/hosts " + "Host name lookup failure: Could not read hosts file " "(resolver error: %s) (system error: %s)", ub_strerror(ret), strerror(errno)); ub_ctx_delete(ctx);