aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/util.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-02-02 23:54:37 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-02-02 23:54:37 +0000
commit11d091cf61a6eb9e4b396f5e387441240957a320 (patch)
tree851542f5e8f0aca34457d41d0b0ad5b74241d11c /src/libutil/util.c
parent63f8b66c21b2731408f34d7ab4a2d09d2e41cc2f (diff)
downloadrspamd-11d091cf61a6eb9e4b396f5e387441240957a320.tar.gz
rspamd-11d091cf61a6eb9e4b396f5e387441240957a320.zip
Remove realpath call
Diffstat (limited to 'src/libutil/util.c')
-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);