diff options
author | Mike Frysinger <vapier@gentoo.org> | 2009-03-31 06:47:57 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2009-03-31 07:14:56 -0400 |
commit | e67d07029af457a1387af6b151cfaff394b1ed43 (patch) | |
tree | fb77dc6650659a4318b0d73bed0943007bc933ec /libsandbox/libsandbox.c | |
parent | tests: have git bisector setup sandbox env (diff) | |
download | sandbox-e67d07029af457a1387af6b151cfaff394b1ed43.tar.gz sandbox-e67d07029af457a1387af6b151cfaff394b1ed43.tar.bz2 sandbox-e67d07029af457a1387af6b151cfaff394b1ed43.zip |
libsandbox: fix regression during merge of tracing code
Looks like I made a typo when adding support for ptrace.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'libsandbox/libsandbox.c')
-rw-r--r-- | libsandbox/libsandbox.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libsandbox/libsandbox.c b/libsandbox/libsandbox.c index baedc55..4bd789d 100644 --- a/libsandbox/libsandbox.c +++ b/libsandbox/libsandbox.c @@ -228,9 +228,9 @@ static char *resolve_path(const char *path, int follow_link) /* If not, then check if we can resolve the * parent directory */ if (trace_pid) - ret = erealpath(path, filtered_path); + ret = erealpath(dname, filtered_path); else - ret = realpath(path, filtered_path); + ret = realpath(dname, filtered_path); if (!ret) { /* Fall back to canonicalize */ if (-1 == canonicalize(path, filtered_path)) { |