Xprt

Kris Kennaway kris at obsecurity.org
Tue Sep 20 12:18:54 PDT 2005


On Tue, Sep 20, 2005 at 09:18:17PM +0200, dick hoogendijk wrote:
> On 20 Sep 2005 14:56:48 -0400
> Lowell Gilbert <freebsd-questions-local at be-well.ilk.org> wrote:
> 
> > dick hoogendijk <dick at nagual.st> writes:
> > 
> > > 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.
> > 
> > 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.
> 
> That's what I expected. But if you look into the script you'll
> see#!/bin/sh
> 
> ############################################################################
> 
> # Force use of a POSIX conformant sh 
> [ "$1" != "posix_sh_forced" -a -x /bin/ksh  ]            &&
> exec /bin/ksh  "$0" posix_sh_forced "$@" [ "$1" != "posix_sh_forced" -a
> -x /bin/bash ]            && exec /bin/bash --norc --noprofile "$0"
> posix_sh_forced "$@" [ "$1" != "posix_sh_forced" -a
> -x /usr/local/bin/ksh ]   && exec /usr/local/bin/ksh "$0"
> posix_sh_forced "$@" [ "$1" != "posix_sh_forced" -a
> -x /usr/local/bin/bash ]  && exec /usr/local/bin/bash --norc
> --noprofile "$0" posix_sh_forced "$@" if [ "$1" !=
> "posix_sh_forced" ] ; then echo "${0}: ## FATAL ERROR: No POSIX-shell
> found."  1>&2 exit 1 fi
> #######################################
> 
> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20050920/a0592f7e/attachment.bin


More information about the freebsd-questions mailing list