ports/106298: [PATCH]: remove misleading line /bin/hostname from sysutils/bsdstats

Andre Albsmeier Andre.Albsmeier at siemens.com
Mon Dec 4 08:20:30 UTC 2006


>Number:         106298
>Category:       ports
>Synopsis:       [PATCH]: remove misleading line /bin/hostname from sysutils/bsdstats
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec 04 08:20:11 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Andre Albsmeier
>Release:        FreeBSD 5.5-STABLE i386
>Organization:
>Environment:

Machines using sysutils/bsdstats

>Description:

I suggest removing the line which puts the result of /bin/hostname
into the env variable HN. This hostname is never used but people
might get distracted from using bsdstats when checking the code not
close enough. (I wouldn't like to have my hostnames being sent to
the server).

>How-To-Repeat:

grep HN 300.statistics

>Fix:

--- 300.statistics.ORI	Mon Dec  4 09:04:34 2006
+++ 300.statistics	Mon Dec  4 09:04:44 2006
@@ -397,7 +397,6 @@
 case "$monthly_statistics_enable" in
     [Yy][Ee][Ss])
       check_dns
-      HN=`/bin/hostname`
       REL=`/usr/bin/uname -r`
       ARCH=`/usr/bin/uname -m`
       OS=`/usr/bin/uname -s`
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list