Bug 82186 - broken source code
broken source code
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: krb5 (Show other bugs)
8.0
All Linux
medium Severity medium
: ---
: ---
Assigned To: Nalin Dahyabhai
Brian Brock
:
: 105838 (view as bug list)
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2003-01-19 05:14 EST by d.binderman
Modified: 2007-04-18 12:50 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2004-12-18 14:58:38 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-19 05:14:42 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 krb5-1.2.5-6 from Redhat 8.0

The compiler said

client.c:220: warning: too few arguments for format
client.c:326: warning: too few arguments for format
./ftpcmd.y:1287: warning: operation on `state' may be undefined

Here is an untested patch to shut up the compiler

*** ./src/appl/gssftp/ftpd/ftpcmd.y.old	2003-01-12 11:02:39.000000000 +0000
--- ./src/appl/gssftp/ftpd/ftpcmd.y	2003-01-12 11:05:40.000000000 +0000
***************
*** 1284,1290 ****
  		dostr1:
  			if (cbuf[cpos] == ' ') {
  				cpos++;
! 				state = state == OSTR ? STR2 : ++state;
  				return (SP);
  			}
  			break;
--- 1284,1290 ----
  		dostr1:
  			if (cbuf[cpos] == ' ') {
  				cpos++;
! 				state = (state == OSTR) ? STR2 : (state + 1);
  				return (SP);
  			}
  			break;
*** ./src/lib/rpc/unit-test/client.c.old	2003-01-12 10:58:40.000000000 +0000
--- ./src/lib/rpc/unit-test/client.c	2003-01-12 11:05:13.000000000 +0000
***************
*** 217,223 ****
  	  if (strncmp(*echo_resp, "Echo: ", 6) &&
  	      strcmp(echo_arg, (*echo_resp) + 6) != 0)
  	       fprintf(stderr, "RPC_TEST_ECHO call %d response wrong: "
! 		       "arg = %s, resp = %s\n", echo_arg, *echo_resp);
  	  gssrpc_xdr_free(xdr_wrapstring, echo_resp);
       }
  
--- 217,223 ----
  	  if (strncmp(*echo_resp, "Echo: ", 6) &&
  	      strcmp(echo_arg, (*echo_resp) + 6) != 0)
  	       fprintf(stderr, "RPC_TEST_ECHO call %d response wrong: "
! 		       "arg = %s, resp = %s\n", i, echo_arg, *echo_resp);
  	  gssrpc_xdr_free(xdr_wrapstring, echo_resp);
       }
  
***************
*** 323,329 ****
  	       if (strncmp(*echo_resp, "Echo: ", 6) &&
  		   strcmp(echo_arg, (*echo_resp) + 6) != 0)
  		    fprintf(stderr,
! 			    "RPC_TEST_LENGTHS call %d response wrong\n");
  	       gssrpc_xdr_free(xdr_wrapstring, echo_resp);
  	  }
  	  
--- 323,329 ----
  	       if (strncmp(*echo_resp, "Echo: ", 6) &&
  		   strcmp(echo_arg, (*echo_resp) + 6) != 0)
  		    fprintf(stderr,
! 			    "RPC_TEST_LENGTHS call %d response wrong\n", i);
  	       gssrpc_xdr_free(xdr_wrapstring, echo_resp);
  	  }
  	  

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


How reproducible:
Always

Steps to Reproduce:
1. compile the program
2.
3.
    

Additional info
Comment 1 Marcin Garski 2004-12-18 14:58:38 EST
Thank you for the bug report. However this bugs should be reported
upstream (and fixed by MIT krb5 developers) so everyone could use
fixed version (not just Fedora Core users).

This bugs are fixed in version 1.3.5 (also could be in earlier
releases but I haven't check that).
Comment 2 Marcin Garski 2004-12-18 15:01:35 EST
*** Bug 105838 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.