Fix execsnoop by changing exece and exec to be FreeBSD's execve.

Reference sh in the correct location (/bin/sh)
This commit is contained in:
George V. Neville-Neil 2012-05-14 21:59:47 +00:00
parent 44f24c137a
commit 562490e2da
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=235455

View File

@ -1,4 +1,4 @@
#!/usr/bin/sh
#!/bin/sh
#
# execsnoop - snoop process execution as it occurs.
# Written using DTrace (Solaris 10 3/05).
@ -155,7 +155,7 @@ fi
/*
* Print exec event
*/
syscall::exec:return, syscall::exece:return
syscall::execve:return
/(FILTER == 0) || (OPT_cmd == 1 && COMMAND == execname)/
{
/* print optional fields */