Update of /cvsroot/radmind/radmind
In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv8003
Modified Files:
transcript.c
Log Message:
Allow directories to have 5 or 6 arguments on all platforms. This fixes a bug
the prevents twhich from parsing apple transcripts on non-apple hardware.
Index: transcript.c
===================================================================
RCS file: /cvsroot/radmind/radmind/transcript.c,v
retrieving revision 1.119
retrieving revision 1.120
diff -C2 -d -r1.119 -r1.120
*** transcript.c 31 May 2007 21:28:54 -0000 1.119
--- transcript.c 31 Aug 2007 15:28:54 -0000 1.120
***************
*** 114,118 ****
switch( *argv[ 0 ] ) {
case 'd': /* dir */
- #ifdef __APPLE__
if (( ac != 5 ) && ( ac != 6 )) {
fprintf( stderr, "%s: line %d: expected 5 or 6 arguments, got %d\n",
--- 114,117 ----
***************
*** 120,130 ****
exit( 2 );
}
- #else /* !__APPLE__ */
- if ( ac != 5 ) {
- fprintf( stderr, "%s: line %d: expected 5 arguments, got %d\n",
- tran->t_fullname, tran->t_linenum, ac );
- exit( 2 );
- }
- #endif /* __APPLE__ */
tran->t_pinfo.pi_stat.st_mode = strtol( argv[ 2 ], NULL, 8 );
--- 119,122 ----
|