From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Apr 12 06:18:13 2003 Return-Path: Delivered-To: freebsd-ports-bugs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7BA7C37B401 for ; Sat, 12 Apr 2003 06:18:13 -0700 (PDT) Received: from smtp.noos.fr (nan-smtp-10.noos.net [212.198.2.81]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3D44743F93 for ; Sat, 12 Apr 2003 06:18:10 -0700 (PDT) (envelope-from cyrille.lefevre@laposte.net) Received: (qmail 37944798 invoked by uid 0); 12 Apr 2003 13:18:08 -0000 Received: from unknown (HELO mail.gits.dyndns.org) ([212.198.231.234]) (envelope-sender ) by 212.198.2.81 (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 12 Apr 2003 13:18:08 -0000 Received: from gits.gits.fr.invalid (97fntye7zpewb810@localhost [127.0.0.1]) by mail.gits.dyndns.org (8.12.8/8.12.8) with ESMTP id h3CDI4qO061544 for ; Sat, 12 Apr 2003 15:18:04 +0200 (CEST) (envelope-from cyrille.lefevre@laposte.net) Date: Sat, 12 Apr 2003 15:17:58 +0200 To: cjclark@alum.mit.edu Message-ID: <20030412131758.GA61478@gits.dyndns.org> References: <200304090512.h395CGrJ014714@freefall.freebsd.org> <20030411200506.GA36868@gits.dyndns.org> <20030411205245.GA84569@blossom.cjclark.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030411205245.GA84569@blossom.cjclark.org> Organization: ACME X-Face: V|+c;4!|B?E%BE^{E6); aI.[< Mail-Followup-To: cyrille.lefevre+dated+1050585481.2d2955@laposte.net, cjclark@alum.mit.edu, freebsd-ports-bugs@FreeBSD.org, scott-allendorf@uiowa.edu X-Delivery-Agent: TMDA/0.61 X-Spam-Status: No X-Scanned-By: MIMEDefang 2.30 (www . roaringpenguin . com / mimedefang) cc: freebsd-ports-bugs@FreeBSD.org cc: Scott Allendorf Subject: Re: ports/50739: Maintainer update: astro/setiathome (nobody->setiathome) X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Apr 2003 13:18:13 -0000 On Fri, Apr 11, 2003 at 01:52:45PM -0700, Crist J. Clark wrote: > On Fri, Apr 11, 2003 at 10:05:06PM +0200, Cyrille Lefevre wrote: > [snip] > > > someone reports me that the newer wrapper don't work w/ an account > > using the csh as the login shell such as the default root account. > > I don't see this problam since my root account uses a bourne like > > shell. > > > > so, could you replace 'su -fm' by 'SHELL=/bin/sh su -fm' in > > files/setiathome.sh. > > That will not fix the problem. The shell spawned by su(1) will still > be the user's login shell. At least that's what my understading of > su(1) and some quick tests show. investigations done. here is the, sic, final patch :) thanks for your help. Index: Makefile =================================================================== RCS file: /home/ncvs/ports/astro/setiathome/Makefile,v retrieving revision 1.37 diff -u -I$Id.*$ -I$.+BSD.*$ -r1.37 Makefile --- Makefile 9 Apr 2003 05:02:42 -0000 1.37 +++ Makefile 12 Apr 2003 13:13:48 -0000 @@ -6,7 +6,7 @@ PORTNAME= setiathome PORTVERSION?= 3.03 -PORTREVISION?= 6 +PORTREVISION?= 7 CATEGORIES?= astro MASTER_SITES= ftp://ftp.cdrom.com/pub/setiathome/ \ ftp://alien.ssl.berkeley.edu/pub/ Index: files/setiathome.sh =================================================================== RCS file: /home/ncvs/ports/astro/setiathome/files/setiathome.sh,v retrieving revision 1.10 diff -u -I$Id.*$ -I$.+BSD.*$ -r1.10 setiathome.sh --- files/setiathome.sh 9 Apr 2003 05:02:42 -0000 1.10 +++ files/setiathome.sh 12 Apr 2003 13:12:56 -0000 @@ -74,17 +74,19 @@ fi done for i in ${seti_wrksuff}; do - su -fm ${seti_user} -c "\ - cd ${seti_wrkdir}/${i} || exit; \ - echo \$\$ > shpid.sah; \ - trap 'kill \$pid;exit' 15; \ - while :; do \ + su -fm ${seti_user} -c "exec /bin/sh -T" << EOF > /dev/null & + cd ${seti_wrkdir}/${i} || exit + echo \$\$ > shpid.sah + trap 'kill \$pid;exit' 15 + while :; do ${program_path} \ ${seti_std_args} ${seti_proxy_args} \ - ${seti_nice:+-nice} ${seti_nice} & \ - pid=\$!; wait \$pid; \ - sleep ${seti_sleep}; \ - done > /dev/null" & + ${seti_nice:+-nice} ${seti_nice} & + pid=\$!; wait \$pid + sleep ${seti_sleep} & + pid=\$!; wait \$pid + done +EOF done echo -n " SETI@home" ;; Cyrille. -- Cyrille Lefevre mailto:cyrille.lefevre@laposte.net