[Snort-devel] [ snort-Bugs-563900 ] Wrong return value

noreply at ...12... noreply at ...12...
Fri Jun 7 06:01:02 EDT 2002


Bugs item #563900, was opened at 2002-06-03 18:33
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=103357&aid=563900&group_id=3357

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Serge (sergeyssv)
Assigned to: Nobody/Anonymous (nobody)
Summary: Wrong return value

Initial Comment:
It seem's snort does not set  return value correctly.

Just see here:
[root at ...1409... /]# /usr/sbin/snort -u snort -g snort -s -d
-D -A fast -i eth0  -l /var/log/snort -c
/etc/snort/snort.conf
[root at ...1409... /]# echo $?
0
[root at ...1409... /]# tail /var/log/messages
Jun  3 18:22:50 lin01 snort: Initializing daemon mode
Jun  3 18:22:50 lin01 snort: PID stat checked out ok,
PID set to /var/run/
Jun  3 18:22:50 lin01 snort: Writing PID file to
"/var/run/"
Jun  3 18:22:50 lin01 snort: FATAL ERROR: ERROR: Unable
to open rules file: /etc/snort/snort.conf or
/etc/snort//etc/snort/snort.conf
Jun  3 18:22:50 lin01 kernel: eth0: Promiscuous mode
enabled.
Jun  3 18:22:50 lin01 kernel: device eth0 entered
promiscuous mode
Jun  3 18:22:50 lin01 kernel: device eth0 left
promiscuous mode

As you can see snort failed to start. Yes, it right
because it did not find
the conf file. 

But why it reported successful return value?
It should return 1, right?

Regards
          Serge.


----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=103357&aid=563900&group_id=3357




More information about the Snort-devel mailing list