aboutsummaryrefslogtreecommitdiff
path: root/src/common/compat.c
diff options
context:
space:
mode:
authorCristian Toader <cristian.matei.toader@gmail.com>2013-07-29 14:46:47 +0300
committerCristian Toader <cristian.matei.toader@gmail.com>2013-07-29 14:46:47 +0300
commit6d5b0367f6e0035f99570b5bb76a75322ae9a85e (patch)
tree480293232f6d1801a7b7c0f4374f953fb4319159 /src/common/compat.c
parent8f9d3da19447f138bc451937b20537810926ff30 (diff)
downloadtor-6d5b0367f6e0035f99570b5bb76a75322ae9a85e.tar
tor-6d5b0367f6e0035f99570b5bb76a75322ae9a85e.tar.gz
Changes as suggested by nickm
- char* to const char* and name refactoring - workaround for accept4 syscall
Diffstat (limited to 'src/common/compat.c')
-rw-r--r--src/common/compat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/compat.c b/src/common/compat.c
index 5b153674e..47b65d356 100644
--- a/src/common/compat.c
+++ b/src/common/compat.c
@@ -125,7 +125,7 @@ tor_open_cloexec(const char *path, int flags, unsigned mode)
{
int fd;
#ifdef O_CLOEXEC
- path = get_prot_param(path);
+ path = sandbox_intern_string(path);
fd = open(path, flags|O_CLOEXEC, mode);
if (fd >= 0)
return fd;