ports/50739: Maintainer update: astro/setiathome (nobody->setiathome)

Crist J. Clark crist.clark at attbi.com
Fri Apr 11 20:52:50 UTC 2003

On Fri, Apr 11, 2003 at 10:05:06PM +0200, Cyrille Lefevre wrote:

> Hi,
> 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.

How about,

		( echo "\
			cd ${seti_wrkdir}/${i} || exit; \
			done > /dev/null" |
		su -fm ${seti_user} /bin/sh ) &

Not pretty, but it should do what you want.
Crist J. Clark                     |     cjclark at alum.mit.edu
                                   |     cjclark at jhu.edu
http://people.freebsd.org/~cjc/    |     cjc at freebsd.org

More information about the freebsd-ports-bugs mailing list