Bug 1249

Summary: Problem parsing count parameters (always parses as 0)
Product: [Retired] Red Hat Linux Reporter: hornbeck
Component: mt-stAssignee: Michael K. Johnson <johnsonm>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.2CC: hornbeck
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 1999-04-10 03:50:11 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description hornbeck 1999-02-19 19:56:17 UTC
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,

Comment 1 Michael K. Johnson 1999-04-10 03:50:59 UTC
Fixed in mt-st-0.5b AFAICT