Bug 236725 - ping does not work for subsecond intervals for ordinary user
Summary: ping does not work for subsecond intervals for ordinary user
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: iputils
Version: rawhide
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Martin Bacovsky
QA Contact:
URL:
Whiteboard:
: 239297 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-04-17 12:41 UTC by Tomasz Kepczynski
Modified: 2007-11-30 22:12 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-08-07 10:59:58 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Tomasz Kepczynski 2007-04-17 12:41:06 UTC
Description of problem:

Selfexplanatory:

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

Version-Release number of selected component (if applicable):
iputils-20070202-3.fc6.i386

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 12:54:13 UTC
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
settings.


Comment 2 Jiri Slaby 2007-06-13 20:21:58 UTC
*** Bug 239297 has been marked as a duplicate of this bug. ***

Comment 3 Martin Bacovsky 2007-08-07 10:59:58 UTC
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.