public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download mbox.gz: |
* [gentoo-commits] proj/sandbox:master commit in: libsandbox/
@ 2016-03-29 12:24 99% Mike Frysinger
  0 siblings, 0 replies; 1+ results
From: Mike Frysinger @ 2016-03-29 12:24 UTC (permalink / raw
  To: gentoo-commits

commit:     9fabf8eb94d8866c4f039462d1bdd06cdb0e22eb
Author:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Tue Mar 29 09:03:13 2016 +0000
Commit:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Tue Mar 29 09:03:13 2016 +0000
URL:        https://gitweb.gentoo.org/proj/sandbox.git/commit/?id=9fabf8eb

libsandbox: make check_syscall ISE a little more useful

Showing just the resolved paths isn't too helpful when they're both
NULL.  Also include the failing func & original file path.

URL: https://bugs.gentoo.org/553092
Signed-off-by: Mike Frysinger <vapier <AT> gentoo.org>

 libsandbox/libsandbox.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libsandbox/libsandbox.c b/libsandbox/libsandbox.c
index 7555862..cbe1aa1 100644
--- a/libsandbox/libsandbox.c
+++ b/libsandbox/libsandbox.c
@@ -985,8 +985,8 @@ static int check_syscall(sbcontext_t *sbcontext, int sb_nr, const char *func,
 		return 2;
 
 	/* If we get here, something bad happened */
-	sb_ebort("ISE:\n\tabs_path: %s\n\tres_path: %s\n",
-		absolute_path, resolved_path);
+	sb_ebort("ISE: %s(%s)\n\tabs_path: %s\n\tres_path: %s\n",
+		func, file, absolute_path, resolved_path);
 }
 
 bool is_sandbox_on(void)


^ permalink raw reply related	[relevance 99%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2016-03-29 12:24 99% [gentoo-commits] proj/sandbox:master commit in: libsandbox/ Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox