freebsd-ports/security/snortsam/files/patch-ssp_ipfw2.c
Michael Scheidell e9886a9452 - on some (amd64, 7.4 at least), return from successful system call
- was generating a 0x4700.  system calls sb short (0xff)
- this patch masks the 0xff bits only, and is safe for all disto
- Also sent upstream to author
- Maintainer Timeout

PR:		161383
Approved by:	urisso@bsd.com.br (maintainer timeout) gabor (mentor)
Feature safe:	yes
2011-11-29 12:47:07 +00:00

13 lines
437 B
C

--- src/ssp_ipfw2.c 2008-04-26 15:53:21.000000000 -0400
+++ src/ssp_ipfw2.c 2011-10-07 15:47:50.000000000 -0400
@@ -167,8 +167,8 @@
printf("Debug: [ipfw2][%lx] command \"%s\"\n", (unsigned long)threadid, ipfw2cmd);
#endif
/* Run the command */
- if (system(ipfw2cmd) )
+ if ((system(ipfw2cmd) && 0xff) )
{ snprintf(msg,sizeof(msg)-1,"Error: Command \"%s\" Failed", ipfw2cmd);
logmessage(1,msg,"ipfw2",0);
}
else