summaryrefslogtreecommitdiff
path: root/client/dhclient.c
diff options
context:
space:
mode:
Diffstat (limited to 'client/dhclient.c')
-rw-r--r--client/dhclient.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/client/dhclient.c b/client/dhclient.c
index ac3cdbf8..825ab00f 100644
--- a/client/dhclient.c
+++ b/client/dhclient.c
@@ -639,17 +639,11 @@ main(int argc, char **argv) {
* to be reopened after chdir() has been called
*/
if (path_dhclient_db[0] != '/') {
- const char *old_path = path_dhclient_db;
- path_dhclient_db = realpath(path_dhclient_db, NULL);
- if (path_dhclient_db == NULL)
- log_fatal("Failed to get realpath for %s: %s", old_path, strerror(errno));
+ path_dhclient_db = absolute_path(path_dhclient_db);
}
if (path_dhclient_script[0] != '/') {
- const char *old_path = path_dhclient_script;
- path_dhclient_script = realpath(path_dhclient_script, NULL);
- if (path_dhclient_script == NULL)
- log_fatal("Failed to get realpath for %s: %s", old_path, strerror(errno));
+ path_dhclient_script = absolute_path(path_dhclient_script);
}
/*