[cvs] bogofilter/src bf_compact,1.20,1.21 bf_copy,1.16,1.17 bf_resize,1.13,1.14 bf_tar,1.16,1.17
Fast Bayesian spam filter along lines suggested by Paul Graham
Brought to you by:
m-a
From: David R. <re...@us...> - 2005-05-08 02:33:50
|
Update of /cvsroot/bogofilter/bogofilter/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv943 Modified Files: bf_compact bf_copy bf_resize bf_tar Log Message: Add quotes to unquoted uses of $BOGOHOME as directory name. Index: bf_compact =================================================================== RCS file: /cvsroot/bogofilter/bogofilter/src/bf_compact,v retrieving revision 1.20 retrieving revision 1.21 diff -u -d -r1.20 -r1.21 --- bf_compact 8 May 2005 02:22:13 -0000 1.20 +++ bf_compact 8 May 2005 02:33:41 -0000 1.21 @@ -19,14 +19,14 @@ BOGOHOME="$1" shift -if [ ! -d $BOGOHOME ] ; then - echo "$BOGOHOME must be a directory. Abort." +if [ ! -d "$BOGOHOME" ] ; then + echo $BOGOHOME must be a directory. Abort. exit 1 fi # strip trailing slashes while true; do - case $BOGOHOME in + case "$BOGOHOME" in */) BOGOHOME=${BOGOHOME%/} ;; *) break ;; esac Index: bf_tar =================================================================== RCS file: /cvsroot/bogofilter/bogofilter/src/bf_tar,v retrieving revision 1.16 retrieving revision 1.17 diff -u -d -r1.16 -r1.17 --- bf_tar 7 May 2005 13:59:51 -0000 1.16 +++ bf_tar 8 May 2005 02:33:41 -0000 1.17 @@ -35,8 +35,8 @@ BOGOHOME="$1" -if [ ! -d $BOGOHOME ] ; then - echo "$BOGOHOME" must be a directory, not a file +if [ ! -d "$BOGOHOME" ] ; then + echo $BOGOHOME must be a directory, not a file exit 1 fi Index: bf_copy =================================================================== RCS file: /cvsroot/bogofilter/bogofilter/src/bf_copy,v retrieving revision 1.16 retrieving revision 1.17 diff -u -d -r1.16 -r1.17 --- bf_copy 8 May 2005 02:22:13 -0000 1.16 +++ bf_copy 8 May 2005 02:33:41 -0000 1.17 @@ -51,7 +51,7 @@ for FILE in "$SRC"/*.db ; do SIZE=`bogoutil --db-print-pagesize=$FILE` - dd bs=$SIZE if="$FILE" of="$DST/"`basename "$FILE"` + dd bs=$SIZE if=$FILE of="$DST/"`basename $FILE` done if test "$LOGS" ; then bogoutil --db-recover="$DST" ; fi Index: bf_resize =================================================================== RCS file: /cvsroot/bogofilter/bogofilter/src/bf_resize,v retrieving revision 1.13 retrieving revision 1.14 diff -u -d -r1.13 -r1.14 --- bf_resize 8 May 2005 02:25:31 -0000 1.13 +++ bf_resize 8 May 2005 02:33:41 -0000 1.14 @@ -17,8 +17,8 @@ BOGOHOME=${1:-.} -if [ ! -d $BOGOHOME ] ; then - echo "$BOGOHOME" must be a directory, not a file +if [ ! -d "$BOGOHOME" ] ; then + echo $BOGOHOME must be a directory, not a file exit fi |