[cvs] bogofilter config.c,1.11,1.12
Fast Bayesian spam filter along lines suggested by Paul Graham
Brought to you by:
m-a
From: <re...@us...> - 2002-11-07 23:54:13
|
Update of /cvsroot/bogofilter/bogofilter In directory usw-pr-cvs1:/tmp/cvs-serv26349 Modified Files: config.c Log Message: Correctly handle "~/" at beginning of config file name. Index: config.c =================================================================== RCS file: /cvsroot/bogofilter/bogofilter/config.c,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** config.c 6 Nov 2002 23:05:48 -0000 1.11 --- config.c 7 Nov 2002 23:54:10 -0000 1.12 *************** *** 220,223 **** --- 220,225 ---- exit(2); } + if (memcmp(filename, "~/", 2) == 0 ) + filename += 2; tmp = xmalloc(strlen(home) + strlen(filename) + 2); strcpy(tmp, home); |