[Nagiosplug-devel] [ nagiosplug-Bugs-1123292 ] check_swap: invalid scanf specification in argument parse

SourceForge.net noreply at sourceforge.net
Mon Jun 27 17:30:46 CEST 2005


Bugs item #1123292, was opened at 2005-02-15 13:17
Message generated for change (Comment added) made by seanius
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1123292&group_id=29880

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Argument proccessing
Group: Release (specify)
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Steve Greenland (vmole)
>Assigned to: M. Sean Finney (seanius)
Summary: check_swap: invalid scanf specification in argument parse

Initial Comment:
Parsing the values of -w and -c (may) use the scanf()
fmt string "%.0f, %d%%". However, precision specifiers
are invalid in scanf() processing. I suppose the intent
is to trim off any trailing fraction, but that can't be
done in scanf(). Instead, read the whole value, and
then use floor(3).

----------------------------------------------------------------------

>Comment By: M. Sean Finney (seanius)
Date: 2005-06-27 20:27

Message:
Logged In: YES 
user_id=226838

thanks for pointing this out.  i've updated the update the
plugin to use floor and the configure/makefile.am to test
for -lm which many systems need for floor.

----------------------------------------------------------------------

Comment By: M. Sean Finney (seanius)
Date: 2005-06-27 20:27

Message:
Logged In: YES 
user_id=226838

this problem is now fixed in cvs.  thank you for your report.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1123292&group_id=29880




More information about the Devel mailing list