Update of /cvsroot/radmind/radmind
In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv9409
Modified Files:
transcript.c
Log Message:
Fix: [ Bug 1856125 ]: Exclude File Names not escaped.
Index: transcript.c
===================================================================
RCS file: /cvsroot/radmind/radmind/transcript.c,v
retrieving revision 1.123
retrieving revision 1.124
diff -C2 -d -r1.123 -r1.124
*** transcript.c 10 Dec 2007 16:57:04 -0000 1.123
--- transcript.c 7 Jan 2008 01:51:35 -0000 1.124
***************
*** 899,902 ****
--- 899,903 ----
char fullpath[ MAXPATHLEN ];
char *subpath;
+ char *d_pattern;
char **av;
FILE *fp;
***************
*** 1011,1019 ****
case 'x': /* exclude */
if ( minus ) {
! list_remove( exclude_list, av[ 1 ] );
} else {
! if ( !list_check( exclude_list, av[ 1 ] )) {
! if ( list_insert( exclude_list, av[ 1 ] ) != 0 ) {
perror( "list_insert" );
return( -1 );
--- 1012,1024 ----
case 'x': /* exclude */
+ if (( d_pattern = decode( av[ 1 ] )) == NULL ) {
+ fprintf( stderr, "%s: line %d: decode buffer too small\n",
+ kfile, linenum );
+ }
if ( minus ) {
! list_remove( exclude_list, d_pattern );
} else {
! if ( !list_check( exclude_list, d_pattern )) {
! if ( list_insert( exclude_list, d_pattern ) != 0 ) {
perror( "list_insert" );
return( -1 );
|