[Spambayes-checkins] spambayes/scripts sb_bnfilter.py,1.1,1.2

Toby Dickenson htrd at users.sourceforge.net
Tue Apr 20 05:26:07 EDT 2004


Update of /cvsroot/spambayes/spambayes/scripts
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14971

Modified Files:
	sb_bnfilter.py 
Log Message:
linux kernel 2.2 returns the wrong error code if the socket file does not exist. Thanks to Remi Ricard for testing the patch

Index: sb_bnfilter.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/scripts/sb_bnfilter.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** sb_bnfilter.py	13 Apr 2004 13:22:45 -0000	1.1
--- sb_bnfilter.py	20 Apr 2004 09:25:59 -0000	1.2
***************
*** 169,173 ****
                  # baaah
                  pass
!             elif e[0] == errno.ENOENT:
                  # no such file.... no such server. create one.
                  no_server_count += 1
--- 169,176 ----
                  # baaah
                  pass
!             elif e[0] == errno.ENOENT or not os.path.exists(file):
!                 # We need to check os.path.exists for use on operating systems that
!                 # never return ENOENT; linux 2.2.
!                 #
                  # no such file.... no such server. create one.
                  no_server_count += 1




More information about the Spambayes-checkins mailing list