Bug 81680 - bad source code
bad source code
Status: CLOSED CURRENTRELEASE
Product: Red Hat Linux
Classification: Retired
Component: autofs (Show other bugs)
8.0
All Linux
medium Severity medium
: ---
: ---
Assigned To: Nalin Dahyabhai
Brock Organ
:
: 110694 (view as bug list)
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2003-01-12 13:34 EST by d.binderman
Modified: 2007-04-18 12:49 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2004-03-19 18:05:10 EST
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 d.binderman 2003-01-12 13:34:34 EST
From Bugzilla Helper:
User-Agent: Mozilla/4.6 [en-gb]C-CCK-MCD NetscapeOnline.co.uk  (Win98; I)

Description of problem:

Hello there,

I just tried to compile package autofs-3.1.7-33 from Redhat 8.0

The compiler said

parse_sun.c:467: warning: too few arguments for format

Here is an untested patch to shut up the compiler

*** ./modules/parse_sun.c.old	2003-01-04 14:30:56.000000000 +0000
--- ./modules/parse_sun.c	2003-01-04 14:32:03.000000000 +0000
***************
*** 464,470 ****
      if ( !strncmp(q, "fstype=", 7) ) {
        fstype = alloca(strlen(q+7)+1);
        if ( !fstype ) {
! 	syslog(LOG_ERR, MODPREFIX "alloca: %s");
  	return 1;
        }
        strcpy(fstype, q+7);
--- 464,470 ----
      if ( !strncmp(q, "fstype=", 7) ) {
        fstype = alloca(strlen(q+7)+1);
        if ( !fstype ) {
! 	syslog(LOG_ERR, MODPREFIX "alloca: %s", "");
  	return 1;
        }
        strcpy(fstype, q+7);

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


How reproducible:
Always

Steps to Reproduce:
1. compile with compiler that checks printf format strings
2.
3.
    

Additional info
Comment 1 Miloslav Trmac 2004-02-04 20:41:05 EST
*** Bug 110694 has been marked as a duplicate of this bug. ***

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