diff options
author | 2006-03-25 10:39:10 +0000 | |
---|---|---|
committer | 2006-03-25 10:39:10 +0000 | |
commit | a22e3310a671b470e1cad15d083bcd41d36907b0 (patch) | |
tree | 17f784974a8e1b49315a69820967a83876ec5eab | |
parent | Highlight that running an OSPF router without forwarding enabled is (diff) | |
download | wireguard-openbsd-a22e3310a671b470e1cad15d083bcd41d36907b0.tar.xz wireguard-openbsd-a22e3310a671b470e1cad15d083bcd41d36907b0.zip |
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)
-rw-r--r-- | bin/systrace/register.c | 5 |
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); |