Package: fping
Version: 2.4b2-to-ipv6-11
Severity: normal

Hi,

fping does not accept -r0 option to disable retry, instead it prints out
usage information claiming 0 is the default value for -r, which is very
confusing, as the manpage of fping(8) says the default is 3.

The following patch enables -r0 for fping, and fixes the usage
information.

--begin--
--- fping.c.old 2005-07-15 10:13:35.000000000 +0100
+++ fping.c     2005-07-15 10:19:27.000000000 +0100
@@ -540,7 +540,7 @@
                        break;
                
                case 'r':
-                       if( !( retry = ( u_int )atoi( optarg ) ) )
+                       if( ( retry = ( u_int )atoi( optarg ) ) < 0 )
                                usage();
 
                        break;
@@ -2807,7 +2807,7 @@
        fprintf( stderr, "                (in looping and counting modes, 
default %d)\n", perhost_interval / 100 );
        fprintf( stderr, "   -q         quiet (don't show per-target/per-ping 
results)\n" );
        fprintf( stderr, "   -Q n       same as -q, but show summary every n 
seconds\n" );
-       fprintf( stderr, "   -r n       number of retries (default %d)\n", 
retry );
+       fprintf( stderr, "   -r n       number of retries (default %d)\n", 
DEFAULT_RETRY );
        fprintf( stderr, "   -s         print final stats\n" );
        fprintf( stderr, "   -S addr    set source address\n" );
        fprintf( stderr, "   -t n       individual target initial timeout (in 
millisec) (default %d)\n", timeout / 100 );
--end--

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.11-1-686
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages fping depends on:
ii  libc6                       2.3.2.ds1-22 GNU C Library: Shared libraries an

fping recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to