# HG changeset patch # User mnalis # Date 983227286 0 # Node ID cf2274194d38b0a21fe63a7a1cd1b4c3073dd5b3 # Parent 7ba337dafb2c278946a6d7b725250c208474fc5c [svn] small option parsing fix diff -r 7ba337dafb2c -r cf2274194d38 ChangeLog --- a/ChangeLog Sun Feb 25 23:29:50 2001 +0000 +++ b/ChangeLog Mon Feb 26 22:41:26 2001 +0000 @@ -1,3 +1,7 @@ +Sun Feb 26 2001 Matija Nalis + + * fix for small glitches in options parting in src/noffle.c + Sun Feb 25 2001 Jim Hague * TODO,content.c,lock.c,server.c,server.h: Remove bug notice re: diff -r 7ba337dafb2c -r cf2274194d38 src/noffle.c --- a/src/noffle.c Sun Feb 25 23:29:50 2001 +0000 +++ b/src/noffle.c Mon Feb 26 22:41:26 2001 +0000 @@ -10,7 +10,7 @@ received for some seconds (to allow multiple clients connect at the same time). - $Id: noffle.c 249 2001-01-25 13:38:31Z bears $ + $Id: noffle.c 261 2001-02-26 22:41:26Z mnalis $ */ #if HAVE_CONFIG_H @@ -411,7 +411,7 @@ else if ( strcmp( cmd, "desc" ) != 0 && strcmp( cmd, "post" ) != 0 ) { - fprintf( stderr, "Unknown argument -m %s\n", optarg ); + fprintf( stderr, "Unknown argument -m %s\n", cmd ); return FALSE; } @@ -447,7 +447,7 @@ Grp_setPostAllow( grp, c ); else { - fprintf( stderr, "Access must be 'y', 'n' or 'm'" ); + fprintf( stderr, "Access must be 'y', 'n' or 'm'\n" ); return FALSE; } } @@ -883,7 +883,7 @@ result = EXIT_FAILURE; } else - if ( ! doModify( *argv, --argc, ++argv ) ) + if ( ! doModify( argv[0], --argc, &argv[1] ) ) result = EXIT_FAILURE; break; case 'n':