aboutsummaryrefslogtreecommitdiff
path: root/src/common/compat.c
diff options
context:
space:
mode:
authorCristian Toader <cristian.matei.toader@gmail.com>2013-07-23 14:01:53 +0300
committerCristian Toader <cristian.matei.toader@gmail.com>2013-07-23 14:01:53 +0300
commitc15d09293bdfc90e94ef34369205cc6db9882607 (patch)
tree731d7823614074c90ee0bbe2d70c1a7d4860a177 /src/common/compat.c
parent8b12170f23f4042610b3574b8edf3794fef245b4 (diff)
downloadtor-c15d09293bdfc90e94ef34369205cc6db9882607.tar.gz
tor-c15d09293bdfc90e94ef34369205cc6db9882607.zip
added experimental support for open syscall path param
Diffstat (limited to 'src/common/compat.c')
-rw-r--r--src/common/compat.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/compat.c b/src/common/compat.c
index 69eb0643d0..5b153674ef 100644
--- a/src/common/compat.c
+++ b/src/common/compat.c
@@ -125,6 +125,7 @@ tor_open_cloexec(const char *path, int flags, unsigned mode)
{
int fd;
#ifdef O_CLOEXEC
+ path = get_prot_param(path);
fd = open(path, flags|O_CLOEXEC, mode);
if (fd >= 0)
return fd;