],
[0])
-AC_FIND_FUNC_NO_LIBS(dns_search,,
+AC_FIND_FUNC(dns_search, resolv,
[
#ifdef HAVE_DNS_H
#include <dns.h>
#endif
],
-[0,0,0,0,0,0,0,0])
+[0])
AC_FIND_FUNC(dn_expand, resolv,
CFRelease(url);
if (s == NULL) {
heim_clear_error_message(context);
+ if (path[0] != '/') {
+ char cwd[PATH_MAX];
+ if (getcwd(cwd, sizeof(cwd)) == NULL)
+ return errno;
+ }
return ENOMEM;
}
{
const char *str;
char *newfname = NULL;
+ char *exp_fname = NULL;
unsigned lineno = 0;
heim_error_code ret = 0;
struct fileptr f;
fname = newfname;
}
+ /*
+ * Note that heim_config_parse_dir_multi() doesn't want tokens
+ * expanded here, but it happens to limit the names of files to
+ * include such that there can be no tokens to expand. Don't
+ * add token expansion for tokens using _, say.
+ */
+ ret = heim_expand_path_tokens(context, fname, 1, &exp_fname, NULL);
+ if (ret)
+ goto out;
+ free(newfname);
+ fname = newfname = exp_fname;
+
+
if (is_plist_file(fname)) {
#if defined(HAVE_FRAMEWORK_COREFOUNDATION)
ret = parse_plist_config(context, fname, res);
goto out;
#endif
} else {
- char *exp_fname = NULL;
-
- /*
- * Note that heim_config_parse_dir_multi() doesn't want tokens
- * expanded here, but it happens to limit the names of files to
- * include such that there can be no tokens to expand. Don't
- * add token expansion for tokens using _, say.
- */
- ret = heim_expand_path_tokens(context, fname, 1, &exp_fname, NULL);
- if (ret)
- goto out;
- free(newfname);
- fname = newfname = exp_fname;
-
f.context = context;
f.f = fopen(fname, "r");
f.s = NULL;
parse_reply_test_SOURCES = parse_reply-test.c resolve.c
parse_reply_test_CFLAGS = -DTEST_RESOLVE
+parse_reply_test_LDFLAGS = -lresolv
test_readenv_SOURCES = test-readenv.c test-mem.c
test_auxval_SOURCES = test-auxval.c