From nobody@FreeBSD.org  Mon Feb 21 09:59:28 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 605D016A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 21 Feb 2005 09:59:28 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 47DB543D49
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 21 Feb 2005 09:59:28 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j1L9xSeN046046
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 21 Feb 2005 09:59:28 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j1L9xR7c046045;
	Mon, 21 Feb 2005 09:59:27 GMT
	(envelope-from nobody)
Message-Id: <200502210959.j1L9xR7c046045@www.freebsd.org>
Date: Mon, 21 Feb 2005 09:59:27 GMT
From: "Kevin M. Kilbride" <kmk@ssl.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Cast away const in getpublickey()
X-Send-Pr-Version: www-2.3

>Number:         77841
>Category:       kern
>Synopsis:       [libc] [patch] cast away const in getpublickey()
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 21 10:00:31 GMT 2005
>Closed-Date:    Thu Aug 28 19:21:21 UTC 2008
>Last-Modified:  Thu Aug 28 19:21:21 UTC 2008
>Originator:     Kevin M. Kilbride
>Release:        5.3-STABLE
>Organization:
Sapient Systems Laboratories
>Environment:
FreeBSD devel.localnet 5.3-STABLE FreeBSD 5.3-STABLE #0: Sun Feb 20 21:44:50 PST 2005     chandra@devel.localnet:/usr/src/sys/i386/compile/DEVIL  i386
>Description:
      getpublickey() declared with const formal parameter, but parameter is simply passed immediately through a chain of functions that discard const attribute of parameter. Calling function should explicitly discard const to avoid compilation errors in buildworld using CFLAGS overrides.
>How-To-Repeat:
      
>Fix:
      --- lib/libc/rpc/getpublickey.c.orig    Mon Feb 21 01:50:26 2005
+++ lib/libc/rpc/getpublickey.c Mon Feb 21 01:50:38 2005
@@ -174,5 +174,5 @@
        if (__getpublickey_LOCAL != NULL)
                return(__getpublickey_LOCAL(netname, publickey));
        else
-               return(__getpublickey_real(netname, publickey));
+               return(__getpublickey_real((char *)netname, publickey));
 }
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed  
State-Changed-By: brucec 
State-Changed-When: Thu Aug 28 19:17:58 UTC 2008 
State-Changed-Why:  
This problem was fixed with rev 1.9 of getpublickey.c, which is in FreeBSD 7.0. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=77841 
>Unformatted:
