aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/libutil/util.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/libutil/util.c b/src/libutil/util.c
index 6893172c9..06188f34e 100644
--- a/src/libutil/util.c
+++ b/src/libutil/util.c
@@ -2102,13 +2102,6 @@ rspamd_file_xopen (const char *fname, int oflags, guint mode)
{
struct stat sb;
int fd;
- char *rp, rp_buf[PATH_MAX];
-
- rp = realpath (fname, rp_buf);
-
- if (rp == NULL) {
- return -1;
- }
#ifdef HAVE_ONOFOLLOW
fd = open (fname, oflags | O_NOFOLLOW, mode);