From sec@42.org  Mon Nov 11 03:07:25 2002
Return-Path: <sec@42.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP
	id 34A3A37B401; Mon, 11 Nov 2002 03:07:25 -0800 (PST)
Received: from ice.42.org (ice.42.org [194.246.250.222])
	by mx1.FreeBSD.org (Postfix) with ESMTP
	id 9D5DE43E42; Mon, 11 Nov 2002 03:07:24 -0800 (PST)
	(envelope-from sec@42.org)
Received: by ice.42.org (Postfix, from userid 1000)
	id 3A26F1CA99; Mon, 11 Nov 2002 12:07:22 +0100 (CET)
Message-Id: <20021111110722.3A26F1CA99@ice.42.org>
Date: Mon, 11 Nov 2002 12:07:22 +0100 (CET)
From: Stefan `Sec` Zehl <sec@42.org>
Reply-To: Stefan `Sec` Zehl <sec@42.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc: sobomax@FreeBSD.org
Subject: games/solarwolf has wrong permissions
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         45207
>Category:       ports
>Synopsis:       games/solarwolf has wrong permissions
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    sobomax
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Nov 11 03:10:00 PST 2002
>Closed-Date:    Mon Feb 03 05:39:41 PST 2003
>Last-Modified:  Mon Feb 03 05:39:41 PST 2003
>Originator:     Stefan `Sec` Zehl
>Release:        FreeBSD 4.7-STABLE i386
>Organization:
>Environment:
System: FreeBSD ice 4.7-STABLE FreeBSD 4.7-STABLE #0: Sun Oct 20 22:34:18 CEST 2002 root@ice:/export/obj/export/src/sys/ICE i386


	
>Description:

The games/solarwolf port doesn't work. It pops up a window containing an
error message:

| pygame.error:
| Couldn't read from 'data/music/aster2_sw.xm'

This is because the permissions of two files are incorrect:

baka:~>l /usr/local/share/solarwolf/data/music/
total 412
-rw-------  1 root  wheel  306876 Jun  2 00:22 arg.xm
-rw-------  1 root  wheel   94125 Jun  2 00:20 aster2_sw.xm


	
>How-To-Repeat:

cd /usr/ports/games/solarwolf
su 
make install clean 
^D
solarwolf

>Fix:

chmod a+r /usr/local/share/solarwolf/data/music/*

>Release-Note:
>Audit-Trail:

From: Neil Blakey-Milner <nbm@mithrandr.moria.org>
To: Stefan `Sec` Zehl <sec@42.org>
Cc: FreeBSD-gnats-submit@FreeBSD.org, sobomax@FreeBSD.org
Subject: Re: ports/45207: games/solarwolf has wrong permissions
Date: Mon, 11 Nov 2002 14:46:51 +0200

 On Mon 2002-11-11 (12:07), Stefan `Sec` Zehl wrote:
 > >Description:
 > 
 > The games/solarwolf port doesn't work. It pops up a window containing an
 > error message:
 > 
 > | pygame.error:
 > | Couldn't read from 'data/music/aster2_sw.xm'
 > 
 > This is because the permissions of two files are incorrect:
 > 
 > baka:~>l /usr/local/share/solarwolf/data/music/
 > total 412
 > -rw-------  1 root  wheel  306876 Jun  2 00:22 arg.xm
 > -rw-------  1 root  wheel   94125 Jun  2 00:20 aster2_sw.xm
 
 I did the last upgrade, so this may be my fault.  However, I don't get
 this locally.  I trust your umask is 077 as opposed to the standard 022?
 
 I'm not sure if/how ports should handle this.  I don't really have time
 at the moment, and my connectivity is sporadic, so can you please take a
 look and see if there's a simple fix for this that doesn't involve a
 post-install chmod?
 
 Thanks,
 
 Neil
 -- 
 Neil Blakey-Milner
 nbm@mithrandr.moria.org

From: Stefan `Sec` Zehl <sec@42.org>
To: Neil Blakey-Milner <nbm@mithrandr.moria.org>
Cc: FreeBSD-gnats-submit@FreeBSD.org, sobomax@FreeBSD.org
Subject: Re: ports/45207: games/solarwolf has wrong permissions
Date: Mon, 11 Nov 2002 14:01:50 +0100

 On Mon, Nov 11, 2002 at 02:46:51PM +0200, Neil Blakey-Milner wrote:
 > On Mon 2002-11-11 (12:07), Stefan `Sec` Zehl wrote:
 > > This is because the permissions of two files are incorrect:
 > > 
 > > baka:~>l /usr/local/share/solarwolf/data/music/
 > > total 412
 > > -rw-------  1 root  wheel  306876 Jun  2 00:22 arg.xm
 > > -rw-------  1 root  wheel   94125 Jun  2 00:20 aster2_sw.xm
 > 
 > I did the last upgrade, so this may be my fault.  However, I don't get
 > this locally.  I trust your umask is 077 as opposed to the standard 022?
 
 That was my first thought, but no.
 | baka:~>umask
 | 022
 
 I even installed that game on another (fresh) machine, and it had the
 same effect. 
 
 It seems to be broken in the distribution tar archive:
 
 | baka:~>tar tvzf /usr/ports/distfiles/solarwolf-1.1.tar.gz |grep music
 | drwxr-xr-x pete/users        0 Jun  2 03:02 2002 solarwolf-1.1/data/music/
 | -rw------- pete/users   306876 Jun  2 00:22 2002 solarwolf-1.1/data/music/arg.xm
 | -rw------- pete/users    94125 Jun  2 00:20 2002 solarwolf-1.1/data/music/aster2_sw.xm
 
 > I'm not sure if/how ports should handle this.  I don't really have time
 > at the moment, and my connectivity is sporadic, so can you please take a
 > look and see if there's a simple fix for this that doesn't involve a
 > post-install chmod?
 
 I think a post-install chmod might be the only sane way.
 
 CU,
     Sec
 -- 
 CUSTOMER: "I'm running Windows '95."       > TECH: "Yes."
 CUSTOMER: "My computer isn't working now." > TECH: "Yes, you already said that."
                                            -- (found in comp.os.linux.misc)
Responsible-Changed-From-To: freebsd-ports->sobomax 
Responsible-Changed-By: ijliao 
Responsible-Changed-When: Mon Nov 11 10:10:34 PST 2002 
Responsible-Changed-Why:  
over to maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=45207 
State-Changed-From-To: open->closed 
State-Changed-By: sobomax 
State-Changed-When: Mon Feb 3 05:39:26 PST 2003 
State-Changed-Why:  
The problem fixed, thank you for reporting! 

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