From 6d5b0367f6e0035f99570b5bb76a75322ae9a85e Mon Sep 17 00:00:00 2001 From: Cristian Toader Date: Mon, 29 Jul 2013 14:46:47 +0300 Subject: Changes as suggested by nickm - char* to const char* and name refactoring - workaround for accept4 syscall --- src/common/compat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/common/compat.c') diff --git a/src/common/compat.c b/src/common/compat.c index 5b153674ef..47b65d3560 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; -- cgit v1.2.3-54-g00ecf