Bug 236725 - ping does not work for subsecond intervals for ordinary user
ping does not work for subsecond intervals for ordinary user
Product: Fedora
Classification: Fedora
Component: iputils (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Martin Bacovsky
: 239297 (view as bug list)
Depends On:
  Show dependency treegraph
Reported: 2007-04-17 08:41 EDT by Tomasz Kepczynski
Modified: 2007-11-30 17:12 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-08-07 06:59:58 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Tomasz Kepczynski 2007-04-17 08:41:06 EDT
Description of problem:


gklab-59-001:~/rpmbuild/SOURCES> ping -i 0.3 localhost
PING localhost.localdomain ( 56(84) bytes of data.
ping: cannot flood; minimal interval, allowed for user, is 200ms

Version-Release number of selected component (if applicable):

How reproducible:
Always for normal user, never for root (but I strongly
suspect that interval in such a case is set to either 0 or 1000ms).

Steps to Reproduce:
See above
Actual results:
ping does not allow subsecond intervals for normal users

Expected results:
ping allows subsecond intervals longer then 200ms
for normal users

Additional info:
iputils-20020927-18.EL4.3.i386 as distributed in CentOS 4.4
works OK.
Comment 1 Tomasz Kepczynski 2007-04-17 08:54:13 EDT
The important thing I've just found out: locale. The problem
exists in pl_PL.UTF-8 locale but not in C or en_US. I guess
the decimal separator is the important part here.
common_options hast something like that:
        case 'i':               /* wait between sending packets */
                if (strchr(optarg, '.')) {
                        float t;
                        int r;

while '.' above in strchr should probably be taken from locale
Comment 2 Jiri Slaby 2007-06-13 16:21:58 EDT
*** Bug 239297 has been marked as a duplicate of this bug. ***
Comment 3 Martin Bacovsky 2007-08-07 06:59:58 EDT
This issue should be fixed in RAWHIDE (iputils-20070202-4.fc8)

Note You need to log in before you can comment on or make changes to this bug.