ports/84168: portmanager 0.2.9_4 can't go background
    Thierry BESANCON 
    Thierry.Besancon at math.jussieu.fr
       
    Wed Jul 27 12:40:17 UTC 2005
    
    
  
>Number:         84168
>Category:       ports
>Synopsis:       portmanager 0.2.9_4 can't go background
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul 27 12:40:16 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Thierry BESANCON
>Release:        5.2.1 RELEASE
>Organization:
IMJ
>Environment:
FreeBSD lebesgue.math.jussieu.fr 5.2.1-RELEASE-p9 FreeBSD 5.2.1-RELEASE-p9 #0: Tue Jul 13 16:10:02 GMT 2004     root at lebesgue.math.jussieu.fr:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
      The application named "portmanager" available in the ports just gives a segmentation fault when run under crontab as "portmanager -s".
It is version : "portmanager 0.2.9_4 VERSION info:"
The bug is quite simple. In portmanager.c one plays with the TERM  environment variable to change the title bar of the xterm the user  might use. Unfortunatly under crontab, the TERM variable is unset and getenv() just returns NULL and that makes strncmp() segfaults.
>
>How-To-Repeat:
      Launch "portmanager -s" through crontab.  It will report segmentation fault.
>Fix:
In portmanager.c, just change :
 	if( !strncmp( getenv("TERM"), "xterm", 5 ) )
to
	if( getenv("TERM") && !strncmp( getenv("TERM"), "xterm", 5 ) )
>Release-Note:
>Audit-Trail:
>Unformatted:
    
    
More information about the freebsd-ports-bugs
mailing list