Skip to content

Instantly share code, notes, and snippets.

@jrossi
Created September 10, 2010 02:19
Show Gist options
  • Select an option

  • Save jrossi/572955 to your computer and use it in GitHub Desktop.

Select an option

Save jrossi/572955 to your computer and use it in GitHub Desktop.
hg diff (..r~/src/ossec-hids/)
diff -r d0e52520ac8a src/shared/file_op.c
--- a/src/shared/file_op.c Sat Sep 04 12:59:40 2010 -0400
+++ b/src/shared/file_op.c Thu Sep 09 22:20:42 2010 -0400
@@ -253,12 +253,12 @@
if(isChroot())
{
- snprintf(file,255,"%s/%s-%d.pid",OS_PIDFILE,name,pid);
+ snprintf(file,255,"%s/%s.pid",OS_PIDFILE,name);
}
else
{
- snprintf(file,255,"%s%s/%s-%d.pid",DEFAULTDIR,
- OS_PIDFILE,name,pid);
+ snprintf(file,255,"%s%s/%s.pid",DEFAULTDIR,
+ OS_PIDFILE,name);
}
fp = fopen(file,"a");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment