From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Feb 24 19:20:05 2007 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4773E16A403 for ; Sat, 24 Feb 2007 19:20:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 145B913C46B for ; Sat, 24 Feb 2007 19:20:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l1OJK466097285 for ; Sat, 24 Feb 2007 19:20:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l1OJK4im097284; Sat, 24 Feb 2007 19:20:04 GMT (envelope-from gnats) Resent-Date: Sat, 24 Feb 2007 19:20:04 GMT Resent-Message-Id: <200702241920.l1OJK4im097284@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Stefan `Sec` Zehl Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B662A16A403 for ; Sat, 24 Feb 2007 19:14:40 +0000 (UTC) (envelope-from sec@42.org) Received: from ice.42.org (ice.42.org [194.77.85.2]) by mx1.freebsd.org (Postfix) with ESMTP id 6254313C4A8 for ; Sat, 24 Feb 2007 19:14:40 +0000 (UTC) (envelope-from sec@42.org) Received: by ice.42.org (Postfix, from userid 1000) id 1A066C4A6; Sat, 24 Feb 2007 19:55:30 +0100 (CET) Message-Id: <20070224185530.1A066C4A6@ice.42.org> Date: Sat, 24 Feb 2007 19:55:30 +0100 (CET) From: Stefan `Sec` Zehl To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/109497: x11-servers/xorg-fontserver rc.d/xfs.sh script missing "-user" X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Stefan `Sec` Zehl List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Feb 2007 19:20:05 -0000 >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: