You can subscribe to this list here.
2006 |
Jan
|
Feb
(52) |
Mar
(83) |
Apr
(37) |
May
(23) |
Jun
(9) |
Jul
(10) |
Aug
(30) |
Sep
(4) |
Oct
(9) |
Nov
(10) |
Dec
(7) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2007 |
Jan
(3) |
Feb
(20) |
Mar
(3) |
Apr
|
May
(10) |
Jun
(17) |
Jul
(11) |
Aug
(6) |
Sep
(6) |
Oct
|
Nov
(15) |
Dec
(15) |
2008 |
Jan
(12) |
Feb
(1) |
Mar
(13) |
Apr
(7) |
May
(4) |
Jun
(37) |
Jul
(9) |
Aug
(7) |
Sep
|
Oct
|
Nov
|
Dec
(1) |
2009 |
Jan
(1) |
Feb
(11) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(2) |
Sep
|
Oct
(1) |
Nov
|
Dec
|
2010 |
Jan
(3) |
Feb
(1) |
Mar
|
Apr
|
May
(2) |
Jun
(2) |
Jul
(1) |
Aug
|
Sep
|
Oct
(4) |
Nov
(6) |
Dec
(2) |
2011 |
Jan
(1) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
(4) |
Jul
|
Aug
|
Sep
(3) |
Oct
(3) |
Nov
(6) |
Dec
|
2012 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
2014 |
Jan
(3) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Patrick M. <ume...@us...> - 2007-05-30 18:11:59
|
Update of /cvsroot/radmind/radmind In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv32319 Modified Files: command.c ktcheck.c transcript.c transcript.h Log Message: Added support for minus transcripts and special files in command files. Index: transcript.h =================================================================== RCS file: /cvsroot/radmind/radmind/transcript.h,v retrieving revision 1.40 retrieving revision 1.41 diff -C2 -d -r1.40 -r1.41 *** transcript.h 17 Feb 2006 20:30:01 -0000 1.40 --- transcript.h 30 May 2007 18:11:49 -0000 1.41 *************** *** 49,54 **** --- 49,56 ---- struct transcript { struct transcript *t_next; + struct transcript *t_prev; struct pathinfo t_pinfo; int t_type; + int t_num; char t_fullname[ MAXPATHLEN ]; char t_shortname[ MAXPATHLEN ]; Index: transcript.c =================================================================== RCS file: /cvsroot/radmind/radmind/transcript.c,v retrieving revision 1.117 retrieving revision 1.118 diff -C2 -d -r1.117 -r1.118 *** transcript.c 23 Feb 2007 20:21:14 -0000 1.117 --- transcript.c 30 May 2007 18:11:49 -0000 1.118 *************** *** 29,32 **** --- 29,35 ---- int read_kfile( char *kfile, int location ); + static void t_new( int type, char *fullname, char *shortname, char *kfile ); + static void t_remove( int type, char *shortname ); + static void t_display( void ); struct transcript *tran_head = NULL; *************** *** 34,38 **** extern int edit_path; extern int case_sensitive; - static int foundspecial = 0; static char *kdir; static struct list *kfile_list; --- 37,40 ---- *************** *** 726,729 **** --- 728,735 ---- new->t_next = tran_head; + if ( tran_head != NULL ) { + tran_head->t_prev = new; + new->t_num = new->t_next->t_num + 1; + } tran_head = new; *************** *** 731,734 **** --- 737,796 ---- } + static void + t_remove( int type, char *shortname ) + { + struct transcript *cur, *next = NULL; + + cur = tran_head; + while ( cur->t_type != T_NULL ) { + next = cur->t_next; + if (( cur->t_type == type ) + && ( strcmp( cur->t_shortname, shortname ) == 0 )) { + if ( cur == tran_head ) { + tran_head = cur->t_next; + free( cur ); + } else { + cur->t_prev->t_next = cur->t_next; + cur->t_next->t_prev = cur->t_prev; + free( cur ); + } + } + cur = next; + } + return; + } + + static void + t_display( void ) + { + struct transcript *cur = NULL; + + for ( cur = tran_head; cur != NULL; cur = cur->t_next ) { + printf( "%d: ", cur->t_num ); + switch( cur->t_type ) { + case T_POSITIVE: + printf( "p %s\n", cur->t_shortname ); + break; + + case T_NEGATIVE: + printf( "n %s\n", cur->t_shortname ); + break; + + case T_SPECIAL: + printf( "s %s\n", cur->t_shortname ); + break; + + case T_NULL: + printf( "NULL\n" ); + break; + + default: + printf( "? %s\n", cur->t_shortname ); + break; + } + } + return; + } + void transcript_init( char *kfile, int location ) *************** *** 776,780 **** } ! if ( foundspecial && ( location == K_CLIENT )) { /* open the special transcript if there were any special files */ if ( strlen( kdir ) + strlen( special ) + 2 > MAXPATHLEN ) { --- 838,842 ---- } ! if (( list_size( special_list ) > 0 ) && ( location == K_CLIENT )) { /* open the special transcript if there were any special files */ if ( strlen( kdir ) + strlen( special ) + 2 > MAXPATHLEN ) { *************** *** 798,802 **** read_kfile( char *kfile, int location ) { ! int length, ac, linenum = 0; char line[ MAXPATHLEN ]; char fullpath[ MAXPATHLEN ]; --- 860,864 ---- read_kfile( char *kfile, int location ) { ! int length, ac, linenum = 0, minus = 0; char line[ MAXPATHLEN ]; char fullpath[ MAXPATHLEN ]; *************** *** 824,827 **** --- 886,897 ---- } + if ( *av[ 0 ] == '-' ) { + minus = 0; + av++; + ac--; + } else { + minus = 1; + } + if ( ac != 2 ) { fprintf( stderr, *************** *** 866,906 **** switch( *av[ 0 ] ) { case 'k': /* command file */ ! if ( list_check( kfile_list, fullpath )) { ! fprintf( stderr, ! "command file %s: line %d: command file loop: %s already included\n", ! kfile, linenum, av[ 1 ] ); ! return( -1 ); ! } ! if ( list_insert( kfile_list, fullpath ) != 0 ) { ! perror( "list_insert" ); return( -1 ); } - if ( read_kfile( fullpath, location ) != 0 ) { - return( -1 ); - } break; case 'n': /* negative */ ! t_new( T_NEGATIVE, fullpath, av[ 1 ], kfile ); break; case 'p': /* positive */ ! t_new( T_POSITIVE, fullpath, av[ 1 ], kfile ); break; case 'x': /* exclude */ ! t_new( T_EXCLUDE, fullpath, av[ 1 ], kfile ); break; case 's': /* special */ ! foundspecial++; ! if ( location == K_SERVER ) { ! if ( list_insert( special_list, av[ 1 ] ) != 0 ) { ! perror( "list_insert" ); ! return( -1 ); } } ! continue; default: --- 936,1001 ---- switch( *av[ 0 ] ) { case 'k': /* command file */ ! if ( minus ) { ! /* Error on minus command files for now */ ! fprintf( stderr, "command file %s: line %d: " ! "minus 'k' not supported\n", kfile, linenum ); return( -1 ); + } else { + if ( list_check( kfile_list, fullpath )) { + fprintf( stderr, + "command file %s: line %d: command file loop: %s already included\n", + kfile, linenum, av[ 1 ] ); + return( -1 ); + } + if ( list_insert( kfile_list, fullpath ) != 0 ) { + perror( "list_insert" ); + return( -1 ); + } + if ( read_kfile( fullpath, location ) != 0 ) { + return( -1 ); + } } break; case 'n': /* negative */ ! if ( minus ) { ! t_remove( T_NEGATIVE, av[ 1 ] ); ! } else { ! t_new( T_NEGATIVE, fullpath, av[ 1 ], kfile ); ! } break; case 'p': /* positive */ ! if ( minus ) { ! t_remove( T_POSITIVE, av[ 1 ] ); ! } else { ! t_new( T_POSITIVE, fullpath, av[ 1 ], kfile ); ! } break; case 'x': /* exclude */ ! if ( minus ) { ! t_remove( T_EXCLUDE, av[ 1 ] ); ! } else { ! t_new( T_EXCLUDE, fullpath, av[ 1 ], kfile ); ! } break; case 's': /* special */ ! if ( minus ) { ! if ( list_check( special_list, av[ 1 ] )) { ! list_remove( special_list, av[ 1 ] ); } + } else { + if ( !list_check( special_list, av[ 1 ] )) { + if ( list_insert( special_list, av[ 1 ] ) != 0 ) { + perror( "list_insert" ); + return( -1 ); + } + } + } ! break; default: Index: command.c =================================================================== RCS file: /cvsroot/radmind/radmind/command.c,v retrieving revision 1.137 retrieving revision 1.138 diff -C2 -d -r1.137 -r1.138 *** command.c 23 Feb 2007 20:21:14 -0000 1.137 --- command.c 30 May 2007 18:11:49 -0000 1.138 *************** *** 1355,1358 **** --- 1355,1369 ---- } + /* Skip minus lines in command files for now. Eventually, + * the server should not give access to command files, special files + * and transcripts that have been ultimately removed with a '-'. + * This is difficult as ktcheck reads command files line by line + * and will request info on a file that might be removed with a + * later '-'. + */ + if ( *av[ 0 ] == '-' ) { + continue; + } + if ( ac != 2 ) { syslog( LOG_ERR, "%s: line %d: invalid number of arguments", Index: ktcheck.c =================================================================== RCS file: /cvsroot/radmind/radmind/ktcheck.c,v retrieving revision 1.119 retrieving revision 1.120 diff -C2 -d -r1.119 -r1.120 *** ktcheck.c 23 Feb 2007 20:21:14 -0000 1.119 --- ktcheck.c 30 May 2007 18:11:49 -0000 1.120 *************** *** 71,75 **** const EVP_MD *md; SSL_CTX *ctx; ! struct list *special_list, *kfile_list, *kfile_seen; extern struct timeval timeout; --- 71,75 ---- const EVP_MD *md; SSL_CTX *ctx; ! struct list *special_list, *kfile_seen; extern struct timeval timeout; *************** *** 545,549 **** char tempfile[ MAXPATHLEN ]; struct servent *se; - struct node *node; char **capa = NULL; /* capabilities */ --- 545,548 ---- *************** *** 675,682 **** exit( 2 ); } - if (( kfile_list = list_new( )) == NULL ) { - perror( "list_new" ); - exit( 2 ); - } if (( kfile_seen = list_new( )) == NULL ) { perror( "list_new" ); --- 674,677 ---- *************** *** 755,768 **** } ! /* Parse any included command files */ ! while (( node = list_pop_head( kfile_list )) != NULL ) { ! if ( read_kfile( node->n_path ) != 0 ) { ! exit( 2 ); ! } ! free( node ); ! ! if ( !update && change ) { ! exit( 1 ); ! } } --- 750,758 ---- } ! /* Exit here if there's already been a change to avoid processing ! * the special transcript. ! */ ! if ( !update && change ) { ! exit( 1 ); } *************** *** 903,907 **** read_kfile( char * kfile ) { ! int ac; char **av; char line[ MAXPATHLEN ]; --- 893,897 ---- read_kfile( char * kfile ) { ! int ac, minus = 0; char **av; char line[ MAXPATHLEN ]; *************** *** 929,932 **** --- 919,936 ---- } + /* Skip non-special minus lines */ + if ( *av[ 0 ] == '-' ) { + if ( *av[ 1 ] == 's' ) { + minus = 1; + av++; + ac--; + } else { + continue; + } + } else { + /* Set incase previous line was a minus */ + minus = 0; + } + if ( ac != 2 ) { fprintf( stderr, "%s: %d: invalid command line\n", *************** *** 943,955 **** } if ( !list_check( kfile_seen, path )) { - if ( list_insert_tail( kfile_list, path ) != 0 ) { - perror( "list_insert_tail" ); - goto error; - } if ( list_insert_tail( kfile_seen, path ) != 0 ) { perror( "list_insert_tail" ); goto error; } } switch( check( sn, "COMMAND", av[ ac - 1] )) { case 0: --- 947,959 ---- } if ( !list_check( kfile_seen, path )) { if ( list_insert_tail( kfile_seen, path ) != 0 ) { perror( "list_insert_tail" ); goto error; } + if ( read_kfile( path ) != 0 ) { + exit( 2 ); + } } + switch( check( sn, "COMMAND", av[ ac - 1] )) { case 0: *************** *** 969,976 **** case 's': /* Added special file if it's not already in the list */ ! if ( !list_check( special_list, av[ 1 ] )) { ! if ( list_insert( special_list, av[ 1 ] ) != 0 ) { ! perror( "list_insert" ); ! exit( 2 ); } } --- 973,986 ---- case 's': /* Added special file if it's not already in the list */ ! if ( minus ) { ! if ( list_check( special_list, av[ 1 ] )) { ! list_remove( special_list, av[ 1 ] ); ! } ! } else { ! if ( !list_check( special_list, av[ 1 ] )) { ! if ( list_insert( special_list, av[ 1 ] ) != 0 ) { ! perror( "list_insert" ); ! exit( 2 ); ! } } } |
From: Patrick M. <ume...@us...> - 2007-05-29 23:17:51
|
Update of /cvsroot/radmind/radmind In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv29985 Modified Files: list.c list.h Log Message: Added list_remove(), list_size() and no longer printing head and tail info in list_print(). Index: list.h =================================================================== RCS file: /cvsroot/radmind/radmind/list.h,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** list.h 26 Apr 2005 14:48:13 -0000 1.5 --- list.h 29 May 2007 23:17:48 -0000 1.6 *************** *** 18,21 **** --- 18,23 ---- }; + #define list_size( list ) ((list)->l_count) + struct list * list_new( void ); void list_clear( struct list *list ); *************** *** 26,29 **** --- 28,32 ---- int list_insert_head( struct list *list, char *path ); int list_insert_tail( struct list *list, char *path ); + int list_remove( struct list *list, char *path ); void list_remove_head( struct list *list ); void list_remove_tail( struct list *list ); Index: list.c =================================================================== RCS file: /cvsroot/radmind/radmind/list.c,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** list.c 26 Apr 2005 14:48:13 -0000 1.9 --- list.c 29 May 2007 23:17:48 -0000 1.10 *************** *** 71,84 **** u_int i; - if ( list->l_head != NULL ) { - printf( "head -> %s\n", list->l_head->n_path ); - } else { - printf( "head -> NULL\n" ); - } - if ( list->l_tail != NULL ) { - printf( "tail -> %s\n", list->l_tail->n_path ); - } else { - printf( "tail -> NULL\n" ); - } printf( "count: %d\n", list->l_count ); for ( cur = list->l_head, i = 1; cur != NULL; cur = cur->n_next, i++ ) { --- 71,74 ---- *************** *** 166,169 **** --- 156,190 ---- } + int + list_remove( struct list *list, char *path ) + { + int count = 0; + struct node *cur; + + for ( cur = list->l_head; cur != NULL; cur = cur->n_next ) { + if ( pathcmp( cur->n_path, path ) == 0 ) { + + if ( list->l_head == cur ) { + list_remove_head( list ); + count++; + + } else if ( list->l_tail == cur ) { + list_remove_tail( list ); + count++; + + } else { + /* Remove item */ + cur->n_prev->n_next = cur->n_next; + cur->n_next->n_prev = cur->n_prev; + free( cur ); + list->l_count--; + count++; + } + } + } + + return( count ); + } + void list_remove_tail( struct list *list ) |
From: Andrew M. <fit...@us...> - 2007-05-25 14:29:26
|
Update of /cvsroot/radmind/radmind/man In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv30481 Modified Files: radmind.8 Log Message: Clarified -B usage, removed -R. Index: radmind.8 =================================================================== RCS file: /cvsroot/radmind/radmind/man/radmind.8,v retrieving revision 1.39 retrieving revision 1.40 diff -C2 -d -r1.39 -r1.40 *** radmind.8 26 Mar 2007 18:56:54 -0000 1.39 --- radmind.8 25 May 2007 14:29:22 -0000 1.40 *************** *** 6,10 **** .B radmind [ ! .B \-dBRrUV ] [ .BI \-a\ bind-address --- 6,10 ---- .B radmind [ ! .B \-dBrUV ] [ .BI \-a\ bind-address *************** *** 200,204 **** .TP 19 .B \-B ! register daemon as a Bonjour service .TP 19 .BI \-b\ backlog --- 200,206 ---- .TP 19 .B \-B ! register daemon as a Bonjour service. Replaces deprecated ! .BR \-R ! option. .TP 19 .BI \-b\ backlog *************** *** 231,238 **** .BR 6662 . .TP 19 - .B \-R - register daemon as a Bonjour service. Deprecated in favor of - .BR \-B . - .TP 19 .B \-r use random seed file $RANDFILE if that environment variable is set, --- 233,236 ---- |
From: Andrew M. <fit...@us...> - 2007-05-25 02:48:28
|
Update of /cvsroot/radmind/radmind In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv29552 Modified Files: daemon.c Log Message: -R is deprecated. -B is the new wave. Index: daemon.c =================================================================== RCS file: /cvsroot/radmind/radmind/daemon.c,v retrieving revision 1.80 retrieving revision 1.81 diff -C2 -d -r1.80 -r1.81 *** daemon.c 7 Mar 2007 20:00:27 -0000 1.80 --- daemon.c 25 May 2007 02:47:20 -0000 1.81 *************** *** 282,286 **** if ( err || optind != ac ) { ! fprintf( stderr, "Usage: radmind [ -dRrUV ] [ -a bind-address ] " ); fprintf( stderr, "[ -b backlog ] [ -D path ] [ -F syslog-facility " ); fprintf( stderr, "[ -L syslog-level ] [ -m max-connections ] " ); --- 282,286 ---- if ( err || optind != ac ) { ! fprintf( stderr, "Usage: radmind [ -dBrUV ] [ -a bind-address ] " ); fprintf( stderr, "[ -b backlog ] [ -D path ] [ -F syslog-facility " ); fprintf( stderr, "[ -L syslog-level ] [ -m max-connections ] " ); |
From: Andrew M. <fit...@us...> - 2007-05-25 02:17:58
|
Update of /cvsroot/radmind/radmind-assistant/rsm In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv19161 Modified Files: RAServerController.m Log Message: Session tmp dir creation handled by -sessionTmpDirectory when needed. Index: RAServerController.m =================================================================== RCS file: /cvsroot/radmind/radmind-assistant/rsm/RAServerController.m,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** RAServerController.m 20 Oct 2006 14:32:06 -0000 1.18 --- RAServerController.m 25 May 2007 02:17:50 -0000 1.19 *************** *** 590,595 **** - ( IBAction )reloadConfigFile: ( id )sender { - NSString *tmpdir = nil; - if ( [ self isConfigFileEdited ] ) { int rc; --- 590,593 ---- *************** *** 622,636 **** [ hostsTable setDrawsStripes: YES ]; - /* create tmpdir for session */ - if ( [ self sessionTmpDirectory ] == nil ) { - tmpdir = [[ NSFileManager defaultManager ] - makeTemporaryDirectory: @"/tmp/.rsm.XXXXXX" - withMode: (mode_t)0700 ]; - if ( tmpdir == nil ) { - exit( 2 ); - } - [ self setSessionTmpDirectory: tmpdir ]; - } - [ self loadServerInfoWithCommand: RSM_REFRESH_CONFIG arguments: [ NSArray arrayWithObjects: --- 620,623 ---- |
From: Patrick M. <ume...@us...> - 2007-05-23 18:33:51
|
Update of /cvsroot/radmind/radmind In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv5511 Modified Files: Makefile.in configure configure.ac ra.sh Log Message: ./configure searches for the echo binary for ra.sh. This is to address where the built-in echo doesn't support "-n". Index: Makefile.in =================================================================== RCS file: /cvsroot/radmind/radmind/Makefile.in,v retrieving revision 1.100 retrieving revision 1.101 diff -C2 -d -r1.100 -r1.101 *** Makefile.in 22 Jan 2007 19:33:30 -0000 1.100 --- Makefile.in 23 May 2007 18:33:45 -0000 1.101 *************** *** 24,27 **** --- 24,28 ---- TLS_CERT=${CERTDIR}/cert.pem GNU_DIFF=@diffpath@ + ECHO=@echopath@ MKTEMP=@mktemppath@ RADMIND_HOST=@server@ *************** *** 253,256 **** --- 254,258 ---- -e 's@_RADMIND_COMMANDFILE@${COMMANDFILE}@g' \ -e 's@_RADMIND_VERSION@$(shell cat VERSION)@g' \ + -e 's@_RADMIND_ECHO_PATH@${ECHOPATH}@g' \ ${srcdir}/ra.sh > tmp/ra.sh; Index: configure.ac =================================================================== RCS file: /cvsroot/radmind/radmind/configure.ac,v retrieving revision 1.40 retrieving revision 1.41 diff -C2 -d -r1.40 -r1.41 *** configure.ac 9 Mar 2007 14:33:04 -0000 1.40 --- configure.ac 23 May 2007 18:33:45 -0000 1.41 *************** *** 9,12 **** --- 9,13 ---- # Set up variables AC_ARG_VAR(diffpath, [path to diff utility]) + AC_ARG_VAR(echopath, [path to echo utility]) AC_ARG_WITH(server, AC_HELP_STRING([--with-server=SERVER], [default radmind server]), server="$withval", server="radmind" ) *************** *** 38,41 **** --- 39,43 ---- AC_PROG_INSTALL AC_PATH_PROG(diffpath, diff) + AC_PATH_PROG(echopath, echo) AC_PATH_PROG(mktemppath, mktemp) AC_SYS_LARGEFILE Index: ra.sh =================================================================== RCS file: /cvsroot/radmind/radmind/ra.sh,v retrieving revision 1.39 retrieving revision 1.40 diff -C2 -d -r1.39 -r1.40 *** ra.sh 23 Feb 2007 20:21:14 -0000 1.39 --- ra.sh 23 May 2007 18:33:45 -0000 1.40 *************** *** 35,38 **** --- 35,39 ---- CHECKEDOUT="_RADMIND_DIR/client/.CheckedOut" MAILDOMAIN="_RADMIND_MAIL_DOMAIN" + ECHO="_RADMIND_ECHO_PATH" VERSION=_RADMIND_VERSION *************** *** 49,53 **** RASHTMP=`${MKTEMP} -qd "${TMPDIR}/.ra.$$.XXXXXX"` if [ $? -ne 0 ]; then ! echo "mktemp failed" exit 1 fi --- 50,54 ---- RASHTMP=`${MKTEMP} -qd "${TMPDIR}/.ra.$$.XXXXXX"` if [ $? -ne 0 ]; then ! $ECHO "mktemp failed" exit 1 fi *************** *** 65,69 **** Yn() { ! echo -n "$*" "[Yn] " read ans if [ $? -ne 0 ]; then --- 66,70 ---- Yn() { ! $ECHO -n "$*" "[Yn] " read ans if [ $? -ne 0 ]; then *************** *** 85,89 **** usage() { ! echo "Usage: $0 [ -ctV ] [ -h server ] [ -w authlevel ] { trip | update | create | auto | force | checkout | checkin } [ /path/or/file ]" >&2 exit 1 } --- 86,90 ---- usage() { ! $ECHO "Usage: $0 [ -ctV ] [ -h server ] [ -w authlevel ] { trip | update | create | auto | force | checkout | checkin } [ /path/or/file ]" >&2 exit 1 } *************** *** 130,134 **** checkedout if [ $? -eq 1 ]; then ! echo "Checked out by ${OWNER}" if [ x"$opt" = x"interactive" -a x"$USER" = x"$OWNER" ]; then Yn "Continue with update?" --- 131,135 ---- checkedout if [ $? -eq 1 ]; then ! $ECHO "Checked out by ${OWNER}" if [ x"$opt" = x"interactive" -a x"$USER" = x"$OWNER" ]; then Yn "Continue with update?" *************** *** 161,165 **** RC=$? if [ $RC -ne 1 ]; then ! echo Nothing to update cleanup exit $RC --- 162,166 ---- RC=$? if [ $RC -ne 1 ]; then ! $ECHO Nothing to update cleanup exit $RC *************** *** 182,186 **** if [ ! -s ${FTMP} ]; then ! echo Nothing to apply. cleanup exit 0 --- 183,187 ---- if [ ! -s ${FTMP} ]; then ! $ECHO Nothing to apply. cleanup exit 0 *************** *** 206,212 **** while [ 1 ]; do if [ x"${can_edit}" = x"yes" ]; then ! echo -n "(e)dit difference transcript, " fi ! echo -n "(a)pply or (c)ancel? " read ans --- 207,213 ---- while [ 1 ]; do if [ x"${can_edit}" = x"yes" ]; then ! $ECHO -n "(e)dit difference transcript, " fi ! $ECHO -n "(a)pply or (c)ancel? " read ans *************** *** 221,226 **** c|C) ! echo ! echo Update cancelled cleanup exit 0 --- 222,227 ---- c|C) ! $ECHO ! $ECHO Update cancelled cleanup exit 0 *************** *** 245,255 **** *) if [ x"$opt" = x"hook" ]; then ! echo -n "Applying changes failed, trying again " ! echo "in ${RETRY} seconds..." sleep ${RETRY} RETRY=${RETRY}0 ! echo %OPENDRAWER ! echo %BEGINPOLE else cleanup --- 246,256 ---- *) if [ x"$opt" = x"hook" ]; then ! $ECHO -n "Applying changes failed, trying again " ! $ECHO "in ${RETRY} seconds..." sleep ${RETRY} RETRY=${RETRY}0 ! $ECHO %OPENDRAWER ! $ECHO %BEGINPOLE else cleanup *************** *** 309,313 **** ;; ! V) echo ${VERSION} exit 0 ;; --- 310,314 ---- ;; ! V) $ECHO ${VERSION} exit 0 ;; *************** *** 333,337 **** mkdir -m 700 "${RASHTMP}" if [ $? -ne 0 ]; then ! echo "Cannot create temporary directory $RASHTMP" exit 1 fi --- 334,338 ---- mkdir -m 700 "${RASHTMP}" if [ $? -ne 0 ]; then ! $ECHO "Cannot create temporary directory $RASHTMP" exit 1 fi *************** *** 344,348 **** checkout) if [ ${USER} = root ]; then ! echo -n "Username? [root] " read ans USER=${ans:-root} --- 345,349 ---- checkout) if [ ${USER} = root ]; then ! $ECHO -n "Username? [root] " read ans USER=${ans:-root} *************** *** 350,354 **** checkedout if [ $? -eq 1 ]; then ! echo "Already checked out by ${OWNER}" if [ x${OWNER} = x${USER} ]; then exit 1 --- 351,355 ---- checkedout if [ $? -eq 1 ]; then ! $ECHO "Already checked out by ${OWNER}" if [ x${OWNER} = x${USER} ]; then exit 1 *************** *** 358,364 **** exit 1 fi ! echo ${USER} has removed your checkout on `hostname` | mail -s `hostname`": Checkout broken" ${OWNER}@${MAILDOMAIN:-`hostname`} fi ! echo ${USER} > ${CHECKEDOUT} ;; --- 359,365 ---- exit 1 fi ! $ECHO ${USER} has removed your checkout on `hostname` | mail -s `hostname`": Checkout broken" ${OWNER}@${MAILDOMAIN:-`hostname`} fi ! $ECHO ${USER} > ${CHECKEDOUT} ;; *************** *** 366,379 **** checkedout if [ $? -eq 0 ]; then ! echo "Not checked out" exit 1 fi if [ ${USER} = root ]; then ! echo -n "Username? [root] " read ans USER=${ans:-root} fi if [ x${OWNER} != x${USER} ]; then ! echo "Currently checked out by ${OWNER}" exit 1 fi --- 367,380 ---- checkedout if [ $? -eq 0 ]; then ! $ECHO "Not checked out" exit 1 fi if [ ${USER} = root ]; then ! $ECHO -n "Username? [root] " read ans USER=${ans:-root} fi if [ x${OWNER} != x${USER} ]; then ! $ECHO "Currently checked out by ${OWNER}" exit 1 fi *************** *** 397,401 **** RC=$? if [ $RC -ne 1 ]; then ! echo Nothing to update cleanup exit $RC --- 398,402 ---- RC=$? if [ $RC -ne 1 ]; then ! $ECHO Nothing to update cleanup exit $RC *************** *** 408,412 **** ;; esac ! echo -n "Enter new transcript name [`hostname | cut -d. -f1`-`date +%Y%m%d`-${USER}.T]: " read TNAME if [ -z "${TNAME}" ]; then --- 409,413 ---- ;; esac ! $ECHO -n "Enter new transcript name [`hostname | cut -d. -f1`-`date +%Y%m%d`-${USER}.T]: " read TNAME if [ -z "${TNAME}" ]; then *************** *** 420,424 **** fi if [ ! -s ${FTMP} ]; then ! echo Nothing to create. cleanup exit 1 --- 421,425 ---- fi if [ ! -s ${FTMP} ]; then ! $ECHO Nothing to create. cleanup exit 1 *************** *** 432,436 **** if [ -n "${USERAUTH}" ]; then if [ -z "${USERNAME}" ]; then ! echo -n "username: " read USERNAME fi --- 433,437 ---- if [ -n "${USERAUTH}" ]; then if [ -z "${USERNAME}" ]; then ! $ECHO -n "username: " read USERNAME fi *************** *** 449,453 **** trip) if [ ! -f ${KFILE} ]; then ! echo Command file missing, skipping tripwire. cleanup exit 1 --- 450,454 ---- trip) if [ ! -f ${KFILE} ]; then ! $ECHO Command file missing, skipping tripwire. cleanup exit 1 *************** *** 459,463 **** ;; 1) ! echo Command file and/or transcripts are out of date. ;; *) --- 460,464 ---- ;; 1) ! $ECHO Command file and/or transcripts are out of date. ;; *) *************** *** 473,477 **** fi if [ -s ${FTMP} ]; then ! echo Trip failure: `hostname` cat ${FTMP} cleanup --- 474,478 ---- fi if [ -s ${FTMP} ]; then ! $ECHO Trip failure: `hostname` cat ${FTMP} cleanup *************** *** 483,497 **** checkedout if [ $? -eq 1 ]; then ! echo "Checked out by ${OWNER}" exit 1 fi fsdiff -C ${CASE} ${CHECKSUM} -o ${FTMP} ${FSDIFFROOT} if [ $? -ne 0 ]; then ! echo Auto failure: `hostname` fsdiff cleanup exit 1 fi if [ -s ${FTMP} ]; then ! echo Auto failure: `hostname` trip cat ${FTMP} cleanup --- 484,498 ---- checkedout if [ $? -eq 1 ]; then ! $ECHO "Checked out by ${OWNER}" exit 1 fi fsdiff -C ${CASE} ${CHECKSUM} -o ${FTMP} ${FSDIFFROOT} if [ $? -ne 0 ]; then ! $ECHO Auto failure: `hostname` fsdiff cleanup exit 1 fi if [ -s ${FTMP} ]; then ! $ECHO Auto failure: `hostname` trip cat ${FTMP} cleanup *************** *** 505,509 **** fsdiff -A ${CASE} ${CHECKSUM} -o ${FTMP} ${FSDIFFROOT} if [ $? -ne 0 ]; then ! echo Auto failure: `hostname`: fsdiff cleanup exit 1 --- 506,510 ---- fsdiff -A ${CASE} ${CHECKSUM} -o ${FTMP} ${FSDIFFROOT} if [ $? -ne 0 ]; then ! $ECHO Auto failure: `hostname`: fsdiff cleanup exit 1 *************** *** 515,519 **** case $? in 0) ! echo Auto update: `hostname` cat ${FTMP} dopostapply ${FTMP} --- 516,520 ---- case $? in 0) ! $ECHO Auto update: `hostname` cat ${FTMP} dopostapply ${FTMP} *************** *** 524,533 **** *) if [ ${RETRY} -gt 10000 ]; then ! echo Auto failure: `hostname` cat ${LTMP} cleanup exit 1 fi ! echo Auto failure: `hostname` retrying cat ${LTMP} sleep ${RETRY} --- 525,534 ---- *) if [ ${RETRY} -gt 10000 ]; then ! $ECHO Auto failure: `hostname` cat ${LTMP} cleanup exit 1 fi ! $ECHO Auto failure: `hostname` retrying cat ${LTMP} sleep ${RETRY} *************** *** 537,541 **** esac else ! echo Nothing to apply. cleanup exit 0 --- 538,542 ---- esac else ! $ECHO Nothing to apply. cleanup exit 0 *************** *** 548,552 **** checkedout if [ $? -eq 1 ]; then ! echo "Checked out by ${OWNER}" exit 1 fi --- 549,553 ---- checkedout if [ $? -eq 1 ]; then ! $ECHO "Checked out by ${OWNER}" exit 1 fi *************** *** 568,572 **** if [ ! -s ${FTMP} ]; then ! echo Nothing to apply. cleanup exit 0 --- 569,573 ---- if [ ! -s ${FTMP} ]; then ! $ECHO Nothing to apply. cleanup exit 0 Index: configure =================================================================== RCS file: /cvsroot/radmind/radmind/configure,v retrieving revision 1.50 retrieving revision 1.51 diff -C2 -d -r1.50 -r1.51 *** configure 9 Mar 2007 14:33:04 -0000 1.50 --- configure 23 May 2007 18:33:45 -0000 1.51 *************** *** 315,319 **** ac_subdirs_all="$ac_subdirs_all libsnet" ! ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS diffpath server authlevel radminddir maxconnections maildomain build_date build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os AWK CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA mktemppath CPP EGREP OPTOPTS subdirs LIBOBJS LTLIBOBJS' ac_subst_files='' --- 315,319 ---- ac_subdirs_all="$ac_subdirs_all libsnet" ! ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS diffpath echopath server authlevel radminddir maxconnections maildomain build_date build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os AWK CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA mktemppath CPP EGREP OPTOPTS subdirs LIBOBJS LTLIBOBJS' ac_subst_files='' *************** *** 760,763 **** --- 760,767 ---- ac_cv_env_diffpath_set=${diffpath+set} ac_cv_env_diffpath_value=$diffpath + ac_env_echopath_set=${echopath+set} + ac_env_echopath_value=$echopath + ac_cv_env_echopath_set=${echopath+set} + ac_cv_env_echopath_value=$echopath ac_env_CC_set=${CC+set} ac_env_CC_value=$CC *************** *** 877,880 **** --- 881,885 ---- Some influential environment variables: diffpath path to diff utility + echopath path to echo utility CC C compiler command CFLAGS C compiler flags *************** *** 1346,1349 **** --- 1351,1355 ---- + # Check whether --with-server or --without-server was given. if test "${with_server+set}" = set; then *************** *** 2621,2624 **** --- 2627,2669 ---- fi + # Extract the first word of "echo", so it can be a program name with args. + set dummy echo; ac_word=$2 + echo "$as_me:$LINENO: checking for $ac_word" >&5 + echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 + if test "${ac_cv_path_echopath+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 + else + case $echopath in + [\\/]* | ?:[\\/]*) + ac_cv_path_echopath="$echopath" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR + for as_dir in $PATH + do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_echopath="$as_dir/$ac_word$ac_exec_ext" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi + done + done + + ;; + esac + fi + echopath=$ac_cv_path_echopath + + if test -n "$echopath"; then + echo "$as_me:$LINENO: result: $echopath" >&5 + echo "${ECHO_T}$echopath" >&6 + else + echo "$as_me:$LINENO: result: no" >&5 + echo "${ECHO_T}no" >&6 + fi + # Extract the first word of "mktemp", so it can be a program name with args. set dummy mktemp; ac_word=$2 *************** *** 6024,6027 **** --- 6069,6073 ---- s,@LIBS@,$LIBS,;t t s,@diffpath@,$diffpath,;t t + s,@echopath@,$echopath,;t t s,@server@,$server,;t t s,@authlevel@,$authlevel,;t t |
From: Patrick M. <ume...@us...> - 2007-05-18 19:10:34
|
Update of /cvsroot/radmind/radmind In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv22096 Modified Files: lapply.c Log Message: lapply doesn't attempt to report when run with -n Fixes bug # 1720312 Index: lapply.c =================================================================== RCS file: /cvsroot/radmind/radmind/lapply.c,v retrieving revision 1.136 retrieving revision 1.137 diff -C2 -d -r1.136 -r1.137 *** lapply.c 28 Dec 2006 17:05:34 -0000 1.136 --- lapply.c 18 May 2007 19:10:27 -0000 1.137 *************** *** 430,449 **** } } - } else { - if ( !quiet ) printf( "No network connection\n" ); - } #ifdef HAVE_ZLIB ! /* Enable compression */ ! if ( zlib_level > 0 ) { ! if ( negotiate_compression( sn, capa ) != 0 ) { ! exit( 2 ); } - } #endif /* HAVE_ZLIB */ ! /* Turn off reporting if server doesn't support it */ ! if ( check_capability( "REPO", capa ) == 0 ) { ! report = 0; } --- 430,449 ---- } } #ifdef HAVE_ZLIB ! /* Enable compression */ ! if ( zlib_level > 0 ) { ! if ( negotiate_compression( sn, capa ) != 0 ) { ! exit( 2 ); ! } } #endif /* HAVE_ZLIB */ ! /* Turn off reporting if server doesn't support it */ ! if ( check_capability( "REPO", capa ) == 0 ) { ! report = 0; ! } ! } else { ! if ( !quiet ) printf( "No network connection\n" ); } *************** *** 748,752 **** #endif /* HAVE_ZLIB */ if ( change ) { ! if ( report ) { if ( report_event( sn, "lapply", "Error, changes made" ) != 0 ) { --- 748,752 ---- #endif /* HAVE_ZLIB */ if ( change ) { ! if ( network && report ) { if ( report_event( sn, "lapply", "Error, changes made" ) != 0 ) { *************** *** 755,759 **** } } else { ! if ( report ) { if ( report_event( sn, "lapply", "Error, no changes made" ) != 0 ) { --- 755,759 ---- } } else { ! if ( network && report ) { if ( report_event( sn, "lapply", "Error, no changes made" ) != 0 ) { |
From: Patrick M. <ume...@us...> - 2007-03-26 18:56:57
|
Update of /cvsroot/radmind/radmind/man In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv28877 Modified Files: ktcheck.1 lapply.1 lcksum.1 lmerge.1 lsort.1 radmind.8 rash.1 twhich.1 Log Message: Corrected spelling mistakes and fixes inconsistent use of 'appliable'. [ Patch 1688635 ] Thanks Will Maier Index: lapply.1 =================================================================== RCS file: /cvsroot/radmind/radmind/man/lapply.1,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** lapply.1 31 Jan 2006 21:18:24 -0000 1.15 --- lapply.1 26 Mar 2007 18:56:53 -0000 1.16 *************** *** 2,6 **** .SH NAME .B lapply ! \- modify file system to match appliable-transcript .SH SYNOPSIS .B lapply --- 2,6 ---- .SH NAME .B lapply ! \- modify file system to match apply-able-transcript .SH SYNOPSIS .B lapply *************** *** 27,34 **** .BI \-Z\ compression-level ] { ! .I appliable-transcript } .SH DESCRIPTION ! lapply reads an appliable transcript line-by-line, modifying the file system to match the transcript. Transcript lines are applied in order unless they are directories marked for deletion. In such cases, --- 27,34 ---- .BI \-Z\ compression-level ] { ! .I apply-able-transcript } .SH DESCRIPTION ! lapply reads an apply-able transcript line-by-line, modifying the file system to match the transcript. Transcript lines are applied in order unless they are directories marked for deletion. In such cases, *************** *** 54,58 **** .sp If ! .I appliable-transcript is not given, .B lapply --- 54,58 ---- .sp If ! .I apply-able-transcript is not given, .B lapply *************** *** 82,86 **** .TP 19 .BI \-I ! be case insensitive when compairing paths. .TP 19 .B \-F --- 82,86 ---- .TP 19 .BI \-I ! be case insensitive when comparing paths. .TP 19 .B \-F *************** *** 89,93 **** .B \-n no network connection will be made, causing only file system removals and ! updates to be applied. auth-level is implicit set to 0. .TP 19 .BI \-p\ port --- 89,93 ---- .B \-n no network connection will be made, causing only file system removals and ! updates to be applied. auth-level is implicitly set to 0. .TP 19 .BI \-p\ port Index: ktcheck.1 =================================================================== RCS file: /cvsroot/radmind/radmind/man/ktcheck.1,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** ktcheck.1 31 Jan 2006 21:18:24 -0000 1.17 --- ktcheck.1 26 Mar 2007 18:56:53 -0000 1.18 *************** *** 66,70 **** When run with the \-n option, .B ktcheck ! verifies but never downloads the command files or transcripts. A tempory special.T is created for verification and is removed on exit. .SH OPTIONS --- 66,70 ---- When run with the \-n option, .B ktcheck ! verifies but never downloads the command files or transcripts. A temporary special.T is created for verification and is removed on exit. .SH OPTIONS Index: radmind.8 =================================================================== RCS file: /cvsroot/radmind/radmind/man/radmind.8,v retrieving revision 1.38 retrieving revision 1.39 diff -C2 -d -r1.38 -r1.39 *** radmind.8 27 Feb 2007 15:19:00 -0000 1.38 --- radmind.8 26 Mar 2007 18:56:54 -0000 1.39 *************** *** 165,170 **** .TP 10 STOR ! store a file or transcript. If user authentication been ! turned on, this command is only valid after the client sends a successful LOGI. .TP 10 --- 165,170 ---- .TP 10 STOR ! store a file or transcript. If user authentication is ! enabled, this command is only valid after the client sends a successful LOGI. .TP 10 *************** *** 269,273 **** .BI \-Z\ max-compression-level Offer compression to clients. If client requests compression, the server will ! compresses all outbound data using using the lower value of max_compression_level or compression level set by client. max-compression-level can be between 0 and 9: --- 269,273 ---- .BI \-Z\ max-compression-level Offer compression to clients. If client requests compression, the server will ! compress all outbound data using using the lower value of max_compression_level or compression level set by client. max-compression-level can be between 0 and 9: Index: rash.1 =================================================================== RCS file: /cvsroot/radmind/radmind/man/rash.1,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** rash.1 27 Feb 2006 14:17:45 -0000 1.4 --- rash.1 26 Mar 2007 18:56:54 -0000 1.5 *************** *** 57,61 **** .B rash first checks to ! see if the command file and transcripts are correct and prompts the uses to update them if needed. The user can also edit the transcript before it is stored on the server. --- 57,61 ---- .B rash first checks to ! see if the command file and transcripts are correct and prompts the user to update them if needed. The user can also edit the transcript before it is stored on the server. Index: lcksum.1 =================================================================== RCS file: /cvsroot/radmind/radmind/man/lcksum.1,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** lcksum.1 17 Mar 2006 19:50:16 -0000 1.12 --- lcksum.1 26 Mar 2007 18:56:53 -0000 1.13 *************** *** 102,107 **** .B \-V displays the version of ! .BR lcksum , ! a list of supported checksumming algorithms in descending order of preference and then exits. .sp --- 102,107 ---- .B \-V displays the version of ! .BR lcksum ! and a list of supported checksumming algorithms in descending order of preference and then exits. .sp Index: lmerge.1 =================================================================== RCS file: /cvsroot/radmind/radmind/man/lmerge.1,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** lmerge.1 19 Jul 2006 19:26:59 -0000 1.8 --- lmerge.1 26 Mar 2007 18:56:53 -0000 1.9 *************** *** 38,42 **** .B lmerge walks through each transcript in precedence order ( highest precedence ! transcript listed first ) to create the appliable transcript .IR dest . If multiple transcripts list the same file system object, the transcript --- 38,42 ---- .B lmerge walks through each transcript in precedence order ( highest precedence ! transcript listed first ) to create the apply-able transcript .IR dest . If multiple transcripts list the same file system object, the transcript Index: lsort.1 =================================================================== RCS file: /cvsroot/radmind/radmind/man/lsort.1,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** lsort.1 14 Oct 2005 18:07:36 -0000 1.1 --- lsort.1 26 Mar 2007 18:56:54 -0000 1.2 *************** *** 16,20 **** sorts each .I transcript ! together together and prints the results to the standard output. If .I transcript --- 16,20 ---- sorts each .I transcript ! together and prints the results to the standard output. If .I transcript Index: twhich.1 =================================================================== RCS file: /cvsroot/radmind/radmind/man/twhich.1,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** twhich.1 14 Apr 2006 21:17:13 -0000 1.6 --- twhich.1 26 Mar 2007 18:56:54 -0000 1.7 *************** *** 70,74 **** .TP 19 .BI \-I ! be case insensitive when compairing paths. .TP 19 .BI \-K\ command --- 70,74 ---- .TP 19 .BI \-I ! be case insensitive when comparing paths. .TP 19 .BI \-K\ command |
From: Andrew M. <fit...@us...> - 2007-03-09 14:33:10
|
Update of /cvsroot/radmind/radmind In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv21068 Modified Files: configure configure.ac Log Message: [Bug 1677170] undefined reference to DNSServiceRegister on Suse Linux 10. Check for presence of libdns_sd. Index: configure.ac =================================================================== RCS file: /cvsroot/radmind/radmind/configure.ac,v retrieving revision 1.39 retrieving revision 1.40 diff -C2 -d -r1.39 -r1.40 *** configure.ac 22 Sep 2006 20:44:41 -0000 1.39 --- configure.ac 9 Mar 2007 14:33:04 -0000 1.40 *************** *** 67,70 **** --- 67,71 ---- ) AC_CHECK_HEADER([dns_sd.h], [AC_DEFINE(HAVE_DNSSD)], [], []) + AC_CHECK_LIB(dns_sd, DNSServiceRegister) CHECK_ZLIB Index: configure =================================================================== RCS file: /cvsroot/radmind/radmind/configure,v retrieving revision 1.49 retrieving revision 1.50 diff -C2 -d -r1.49 -r1.50 *** configure 22 Sep 2006 20:44:41 -0000 1.49 --- configure 9 Mar 2007 14:33:04 -0000 1.50 *************** *** 5275,5278 **** --- 5275,5352 ---- + echo "$as_me:$LINENO: checking for DNSServiceRegister in -ldns_sd" >&5 + echo $ECHO_N "checking for DNSServiceRegister in -ldns_sd... $ECHO_C" >&6 + if test "${ac_cv_lib_dns_sd_DNSServiceRegister+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 + else + ac_check_lib_save_LIBS=$LIBS + LIBS="-ldns_sd $LIBS" + cat >conftest.$ac_ext <<_ACEOF + /* confdefs.h. */ + _ACEOF + cat confdefs.h >>conftest.$ac_ext + cat >>conftest.$ac_ext <<_ACEOF + /* end confdefs.h. */ + + /* Override any gcc2 internal prototype to avoid an error. */ + #ifdef __cplusplus + extern "C" + #endif + /* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ + char DNSServiceRegister (); + int + main () + { + DNSServiceRegister (); + ; + return 0; + } + _ACEOF + rm -f conftest.$ac_objext conftest$ac_exeext + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_dns_sd_DNSServiceRegister=yes + else + echo "$as_me: failed program was:" >&5 + sed 's/^/| /' conftest.$ac_ext >&5 + + ac_cv_lib_dns_sd_DNSServiceRegister=no + fi + rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LIBS=$ac_check_lib_save_LIBS + fi + echo "$as_me:$LINENO: result: $ac_cv_lib_dns_sd_DNSServiceRegister" >&5 + echo "${ECHO_T}$ac_cv_lib_dns_sd_DNSServiceRegister" >&6 + if test $ac_cv_lib_dns_sd_DNSServiceRegister = yes; then + cat >>confdefs.h <<_ACEOF + #define HAVE_LIBDNS_SD 1 + _ACEOF + + LIBS="-ldns_sd $LIBS" + + fi + + echo "$as_me:$LINENO: checking for zlib" >&5 |
From: Patrick M. <ume...@us...> - 2007-03-07 20:00:31
|
Update of /cvsroot/radmind/radmind In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv9301 Modified Files: daemon.c Log Message: Corrected format of debugging information. Index: daemon.c =================================================================== RCS file: /cvsroot/radmind/radmind/daemon.c,v retrieving revision 1.79 retrieving revision 1.80 diff -C2 -d -r1.79 -r1.80 *** daemon.c 23 Feb 2007 20:21:14 -0000 1.79 --- daemon.c 7 Mar 2007 20:00:27 -0000 1.80 *************** *** 498,502 **** if ( WEXITSTATUS( status )) { if ( debug ) { ! printf( "child %d exited with %d", pid, WEXITSTATUS( status )); } else { --- 498,502 ---- if ( WEXITSTATUS( status )) { if ( debug ) { ! printf( "child %d exited with %d\n", pid, WEXITSTATUS( status )); } else { |
From: Patrick M. <ume...@us...> - 2007-02-27 15:36:59
|
Update of /cvsroot/radmind/radmind/man In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv25423 Modified Files: repo.1 Log Message: Clarify that events are limited to a single word. Index: repo.1 =================================================================== RCS file: /cvsroot/radmind/radmind/man/repo.1,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** repo.1 19 Feb 2007 17:10:55 -0000 1.2 --- repo.1 27 Feb 2007 15:36:54 -0000 1.3 *************** *** 42,46 **** .TP 19 .BI \-e\ event ! the event type to report. This is an arbitrary string. .TP 19 .BI \-h\ host --- 42,47 ---- .TP 19 .BI \-e\ event ! the event type to report. This is limited to a single word, containing no ! white space. .TP 19 .BI \-h\ host |
From: Patrick M. <ume...@us...> - 2007-02-27 15:33:11
|
Update of /cvsroot/radmind/radmind In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv23662 Modified Files: repo.c Log Message: Exit after displaying version number. Index: repo.c =================================================================== RCS file: /cvsroot/radmind/radmind/repo.c,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** repo.c 26 Feb 2007 21:54:33 -0000 1.8 --- repo.c 27 Feb 2007 15:33:00 -0000 1.9 *************** *** 84,88 **** case 'V': printf( "%s\n", version ); ! break; case 'w': --- 84,88 ---- case 'V': printf( "%s\n", version ); ! exit( 0 ); case 'w': |
From: Patrick M. <ume...@us...> - 2007-02-27 15:24:51
|
Update of /cvsroot/radmind/radmind/OS_X In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv20199 Modified Files: License.rtf ReadMe.rtf Log Message: Updated copyright information. Index: License.rtf =================================================================== RCS file: /cvsroot/radmind/radmind/OS_X/License.rtf,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** License.rtf 24 May 2006 18:30:00 -0000 1.4 --- License.rtf 27 Feb 2007 15:24:47 -0000 1.5 *************** *** 1,3 **** ! {\rtf1\mac\ansicpg10000\cocoartf824\cocoasubrtf330 {\fonttbl\f0\fswiss\fcharset77 Helvetica-Bold;\f1\fswiss\fcharset77 Helvetica;} {\colortbl;\red255\green255\blue255;} --- 1,3 ---- ! {\rtf1\mac\ansicpg10000\cocoartf824\cocoasubrtf420 {\fonttbl\f0\fswiss\fcharset77 Helvetica-Bold;\f1\fswiss\fcharset77 Helvetica;} {\colortbl;\red255\green255\blue255;} *************** *** 9,13 **** \pard\pardeftab720\ql\qnatural ! \f0\b\fs24 \cf0 Copyright (c) 2003 Regents of The University of Michigan\ All Rights Reserved \f1\b0 \ --- 9,13 ---- \pard\pardeftab720\ql\qnatural ! \f0\b\fs24 \cf0 Copyright (c) 2003, 2007 Regents of The University of Michigan\ All Rights Reserved \f1\b0 \ Index: ReadMe.rtf =================================================================== RCS file: /cvsroot/radmind/radmind/OS_X/ReadMe.rtf,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** ReadMe.rtf 24 May 2006 18:30:19 -0000 1.15 --- ReadMe.rtf 27 Feb 2007 15:24:47 -0000 1.16 *************** *** 1,3 **** ! {\rtf1\mac\ansicpg10000\cocoartf824\cocoasubrtf330 {\fonttbl\f0\fswiss\fcharset77 Helvetica-Bold;\f1\fswiss\fcharset77 Helvetica;} {\colortbl;\red255\green255\blue255;} --- 1,3 ---- ! {\rtf1\mac\ansicpg10000\cocoartf824\cocoasubrtf420 {\fonttbl\f0\fswiss\fcharset77 Helvetica-Bold;\f1\fswiss\fcharset77 Helvetica;} {\colortbl;\red255\green255\blue255;} *************** *** 45,48 **** Visit the radmind web site at http://radmind.org\ \ ! Copyright (c) 2003 Regents of The University of Michigan\ All Rights Reserved} \ No newline at end of file --- 45,48 ---- Visit the radmind web site at http://radmind.org\ \ ! Copyright (c) 2003, 2007 Regents of The University of Michigan\ All Rights Reserved} \ No newline at end of file |
From: Patrick M. <ume...@us...> - 2007-02-27 15:19:09
|
Update of /cvsroot/radmind/radmind/man In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv17789/man Modified Files: radmind.8 Log Message: Cleaned up formatting of STAT section. Index: radmind.8 =================================================================== RCS file: /cvsroot/radmind/radmind/man/radmind.8,v retrieving revision 1.37 retrieving revision 1.38 diff -C2 -d -r1.37 -r1.38 *** radmind.8 20 Feb 2007 14:00:03 -0000 1.37 --- radmind.8 27 Feb 2007 15:19:00 -0000 1.38 *************** *** 152,159 **** Status of a special file is determined by a single transcript line listed in a file named ! .BI special/< special-file-path\c ! >.T, where ! .BI < special-file-path\c ! > is the full path to the special file. If that does not exist, a listing for the file in the --- 152,156 ---- Status of a special file is determined by a single transcript line listed in a file named ! special/<special-file-path>.T , where <special-file-path> is the full path to the special file. If that does not exist, a listing for the file in the |
From: Patrick M. <ume...@us...> - 2007-02-26 21:54:37
|
Update of /cvsroot/radmind/radmind In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv28112 Modified Files: repo.c Log Message: Verify that event is a single word and has length > 0. Index: repo.c =================================================================== RCS file: /cvsroot/radmind/radmind/repo.c,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** repo.c 26 Feb 2007 20:24:15 -0000 1.7 --- repo.c 26 Feb 2007 21:54:33 -0000 1.8 *************** *** 10,13 **** --- 10,14 ---- #include <sys/time.h> #include <netinet/in.h> + #include <ctype.h> #include <netdb.h> #include <stdio.h> *************** *** 46,50 **** SNET *sn; int c, port = htons( 6662 ); ! int i = 1, err = 0, len; int authlevel = _RADMIND_AUTHLEVEL; int use_randfile = 0; --- 47,51 ---- SNET *sn; int c, port = htons( 6662 ); ! int i = 0, err = 0, len; int authlevel = _RADMIND_AUTHLEVEL; int use_randfile = 0; *************** *** 125,130 **** --- 126,144 ---- } + /* Make sure event doesn't contain any white space */ if ( event == NULL ) { err++; + } else { + len = strlen( event ); + if ( len == 0 ) { + err++; + } else { + for ( i = 0; i < len; i++ ) { + if ( isspace( event[ i ] )) { + err++; + break; + } + } + } } *************** *** 157,160 **** --- 171,176 ---- strcpy( repodata, argv[ optind ] ); + /* Skip first token in message */ + i = 1; for ( i += optind; i < argc; i++ ) { if (( strlen( repodata ) + strlen( argv[ i ] ) + 2 ) |
From: Patrick M. <ume...@us...> - 2007-02-26 20:24:21
|
Update of /cvsroot/radmind/radmind In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv22774 Modified Files: repo.c Log Message: Report error if server does not support reporting. Index: repo.c =================================================================== RCS file: /cvsroot/radmind/radmind/repo.c,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** repo.c 23 Feb 2007 20:21:14 -0000 1.6 --- repo.c 26 Feb 2007 20:24:15 -0000 1.7 *************** *** 197,200 **** --- 197,201 ---- /* Check to see if server supports reporting */ if ( check_capability( "REPO", capa ) == 0 ) { + fprintf( stderr, "%s: server does not support reporting\n", host ); exit( 2 ); } |
From: Patrick M. <ume...@us...> - 2007-02-23 20:21:21
|
Update of /cvsroot/radmind/radmind In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv17467 Modified Files: command.c daemon.c ktcheck.c ra.sh repo.c report.c transcript.c Log Message: Updated copyright info. Index: report.c =================================================================== RCS file: /cvsroot/radmind/radmind/report.c,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** report.c 19 Feb 2007 17:15:55 -0000 1.3 --- report.c 23 Feb 2007 20:21:14 -0000 1.4 *************** *** 1,4 **** /* ! * Copyright (c) 2006 Regents of The University of Michigan. * All Rights Reserved. See COPYRIGHT. */ --- 1,4 ---- /* ! * Copyright (c) 2006, 2007 Regents of The University of Michigan. * All Rights Reserved. See COPYRIGHT. */ Index: transcript.c =================================================================== RCS file: /cvsroot/radmind/radmind/transcript.c,v retrieving revision 1.116 retrieving revision 1.117 diff -C2 -d -r1.116 -r1.117 *** transcript.c 26 Jan 2007 18:26:08 -0000 1.116 --- transcript.c 23 Feb 2007 20:21:14 -0000 1.117 *************** *** 1,4 **** /* ! * Copyright (c) 2003 Regents of The University of Michigan. * All Rights Reserved. See COPYRIGHT. */ --- 1,4 ---- /* ! * Copyright (c) 2003, 2007 Regents of The University of Michigan. * All Rights Reserved. See COPYRIGHT. */ Index: daemon.c =================================================================== RCS file: /cvsroot/radmind/radmind/daemon.c,v retrieving revision 1.78 retrieving revision 1.79 diff -C2 -d -r1.78 -r1.79 *** daemon.c 18 Feb 2007 23:19:57 -0000 1.78 --- daemon.c 23 Feb 2007 20:21:14 -0000 1.79 *************** *** 1,4 **** /* ! * Copyright (c) 2003 Regents of The University of Michigan. * All Rights Reserved. See COPYRIGHT. */ --- 1,4 ---- /* ! * Copyright (c) 2003, 2007 Regents of The University of Michigan. * All Rights Reserved. See COPYRIGHT. */ Index: command.c =================================================================== RCS file: /cvsroot/radmind/radmind/command.c,v retrieving revision 1.136 retrieving revision 1.137 diff -C2 -d -r1.136 -r1.137 *** command.c 19 Feb 2007 21:26:32 -0000 1.136 --- command.c 23 Feb 2007 20:21:14 -0000 1.137 *************** *** 1,4 **** /* ! * Copyright (c) 2003 Regents of The University of Michigan. * All Rights Reserved. See COPYRIGHT. */ --- 1,4 ---- /* ! * Copyright (c) 2003, 2007 Regents of The University of Michigan. * All Rights Reserved. See COPYRIGHT. */ Index: repo.c =================================================================== RCS file: /cvsroot/radmind/radmind/repo.c,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** repo.c 19 Feb 2007 17:10:55 -0000 1.5 --- repo.c 23 Feb 2007 20:21:14 -0000 1.6 *************** *** 1,4 **** /* ! * Copyright (c) 2006 Regents of The University of Michigan. * All Rights Reserved. See COPYRIGHT. */ --- 1,4 ---- /* ! * Copyright (c) 2006, 2007 Regents of The University of Michigan. * All Rights Reserved. See COPYRIGHT. */ Index: ktcheck.c =================================================================== RCS file: /cvsroot/radmind/radmind/ktcheck.c,v retrieving revision 1.118 retrieving revision 1.119 diff -C2 -d -r1.118 -r1.119 *** ktcheck.c 19 Feb 2007 16:31:04 -0000 1.118 --- ktcheck.c 23 Feb 2007 20:21:14 -0000 1.119 *************** *** 1,4 **** /* ! * Copyright (c) 2003 Regents of The University of Michigan. * All Rights Reserved. See COPYRIGHT. */ --- 1,4 ---- /* ! * Copyright (c) 2003, 2007 Regents of The University of Michigan. * All Rights Reserved. See COPYRIGHT. */ Index: ra.sh =================================================================== RCS file: /cvsroot/radmind/radmind/ra.sh,v retrieving revision 1.38 retrieving revision 1.39 diff -C2 -d -r1.38 -r1.39 *** ra.sh 7 Feb 2007 15:30:20 -0000 1.38 --- ra.sh 23 Feb 2007 20:21:14 -0000 1.39 *************** *** 1,4 **** --- 1,7 ---- #!/bin/sh # + # Copyright (c) 2004, 2007 Regents of The University of Michigan. + # All Rights Reserved. See COPYRIGHT. + # # Radmind Assistant shell script (rash) # Basic client side functions include: |
From: Patrick M. <ume...@us...> - 2007-02-20 14:00:15
|
Update of /cvsroot/radmind/radmind/man In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv13406 Modified Files: radmind.8 Log Message: Added details on REPO's log format. Index: radmind.8 =================================================================== RCS file: /cvsroot/radmind/radmind/man/radmind.8,v retrieving revision 1.36 retrieving revision 1.37 diff -C2 -d -r1.36 -r1.37 *** radmind.8 22 Nov 2006 18:36:43 -0000 1.36 --- radmind.8 20 Feb 2007 14:00:03 -0000 1.37 *************** *** 184,190 **** .TP 10 REPO ! report a client status message. The daemon logs the message and some of the ! reporting client's attributes, including client name, client IP address, ! client CN, and the report event type. .SH OPTIONS .TP 19 --- 184,198 ---- .TP 10 REPO ! report a client status message. The daemon logs the message in the following format: ! .sp ! .RS ! report HOSTNAME IP CN - EVENT MESSAGE... ! .sp ! First the string "report", followed by the client's hostname and ! IP address. If the client authenticates to the server with a certificate, ! its common name will be listed next. If the client does not present a ! certificate, a '-' will be listed. ! Next, a '-' is printed as a placeholder for a future ! field. Finally, the event and message are logged as reported by the client. .SH OPTIONS .TP 19 |
From: Patrick M. <ume...@us...> - 2007-02-19 21:26:36
|
Update of /cvsroot/radmind/radmind In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv7704 Modified Files: command.c Log Message: Moved syslog calls before snet calls so correct error is reported on server. Addresses bug in SSL_write that overwrites errno when using non-blocking IO. Index: command.c =================================================================== RCS file: /cvsroot/radmind/radmind/command.c,v retrieving revision 1.135 retrieving revision 1.136 diff -C2 -d -r1.135 -r1.136 *** command.c 19 Feb 2007 17:05:28 -0000 1.135 --- command.c 19 Feb 2007 21:26:32 -0000 1.136 *************** *** 614,619 **** } if ( do_cksum( path, cksum_b64 ) < 0 ) { - snet_writef( sn, "%d Checksum Error: %s: %m\r\n", 500, path ); syslog( LOG_ERR, "do_cksum: %s: %m", path ); return( 1 ); } --- 614,619 ---- } if ( do_cksum( path, cksum_b64 ) < 0 ) { syslog( LOG_ERR, "do_cksum: %s: %m", path ); + snet_writef( sn, "%d Checksum Error: %s: %m\r\n", 500, path ); return( 1 ); } *************** *** 1129,1135 **** if (( retval = pam_start( "radmind", user, &pam_conv, &pamh )) != PAM_SUCCESS ) { - snet_writef( sn, "%d Authentication Failed\r\n", 535 ); syslog( LOG_ERR, "f_login: pam_start: %s\n", pam_strerror( pamh, retval )); return( 1 ); } --- 1129,1135 ---- if (( retval = pam_start( "radmind", user, &pam_conv, &pamh )) != PAM_SUCCESS ) { syslog( LOG_ERR, "f_login: pam_start: %s\n", pam_strerror( pamh, retval )); + snet_writef( sn, "%d Authentication Failed\r\n", 535 ); return( 1 ); } *************** *** 1137,1143 **** /* is user really user? */ if (( retval = pam_authenticate( pamh, PAM_SILENT )) != PAM_SUCCESS ) { - snet_writef( sn, "%d Authentication Failed\r\n", 535 ); syslog( LOG_ERR, "f_login: pam_authenticate: %s\n", pam_strerror( pamh, retval )); return( 1 ); } --- 1137,1143 ---- /* is user really user? */ if (( retval = pam_authenticate( pamh, PAM_SILENT )) != PAM_SUCCESS ) { syslog( LOG_ERR, "f_login: pam_authenticate: %s\n", pam_strerror( pamh, retval )); + snet_writef( sn, "%d Authentication Failed\r\n", 535 ); return( 1 ); } *************** *** 1146,1159 **** /* permitted access? */ if (( retval = pam_acct_mgmt( pamh, 0 )) != PAM_SUCCESS ) { - snet_writef( sn, "%d Authentication Failed\r\n", 535 ); syslog( LOG_ERR, "f_login: pam_acct_mgmt: %s\n", pam_strerror( pamh, retval )); return( 1 ); } if (( retval = pam_end( pamh, retval )) != PAM_SUCCESS ) { - snet_writef( sn, "%d Authentication Failed\r\n", 535 ); syslog( LOG_ERR, "f_login: pam_end: %s\n", pam_strerror( pamh, retval )); return( 1 ); } --- 1146,1159 ---- /* permitted access? */ if (( retval = pam_acct_mgmt( pamh, 0 )) != PAM_SUCCESS ) { syslog( LOG_ERR, "f_login: pam_acct_mgmt: %s\n", pam_strerror( pamh, retval )); + snet_writef( sn, "%d Authentication Failed\r\n", 535 ); return( 1 ); } if (( retval = pam_end( pamh, retval )) != PAM_SUCCESS ) { syslog( LOG_ERR, "f_login: pam_end: %s\n", pam_strerror( pamh, retval )); + snet_writef( sn, "%d Authentication Failed\r\n", 535 ); return( 1 ); } *************** *** 1326,1339 **** if ( snprintf( path, MAXPATHLEN, "command/%s", kfile ) >= MAXPATHLEN ) { snet_writef( sn, "%d Service not available, closing transmission channel\r\n", 421 ); - syslog( LOG_ERR, "read_kfile: command/%s: path too long", kfile ); return( -1 ); } if (( acav = acav_alloc( )) == NULL ) { snet_writef( sn, "%d Service not available, closing transmission channel\r\n", 421 ); - syslog( LOG_ERR, "acav_alloc: %m" ); return( -1 ); } --- 1326,1339 ---- if ( snprintf( path, MAXPATHLEN, "command/%s", kfile ) >= MAXPATHLEN ) { + syslog( LOG_ERR, "read_kfile: command/%s: path too long", kfile ); snet_writef( sn, "%d Service not available, closing transmission channel\r\n", 421 ); return( -1 ); } if (( acav = acav_alloc( )) == NULL ) { + syslog( LOG_ERR, "acav_alloc: %m" ); snet_writef( sn, "%d Service not available, closing transmission channel\r\n", 421 ); return( -1 ); } *************** *** 1356,1364 **** if ( ac != 2 ) { snet_writef( sn, "%d Service not available, closing transmission channel\r\n", 421 ); - syslog( LOG_ERR, "%s: line %d: invalid number of arguments", - kfile, linenum ); goto error; } --- 1356,1364 ---- if ( ac != 2 ) { + syslog( LOG_ERR, "%s: line %d: invalid number of arguments", + kfile, linenum ); snet_writef( sn, "%d Service not available, closing transmission channel\r\n", 421 ); goto error; } *************** *** 1368,1374 **** if ( !list_check( access_list, av[ 1 ] )) { if ( list_insert( access_list, av[ 1 ] ) != 0 ) { snet_writef( sn, "%d Service not available, closing transmission channel\r\n", 421 ); - syslog( LOG_ERR, "list_insert: %m" ); goto error; } --- 1368,1374 ---- if ( !list_check( access_list, av[ 1 ] )) { if ( list_insert( access_list, av[ 1 ] ) != 0 ) { + syslog( LOG_ERR, "list_insert: %m" ); snet_writef( sn, "%d Service not available, closing transmission channel\r\n", 421 ); goto error; } *************** *** 1383,1389 **** if ( !list_check( access_list, av[ 1 ] )) { if ( list_insert( access_list, av[ 1 ] ) != 0 ) { snet_writef( sn, "%d Service not available, closing transmission channel\r\n", 421 ); - syslog( LOG_ERR, "list_insert: %m" ); goto error; } --- 1383,1389 ---- if ( !list_check( access_list, av[ 1 ] )) { if ( list_insert( access_list, av[ 1 ] ) != 0 ) { + syslog( LOG_ERR, "list_insert: %m" ); snet_writef( sn, "%d Service not available, closing transmission channel\r\n", 421 ); goto error; } *************** *** 1395,1403 **** default: snet_writef( sn, "%d Service not available, closing transmission channel\r\n", 421 ); - syslog( LOG_ERR, "%s: line %d: %c: unknown file type", kfile, - linenum, *av[ 0 ] ); goto error; --- 1395,1403 ---- default: + syslog( LOG_ERR, "%s: line %d: %c: unknown file type", kfile, + linenum, *av[ 0 ] ); snet_writef( sn, "%d Service not available, closing transmission channel\r\n", 421 ); goto error; *************** *** 1405,1412 **** if ( ferror( f )) { snet_writef( sn, "%d Service not available, closing transmission channel\r\n", 421 ); - syslog( LOG_ERR, "fgets: %m" ); goto error; } --- 1405,1412 ---- if ( ferror( f )) { + syslog( LOG_ERR, "fgets: %m" ); snet_writef( sn, "%d Service not available, closing transmission channel\r\n", 421 ); goto error; } *************** *** 1414,1427 **** if ( fclose( f ) != 0 ) { snet_writef( sn, "%d Service not available, closing transmission channel\r\n", 421 ); - syslog( LOG_ERR, "fclose: %m" ); goto error; } if ( acav_free( acav ) != 0 ) { snet_writef( sn, "%d Service not available, closing transmission channel\r\n", 421 ); - syslog( LOG_ERR, "acav_free: %m" ); return( -1 ); } --- 1414,1427 ---- if ( fclose( f ) != 0 ) { + syslog( LOG_ERR, "fclose: %m" ); snet_writef( sn, "%d Service not available, closing transmission channel\r\n", 421 ); goto error; } if ( acav_free( acav ) != 0 ) { + syslog( LOG_ERR, "acav_free: %m" ); snet_writef( sn, "%d Service not available, closing transmission channel\r\n", 421 ); return( -1 ); } *************** *** 1486,1492 **** if ( maxconnections != 0 ) { if ( connections > maxconnections ) { - snet_writef( sn, "%d Server busy\r\n", 420 ); syslog( LOG_INFO, "%s: connection refused: server busy\r\n", remote_host ); exit( 1 ); } --- 1486,1492 ---- if ( maxconnections != 0 ) { if ( connections > maxconnections ) { syslog( LOG_INFO, "%s: connection refused: server busy\r\n", remote_host ); + snet_writef( sn, "%d Server busy\r\n", 420 ); exit( 1 ); } *************** *** 1494,1500 **** if (( access_list = list_new( )) == NULL ) { snet_writef( sn, "%d Service not available, closing transmission channel\r\n", 421 ); - syslog( LOG_ERR, "new_list: %m" ); return( -1 ); } --- 1494,1500 ---- if (( access_list = list_new( )) == NULL ) { + syslog( LOG_ERR, "new_list: %m" ); snet_writef( sn, "%d Service not available, closing transmission channel\r\n", 421 ); return( -1 ); } *************** *** 1503,1509 **** /* lookup proper command file based on the hostname, IP or CN */ if ( command_k( "config" ) < 0 ) { - snet_writef( sn, "%d No access for %s\r\n", 500, remote_host ); syslog( LOG_INFO, "%s: Access denied: Not in config file", ! remote_host ); exit( 1 ); } else { --- 1503,1509 ---- /* lookup proper command file based on the hostname, IP or CN */ if ( command_k( "config" ) < 0 ) { syslog( LOG_INFO, "%s: Access denied: Not in config file", ! remote_host ); ! snet_writef( sn, "%d No access for %s\r\n", 500, remote_host ); exit( 1 ); } else { |
From: Patrick M. <ume...@us...> - 2007-02-19 17:16:12
|
Update of /cvsroot/radmind/radmind In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv29776 Modified Files: report.c Log Message: Removed new verbose log; snet_getline_multi already does it. Index: report.c =================================================================== RCS file: /cvsroot/radmind/radmind/report.c,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** report.c 19 Feb 2007 17:09:19 -0000 1.2 --- report.c 19 Feb 2007 17:15:55 -0000 1.3 *************** *** 68,73 **** } - if ( verbose ) printf( "<<< %s\n", line ); - return( 0 ); } --- 68,71 ---- |
From: Patrick M. <ume...@us...> - 2007-02-19 17:11:04
|
Update of /cvsroot/radmind/radmind/man In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv27757/man Modified Files: repo.1 Log Message: Clarified the usage statement. Index: repo.1 =================================================================== RCS file: /cvsroot/radmind/radmind/man/repo.1,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** repo.1 22 Nov 2006 18:38:42 -0000 1.1 --- repo.1 19 Feb 2007 17:10:55 -0000 1.2 *************** *** 23,27 **** .BI \-Z\ compression-level ] [ ! .I event message ... ] .SH DESCRIPTION --- 23,27 ---- .BI \-Z\ compression-level ] [ ! .I message ... ] .SH DESCRIPTION |
From: Patrick M. <ume...@us...> - 2007-02-19 17:10:58
|
Update of /cvsroot/radmind/radmind In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv27757 Modified Files: repo.c Log Message: Clarified the usage statement. Index: repo.c =================================================================== RCS file: /cvsroot/radmind/radmind/repo.c,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** repo.c 19 Feb 2007 15:57:17 -0000 1.4 --- repo.c 19 Feb 2007 17:10:55 -0000 1.5 *************** *** 134,138 **** fprintf( stderr, "[ -w auth-level ] [ -x ca-pem-file ] " ); fprintf( stderr, "[ -y cert-pem-file ] [ -z key-pem-file ] " ); ! fprintf( stderr, "[ -Z compression-level ] [ event message ... ]\n" ); exit( 1 ); } --- 134,138 ---- fprintf( stderr, "[ -w auth-level ] [ -x ca-pem-file ] " ); fprintf( stderr, "[ -y cert-pem-file ] [ -z key-pem-file ] " ); ! fprintf( stderr, "[ -Z compression-level ] [ message ... ]\n" ); exit( 1 ); } |
From: Patrick M. <ume...@us...> - 2007-02-19 17:09:22
|
Update of /cvsroot/radmind/radmind In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv27024 Modified Files: report.c Log Message: Log server response when run in verbose mode. Index: report.c =================================================================== RCS file: /cvsroot/radmind/radmind/report.c,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** report.c 22 Nov 2006 18:37:23 -0000 1.1 --- report.c 19 Feb 2007 17:09:19 -0000 1.2 *************** *** 68,71 **** --- 68,73 ---- } + if ( verbose ) printf( "<<< %s\n", line ); + return( 0 ); } |
From: Patrick M. <ume...@us...> - 2007-02-19 17:05:40
|
Update of /cvsroot/radmind/radmind In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv24960 Modified Files: command.c Log Message: syslog() before snet_writef() to avoid SSL_write's errno resetting. [BUG #1660749] Thanks to Gabrielle Singleton for reporting the problem. Index: command.c =================================================================== RCS file: /cvsroot/radmind/radmind/command.c,v retrieving revision 1.134 retrieving revision 1.135 diff -C2 -d -r1.134 -r1.135 *** command.c 28 Dec 2006 17:05:34 -0000 1.134 --- command.c 19 Feb 2007 17:05:28 -0000 1.135 *************** *** 1340,1346 **** if (( f = fopen( path, "r" )) == NULL ) { snet_writef( sn, "%d Service not available, closing transmission channel\r\n", 421 ); - syslog( LOG_ERR, "fopen: %s: %m", path ); return( -1 ); } --- 1340,1346 ---- if (( f = fopen( path, "r" )) == NULL ) { + syslog( LOG_ERR, "fopen: %s: %m", path ); snet_writef( sn, "%d Service not available, closing transmission channel\r\n", 421 ); return( -1 ); } |
From: Patrick M. <ume...@us...> - 2007-02-19 16:31:09
|
Update of /cvsroot/radmind/radmind In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv11792 Modified Files: ktcheck.c Log Message: Exit on all non 2xx server responses to avoid all cascading error messages. Index: ktcheck.c =================================================================== RCS file: /cvsroot/radmind/radmind/ktcheck.c,v retrieving revision 1.117 retrieving revision 1.118 diff -C2 -d -r1.117 -r1.118 *** ktcheck.c 19 Feb 2007 16:09:54 -0000 1.117 --- ktcheck.c 19 Feb 2007 16:31:04 -0000 1.118 *************** *** 258,267 **** } if ( *line != '2' ) { ! fprintf( stderr, "%s\n", line ); ! if ( *line == '5' ) { ! exit( 2 ); ! } else { ! return( -1 ); ! } } --- 258,263 ---- } if ( *line != '2' ) { ! fprintf( stderr, "%s\n", line ); ! exit( 2 ); } |