summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorRay Lai <ray@cvs.openbsd.org>2006-08-14 07:24:56 +0000
committerRay Lai <ray@cvs.openbsd.org>2006-08-14 07:24:56 +0000
commit773fc96f3ca23245e5c91233550ec91e39c50533 (patch)
tree84b5fcd71de002a6d0366656793be4ecbb2d4eca /bin
parentb30de10d47e395dd5106475a084a6ace3c8c5b19 (diff)
Adapt revision 1.18 change for symlink(2):
only resolve symlinks in the dirname of rename()'s arguments, but not in the filename ``looks sane to me'' sturm@, fixes espie@'s problem, ``Seems reasonable.'' provos@.
Diffstat (limited to 'bin')
-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 11b3838e9f0..83731601a7b 100644
--- a/bin/systrace/register.c
+++ b/bin/systrace/register.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: register.c,v 1.21 2006/07/02 12:34:15 sturm Exp $ */
+/* $OpenBSD: register.c,v 1.22 2006/08/14 07:24:55 ray Exp $ */
/*
* Copyright 2002 Niels Provos <provos@citi.umich.edu>
* All rights reserved.
@@ -158,7 +158,8 @@ systrace_initcb(void)
&ic_translate_unlinkname);
X(intercept_register_sccb("native", "symlink", trans_cb, NULL));
intercept_register_transstring("native", "symlink", 0);
- intercept_register_transfn("native", "symlink", 1);
+ intercept_register_translation("native", "symlink", 1,
+ &ic_translate_unlinkname);
X(intercept_register_sccb("native", "link", trans_cb, NULL));
intercept_register_transfn("native", "link", 0);
intercept_register_transfn("native", "link", 1);