[2872] in Kerberos-V5-bugs

home help back first fref pref prev next nref lref last post

krb5-appl/543: Problem with krb5-1.0.4 ftpd

daemon@ATHENA.MIT.EDU (Manish Vachharajani)
Tue Feb 3 20:53:12 1998

Resent-From: gnats@rt-11.MIT.EDU (GNATS Management)
Resent-To: krb5-unassigned@RT-11.MIT.EDU
Resent-Reply-To: krb5-bugs@MIT.EDU, mvachhar@pythagoras.rutgers.edu
Date: Tue, 3 Feb 1998 20:52:31 -0500
From: Manish Vachharajani <mvachhar@pythagoras.rutgers.edu>
Reply-To: mvachhar@pythagoras.rutgers.edu
To: krb5-bugs@MIT.EDU


>Number:         543
>Category:       krb5-appl
>Synopsis:       broken function prototype
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    krb5-unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   unknown
>Arrival-Date:   Tue Feb 03 20:53:01 EST 1998
>Last-Modified:
>Originator:     Manish Vachharajani
>Organization:
Manish Vachharajani 		            <mvachhar@noc.rutgers.edu>
Rutgers University 		      http://www.rutgers.net/~mvachhar	
Telecommunications Division   
Systems Programmer
>Release:        krb5-1.0.4
>Environment:
	 i686, linux, glibc2
System: Linux arsenic.rutgers.edu 2.0.33 #1 Tue  Jan 22 11:32:12 EDT 1998 i686 unknown Architecture: i686

>Description:
The prototype for logwtmp should be void, as it is in glibc and a few other
OS's I checked.
>How-To-Repeat:
Compile under redhat linux 5.0 after fixing the glibc problem with errnos.h 
>Fix:

Here is the patch

--- krb5-1.0.4/src/appl/gssftp/ftpd/logwtmp.c   Thu Dec  4 22:42:01 1997
+++ krb5-1.0.4-new/src/appl/gssftp/ftpd/logwtmp.c       Mon Feb  2 15:48:34 1998
@@ -59,8 +59,8 @@
  * after first call, for use with ftp (which may chroot
  * after login, but before logout).
  */
-logwtmp(line, name, host)
-       char *line, *name, *host;
+void logwtmp(line, name, host)
+       const char *line, *name, *host;
 {
        struct utmp ut;
        struct stat buf;

>Audit-Trail:
>Unformatted:

home help back first fref pref prev next nref lref last post