diff options
author | 2002-07-10 07:05:38 +0000 | |
---|---|---|
committer | 2002-07-10 07:05:38 +0000 | |
commit | 846ce110082cd1f44a782d5f4e2d7ab4b9bccd66 (patch) | |
tree | 140046ef1d06937cfa4d2c3cbccfc70fe32eef07 | |
parent | do not close fds in daemon. (diff) | |
download | wireguard-openbsd-846ce110082cd1f44a782d5f4e2d7ab4b9bccd66.tar.xz wireguard-openbsd-846ce110082cd1f44a782d5f4e2d7ab4b9bccd66.zip |
add fchmod translation
-rw-r--r-- | bin/systrace/systrace.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/systrace/systrace.c b/bin/systrace/systrace.c index f9870c8850d..a80944e1733 100644 --- a/bin/systrace/systrace.c +++ b/bin/systrace/systrace.c @@ -1,4 +1,4 @@ -/* $OpenBSD: systrace.c,v 1.23 2002/07/10 07:05:02 provos Exp $ */ +/* $OpenBSD: systrace.c,v 1.24 2002/07/10 07:05:38 provos Exp $ */ /* * Copyright 2002 Niels Provos <provos@citi.umich.edu> * All rights reserved. @@ -371,6 +371,9 @@ systrace_initcb(void) X(intercept_register_sccb("native", "chmod", trans_cb, NULL)); intercept_register_transfn("native", "chmod", 0); intercept_register_translation("native", "chmod", 1, &modeflags); + X(intercept_register_sccb("native", "fchmod", trans_cb, NULL)); + intercept_register_translation("native", "fchmod", 0, &fdt); + intercept_register_translation("native", "fchmod", 1, &modeflags); X(intercept_register_sccb("native", "readlink", trans_cb, NULL)); tl = intercept_register_translink("native", "readlink", 0); alias = systrace_new_alias("native", "readlink", "native", "fsread"); |