1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-16 00:03:45 +00:00

Added work around for awk change in Ubuntu 20

This commit is contained in:
Bryan Roe
2022-03-29 12:09:06 -07:00
parent 6267c42931
commit cfb4f649b4
3 changed files with 5 additions and 5 deletions

File diff suppressed because one or more lines are too long

View File

@@ -572,7 +572,7 @@ function monitorinfo()
child.stdin.write(' {');
child.stdin.write(' display=$4;');
child.stdin.write(' }');
child.stdin.write(' match($0, /-auth .+/,arg);');
child.stdin.write(' match($0, /-auth .+/);');
child.stdin.write(' _auth = substr($0,RSTART+6,RLENGTH-6);');
child.stdin.write(' if($1=="' + consoleuid + '" && _auth!="")');
child.stdin.write(" {");

View File

@@ -819,9 +819,9 @@ function UserSessions()
child.stdin.write(' split(lines[i], tok, " ");');
child.stdin.write(' if((tok[3])=="Xvfb")');
child.stdin.write(' {');
child.stdin.write(' match(lines[i], /:[0-9]+/,arg);');
child.stdin.write(' match(lines[i], /:[0-9]+/);');
child.stdin.write(' _display = substr(lines[i],RSTART,RLENGTH);');
child.stdin.write(' match(lines[i], /-auth .+/,arg);');
child.stdin.write(' match(lines[i], /-auth .+/);');
child.stdin.write(' _auth = substr(lines[i],RSTART+6,RLENGTH-6);');
child.stdin.write(' printf("%s{\\"uid\\": %s, \\"display\\": \\"%s\\", \\"xauth\\": \\"%s\\", \\"pid\\": %s}", del, tok[1], _display, _auth, tok[2]);');
child.stdin.write(' del=",";');