Index: ChangeLog =================================================================== RCS file: /home/cvsroot/gentoo-src/portage/src/sandbox-1.1/ChangeLog,v retrieving revision 1.26 diff -u -p -r1.26 ChangeLog --- ChangeLog 14 Oct 2003 20:24:39 -0000 1.26 +++ ChangeLog 2 Nov 2003 17:32:57 -0000 @@ -2,11 +2,16 @@ # Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL v2 # $Header: /home/cvsroot/gentoo-src/portage/src/sandbox-1.1/ChangeLog,v 1.26 2003/10/14 20:24:39 azarah Exp $ + 02 Nov 2003; Martin Schlemmer libsandbox.c : + If 'file' passed to before_syscall(const char *func, const char *file) is + invalid, we should set errno to ENOENT, and not EINVAL. This should + close bug #32238. + 14 Oct 2003; Martin Schlemmer libsandbox.c : Fix a bug that occurs mainly on 64bit arch, where the file passed to the functions we wrap, is invalid, and then cause canonicalize to pass garbage to before_syscall(), thanks to great detective work from - Andrea Luzzardi . + Andrea Luzzardi (bug #29846). 13 Oct 2003; Martin Schlemmer create-localdecls : Add a uClibc detection patch from Peter S. Mazinger . Index: libsandbox.c =================================================================== RCS file: /home/cvsroot/gentoo-src/portage/src/sandbox-1.1/libsandbox.c,v retrieving revision 1.13 diff -u -p -r1.13 libsandbox.c --- libsandbox.c 14 Oct 2003 20:24:39 -0000 1.13 +++ libsandbox.c 2 Nov 2003 17:32:58 -0000 @@ -1286,7 +1286,8 @@ before_syscall(const char *func, const c sbcontext_t sbcontext; if (!strlen(file)) { - errno = EINVAL; + /* The file/directory does not exist */ + errno = ENOENT; return 0; }