summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2016-03-14 03:11:43 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2016-03-14 03:11:43 +0100
commite485362b0bde40debee791afaf4d9dc8585d0acf (patch)
treecbee5b13f6d52f1cb0698fff503c015bedd3b0c7 /sys
parent6974a1ecb6474800b19113d1b83c23a2d275c88b (diff)
truss: fix "bad string" error due to missing ape _nsec() syscall
Diffstat (limited to 'sys')
-rw-r--r--sys/lib/acid/truss5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/lib/acid/truss b/sys/lib/acid/truss
index df1c9acdd..86070088d 100644
--- a/sys/lib/acid/truss
+++ b/sys/lib/acid/truss
@@ -157,8 +157,11 @@ trussapecalls = {
defn addressof(pattern) {
// translate to ape system calls if we have an ape binary
- if _addressof("_EXITS") != 0 then
+ if _addressof("_EXITS") != 0 then {
pattern = trussapecalls[match(pattern, trusscalls)];
+ if pattern == {} then
+ return 0;
+ }
if regexp("(seek|_SEEK)", pattern) && (objtype=="amd64" || objtype == "power64" || objtype == "alpha") then
pattern = "_" + pattern;
return _addressof(pattern);