diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2002-08-28 03:30:28 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2002-08-28 03:30:28 +0000 |
commit | 279469bd3c993a0b6cb7fa358976febb29ced99c (patch) | |
tree | 5298e40915e37c9a3f7c8f27d96e58371fa25553 /bin/systrace/openbsd-syscalls.c | |
parent | 3dfee6456d2c772e57a649ee455e7027e4ddda89 (diff) |
fix systrace with chroot. from provos
Diffstat (limited to 'bin/systrace/openbsd-syscalls.c')
-rw-r--r-- | bin/systrace/openbsd-syscalls.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/systrace/openbsd-syscalls.c b/bin/systrace/openbsd-syscalls.c index 4251625180f..24e223d08dc 100644 --- a/bin/systrace/openbsd-syscalls.c +++ b/bin/systrace/openbsd-syscalls.c @@ -1,4 +1,4 @@ -/* $OpenBSD: openbsd-syscalls.c,v 1.11 2002/08/07 21:27:15 provos Exp $ */ +/* $OpenBSD: openbsd-syscalls.c,v 1.12 2002/08/28 03:30:27 itojun Exp $ */ /* * Copyright 2002 Niels Provos <provos@citi.umich.edu> * All rights reserved. @@ -487,6 +487,9 @@ obsd_getcwd(int fd, pid_t pid, char *buf, size_t size) return (NULL); path = getcwd(buf, size); + if (path == NULL) + obsd_restcwd(fd); + return (path); } |