summaryrefslogtreecommitdiff
path: root/src/path.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/path.c')
-rw-r--r--src/path.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/path.c b/src/path.c
index 6ff5412..949065b 100644
--- a/src/path.c
+++ b/src/path.c
@@ -198,18 +198,13 @@ path_real_done:
char *path_real(const char *orig) {
int links = 0;
char *tmp, *ret;
- DIR *d;
if(orig == NULL)
return NULL;
- if((d = opendir(".")) == NULL)
- return NULL;
tmp = path_absolute(orig);
ret = path_real_rec(tmp, &links);
free(tmp);
- fchdir(dirfd(d));
- closedir(d);
return ret;
}