From db4e4aa2e429a070f30c5795300a77312144bc8f Mon Sep 17 00:00:00 2001 From: Thomas Markwalder Date: Fri, 12 Jan 2018 10:41:37 -0500 Subject: [master] Fixed relative file name crash Merges in rt46957 --- server/dhcpd.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'server/dhcpd.c') diff --git a/server/dhcpd.c b/server/dhcpd.c index 4ac8bd75..55ffae70 100644 --- a/server/dhcpd.c +++ b/server/dhcpd.c @@ -607,11 +607,7 @@ main(int argc, char **argv) { * to be reopened after chdir() has been called */ if (have_dhcpd_db && path_dhcpd_db[0] != '/') { - const char *path = path_dhcpd_db; - path_dhcpd_db = realpath(path_dhcpd_db, NULL); - if (path_dhcpd_db == NULL) - log_fatal("Failed to get realpath for %s: %s", path, - strerror(errno)); + path_dhcpd_db = absolute_path(path_dhcpd_db); } if (!quiet) { -- cgit v1.2.1