From hal.in-berlin.de!dirk@methan.chemie.fu-berlin.de  Fri Feb  9 11:32:07 1996
Received: from methan.chemie.fu-berlin.de (methan.chemie.fu-berlin.de [130.133.2.81])
          by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id LAA04817
          for <FreeBSD-gnats-submit@freebsd.org>; Fri, 9 Feb 1996 11:32:04 -0800 (PST)
Received: by methan.chemie.fu-berlin.de (Smail3.1.29.1)
	  from hal.in-berlin.de with gsmtp
	  id <m0tkyXO-0009kiC>; Fri, 9 Feb 96 20:31 MET
Received: by hal.in-berlin.de (Smail3.1.29.1 #1)
	id m0tkyVE-000BCiC; Fri, 9 Feb 96 20:29 MET
Message-Id: <m0tkyVE-000BCiC@hal.in-berlin.de>
Date: Fri, 9 Feb 96 20:29 MET
From: dirk@hal.IN-Berlin.DE (Dirk Froemberg)
To: FreeBSD-gnats-submit@freebsd.org
Subject: usr.sbin/sup/supfilesrv does not compile
X-Send-Pr-Version: 3.2

>Number:         1011
>Category:       bin
>Synopsis:       usr.sbin/sup/supfilesrv does not compile
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Feb  9 11:40:01 PST 1996
>Closed-Date:    Sat Feb 10 23:32:56 PST 1996
>Last-Modified:  Sat Feb 10 23:33:39 PST 1996
>Originator:     Dirk Froemberg
>Release:        FreeBSD 2.1-STABLE i386
>Organization:
>Environment:

	FreeBSD 2.1-STABLE i386 as of Feb 9
		(up to CTM-piece src-2.1.0031.gz)
	usr.sbin/sup just commited

>Description:

	usr.sbin/sup/supfilesrv does not compile because setproctitle()
	is unknown to the linker

>How-To-Repeat:

	cd usr.sbin/sup/supfilesrv ; make all

>Fix:
	
	Perhaps it is time to bring setproctitle() to one of the libs.
	Code could be taken from libexec/ftpd/ftpd.c

	Workaround:

*** usr.sbin/sup/supfilesrv/supfilesrv.c.dist	Fri Feb  9 19:51:07 1996
--- usr.sbin/sup/supfilesrv/supfilesrv.c	Fri Feb  9 20:13:54 1996
***************
*** 849,856 ****
  #endif
  	if (release == NULL)
  		release = salloc (DEFRELEASE);
! 	setproctitle("supfilesrv: serving %s/%s to %s",
! 		     collname, release, remotehost());
  	if (basedir == NULL || *basedir == '\0') {
  		basedir = NULL;
  		(void) sprintf (buf,FILEDIRS,DEFDIR);
--- 849,856 ----
  #endif
  	if (release == NULL)
  		release = salloc (DEFRELEASE);
! 	/* setproctitle("supfilesrv: serving %s/%s to %s",
! 		     collname, release, remotehost()); */
  	if (basedir == NULL || *basedir == '\0') {
  		basedir = NULL;
  		(void) sprintf (buf,FILEDIRS,DEFDIR);

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: jkh 
State-Changed-When: Sat Feb 10 23:32:56 PST 1996 
State-Changed-Why:  
This was a mistake which crept in with the merge.  Fixed by 
#ifdef'ing it out for now, until setproctitle() makes it in. 
>Unformatted:
