summaryrefslogtreecommitdiff
path: root/bin/systrace
diff options
context:
space:
mode:
authorNikolay Sturm <sturm@cvs.openbsd.org>2006-03-25 10:39:11 +0000
committerNikolay Sturm <sturm@cvs.openbsd.org>2006-03-25 10:39:11 +0000
commit2868c34ca974bc54e9e25956d0ba5bc739ba4d28 (patch)
tree7c6f4b4d3c5ee629eb66feb8548cdeaf986d91e2 /bin/systrace
parent943608fec578708a0dd6fd57216e77ccf80829a3 (diff)
only resolve symlinks in the dirname of rename()'s arguments,
but not in the filename ok provos, no objections from tedu (who doesn't use systrace)
Diffstat (limited to 'bin/systrace')
-rw-r--r--bin/systrace/register.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/systrace/register.c b/bin/systrace/register.c
index c8bb5d84ef2..8a4d4d58a95 100644
--- a/bin/systrace/register.c
+++ b/bin/systrace/register.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: register.c,v 1.17 2006/03/12 20:56:10 sturm Exp $ */
+/* $OpenBSD: register.c,v 1.18 2006/03/25 10:39:10 sturm Exp $ */
/*
* Copyright 2002 Niels Provos <provos@citi.umich.edu>
* All rights reserved.
@@ -147,7 +147,8 @@ systrace_initcb(void)
X(intercept_register_sccb("native", "rename", trans_cb, NULL));
intercept_register_translation("native", "rename", 0,
&ic_translate_unlinkname);
- intercept_register_transfn("native", "rename", 1);
+ intercept_register_translation("native", "rename", 1,
+ &ic_translate_unlinkname);
X(intercept_register_sccb("native", "symlink", trans_cb, NULL));
intercept_register_transstring("native", "symlink", 0);
intercept_register_transfn("native", "symlink", 1);