blob: 599675c1b0ed6bb06b696117216ca9ef33640ae3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
--- src/config_parser.c.orig 2021-10-19 06:37:59 UTC
+++ src/config_parser.c
@@ -864,7 +864,7 @@ parse_file_result_t parse_file(struct parser_ctx *ctx,
FILE *fstr;
char buffer[4096], key[512], value[4096], *continuation = NULL;
- char *old_dir = get_current_dir_name();
+ char *old_dir = getwd(NULL);
char *dir = NULL;
/* dirname(3) might modify the buffer, so make a copy: */
char *dirbuf = sstrdup(f);
|