From owner-freebsd-questions@FreeBSD.ORG Tue Sep 20 19:18:54 2005 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 61A3916A41F for ; Tue, 20 Sep 2005 19:18:54 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from fileserver.fields.utoronto.ca (fileserver.fields.utoronto.ca [128.100.216.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id E68B543D45 for ; Tue, 20 Sep 2005 19:18:53 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from fields.fields.utoronto.ca (fields.localdomain [192.168.216.11]) by fileserver.fields.utoronto.ca (8.12.8/8.12.8/Fields 6.0) with ESMTP id j8KJIr0r011450 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 20 Sep 2005 15:18:53 -0400 Received: from obsecurity.dyndns.org (localhost.localdomain [127.0.0.1]) by fields.fields.utoronto.ca (8.12.8/8.12.8/Fields WS 6.0) with ESMTP id j8KJIq6P019597; Tue, 20 Sep 2005 15:18:52 -0400 Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 2B690511FD; Tue, 20 Sep 2005 15:18:52 -0400 (EDT) Date: Tue, 20 Sep 2005 15:18:52 -0400 From: Kris Kennaway To: dick hoogendijk Message-ID: <20050920191852.GA10289@xor.obsecurity.org> References: <20050920201411.2914a331.dick@nagual.st> <44u0gfsh3j.fsf@be-well.ilk.org> <20050920211817.28f3b36e.dick@nagual.st> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="pWyiEgJYm5f9v55/" Content-Disposition: inline In-Reply-To: <20050920211817.28f3b36e.dick@nagual.st> User-Agent: Mutt/1.4.2.1i Cc: fbsdq Subject: Re: Xprt X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Sep 2005 19:18:54 -0000 --pWyiEgJYm5f9v55/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Sep 20, 2005 at 09:18:17PM +0200, dick hoogendijk wrote: > On 20 Sep 2005 14:56:48 -0400 > Lowell Gilbert wrote: >=20 > > dick hoogendijk writes: > >=20 > > > Yesterday I upgraded my xorg-printserver. Afterwards my Xprt would > > > not start. Looking at /usr/X11R6/etc/rc.d/xprint.sh I did not have a > > > POSIX-shell. Hmmm.. seems you need ksh or bash for xprint all > > > of a sudden. A warning would have been nice. > >=20 > > That script only requires a POSIX shell, and our standard /bin/sh > > should work fine. I just tried it, and it does work for me. >=20 > That's what I expected. But if you look into the script you'll > see#!/bin/sh >=20 > #########################################################################= ### >=20 > # Force use of a POSIX conformant sh=20 > [ "$1" !=3D "posix_sh_forced" -a -x /bin/ksh ] && > exec /bin/ksh "$0" posix_sh_forced "$@" [ "$1" !=3D "posix_sh_forced" -a > -x /bin/bash ] && exec /bin/bash --norc --noprofile "$0" > posix_sh_forced "$@" [ "$1" !=3D "posix_sh_forced" -a > -x /usr/local/bin/ksh ] && exec /usr/local/bin/ksh "$0" > posix_sh_forced "$@" [ "$1" !=3D "posix_sh_forced" -a > -x /usr/local/bin/bash ] && exec /usr/local/bin/bash --norc > --noprofile "$0" posix_sh_forced "$@" if [ "$1" !=3D > "posix_sh_forced" ] ; then echo "${0}: ## FATAL ERROR: No POSIX-shell > found." 1>&2 exit 1 fi > ####################################### >=20 > As you can see, /bin/sh is NOT mentioned (and thus 'not found') > Only ksh and bash seem to be supported. Strange.. > Sure I can alter the startup script, but I'm not supposed to do this, > am I? Talk to the maintainer. Kris --pWyiEgJYm5f9v55/ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDMGCbWry0BWjoQKURAjhyAJ42/tSrNbQZY9mLNoGSNuIBHiooHwCg/Nu/ 9a0w3n8G6PyG9plXwQ1meq4= =ak5v -----END PGP SIGNATURE----- --pWyiEgJYm5f9v55/--