aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-08-08 09:26:22 -0400
committerNick Mathewson <nickm@torproject.org>2018-08-08 09:26:22 -0400
commit8e68fe7e1c84e4ad513cd6b0af686a51c49e55cb (patch)
tree2a749e8fe4a06bb14abe91a92d4a6f924d15ee28 /src
parent4856a6e6c4b352f04b98f7f77c70a0c33dc8c29c (diff)
parent27a2a6cb9b8a590a88c479539efae7bd31a4102f (diff)
downloadtor-8e68fe7e1c84e4ad513cd6b0af686a51c49e55cb.tar.gz
tor-8e68fe7e1c84e4ad513cd6b0af686a51c49e55cb.zip
Merge branch 'maint-0.2.9' into maint-0.3.2
Diffstat (limited to 'src')
-rw-r--r--src/common/sandbox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/sandbox.c b/src/common/sandbox.c
index 97acf894f3..e311ffaa86 100644
--- a/src/common/sandbox.c
+++ b/src/common/sandbox.c
@@ -449,7 +449,7 @@ allow_file_open(scmp_filter_ctx ctx, int use_openat, const char *file)
{
if (use_openat) {
return seccomp_rule_add_2(ctx, SCMP_ACT_ALLOW, SCMP_SYS(openat),
- SCMP_CMP_STR(0, SCMP_CMP_EQ, AT_FDCWD),
+ SCMP_CMP(0, SCMP_CMP_EQ, (unsigned int)AT_FDCWD),
SCMP_CMP_STR(1, SCMP_CMP_EQ, file));
} else {
return seccomp_rule_add_1(ctx, SCMP_ACT_ALLOW, SCMP_SYS(open),