From: Vsevolod Stakhov Date: Tue, 2 Feb 2016 23:54:37 +0000 (+0000) Subject: Remove realpath call X-Git-Tag: 1.1.3~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=11d091cf61a6eb9e4b396f5e387441240957a320;p=thirdparty%2Frspamd.git Remove realpath call --- diff --git a/src/libutil/util.c b/src/libutil/util.c index 6893172c92..06188f34e0 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);