Bug 1249 - Problem parsing count parameters (always parses as 0)
Problem parsing count parameters (always parses as 0)
Status: CLOSED CURRENTRELEASE
Product: Red Hat Linux
Classification: Retired
Component: mt-st (Show other bugs)
5.2
All Linux
medium Severity medium
: ---
: ---
Assigned To: Michael K. Johnson
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 1999-02-19 14:56 EST by hornbeck
Modified: 2008-05-01 11:37 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 1999-04-09 23:50:11 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description hornbeck 1999-02-19 14:56:17 EST
There is a problem with mt-st-0.5.  For the 'mt' commands
processed by the 'do_standard' function, the count arguments
are not processed properly and are always treated as 0.

The problem is in 'mt.c' line 285 while reads :
  i = comp->cmd_function(mtfd, comp, argc - 2, &(argv[2]));

It should read :
    i = comp->cmd_function(mtfd, comp, argc - argn,
&(argv[argn]));
Comment 1 Michael K. Johnson 1999-04-09 23:50:59 EDT
Fixed in mt-st-0.5b AFAICT

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