diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-02-02 23:54:37 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-02-02 23:54:37 +0000 |
commit | 11d091cf61a6eb9e4b396f5e387441240957a320 (patch) | |
tree | 851542f5e8f0aca34457d41d0b0ad5b74241d11c | |
parent | 63f8b66c21b2731408f34d7ab4a2d09d2e41cc2f (diff) | |
download | rspamd-11d091cf61a6eb9e4b396f5e387441240957a320.tar.gz rspamd-11d091cf61a6eb9e4b396f5e387441240957a320.zip |
Remove realpath call
-rw-r--r-- | src/libutil/util.c | 7 |
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); |