ref: 98b1ff3240e5d4b83740773b08f072f15ed03624
parent: c95371953ad70559d21fe3492721e7bc8541b4f4
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Mar 13 23:11:43 EDT 2016
truss: fix "bad string" error due to missing ape _nsec() syscall
--- a/sys/lib/acid/truss
+++ b/sys/lib/acid/truss
@@ -157,8 +157,11 @@
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") thenpattern = "_" + pattern;
return _addressof(pattern);
--
⑨