ref: e485362b0bde40debee791afaf4d9dc8585d0acf
parent: 6974a1ecb6474800b19113d1b83c23a2d275c88b
author: cinap_lenrek <[email protected]>
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") then
pattern = "_" + pattern;
return _addressof(pattern);