Date: Sat, 24 Feb 2007 19:55:30 +0100 (CET) From: Stefan `Sec` Zehl <sec@42.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/109497: x11-servers/xorg-fontserver rc.d/xfs.sh script missing "-user" Message-ID: <20070224185530.1A066C4A6@ice.42.org> Resent-Message-ID: <200702241920.l1OJK4im097284@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 109497 >Category: ports >Synopsis: x11-servers/xorg-fontserver rc.d/xfs.sh script missing "-user" >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Feb 24 19:20:04 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Stefan `Sec` Zehl >Release: FreeBSD 6.2-PRERELEASE i386 >Organization: >Environment: System: FreeBSD ice 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #36: Sun Oct 1 00:50:35 CEST 2006 root@:/export/obj/export/src/sys/ICE i386 >Description: There is usually no need to run xfs as root, and in fact, I have been running xfs as user nobody for quite some time. I was starting xfs from /etc/rc.local as /usr/X11R6/bin/xfs -daemon -user nobody I tried to convert it to use /usr/X11R6/etc/rc.d/xfs.sh, but it lacked an option to set "-user " as commandline switch. >How-To-Repeat: >Fix: I created a small patch: --- xfs.sh.org Sat Feb 24 19:53:01 2007 +++ xfs.sh Sat Feb 24 19:54:06 2007 @@ -29,6 +29,8 @@ command="%%PREFIX%%/bin/${name}" command_args="-config ${xfs_config} -daemon" +[ ! -z "$xfs_user" ] && command_args="${command_args} -user ${xfs_user}" +xfs_user= # unset, as automatic scripts try to use that variable, too required_files="$xfs_config" extra_commands="reload" >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070224185530.1A066C4A6>