From owner-freebsd-gnome Sat Jan 26 14: 0:28 2002 Delivered-To: freebsd-gnome@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 85BB937B443 for ; Sat, 26 Jan 2002 14:00:02 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g0QM02Q51293; Sat, 26 Jan 2002 14:00:02 -0800 (PST) (envelope-from gnats) Date: Sat, 26 Jan 2002 14:00:02 -0800 (PST) Message-Id: <200201262200.g0QM02Q51293@freefall.freebsd.org> To: gnome@FreeBSD.org Cc: From: Joe Clarke Subject: Re: ports/34289: gdm fails to build if /usr/sbin is not in the path Reply-To: Joe Clarke Sender: owner-freebsd-gnome@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG The following reply was made to PR ports/34289; it has been noted by GNATS. From: Joe Clarke To: freebsd-gnats-submit@FreeBSD.org, rbt@zort.ca Cc: Subject: Re: ports/34289: gdm fails to build if /usr/sbin is not in the path Date: 26 Jan 2002 16:49:54 -0500 I have to remember not to attach patches for Gnats. Sorry. Joe --- pkg-install.orig Sat Jan 26 16:02:24 2002 +++ pkg-install Sat Jan 26 16:02:13 2002 @@ -9,11 +9,12 @@ GROUP=${USER} UID=91 GID=${UID} + PW=/usr/sbin/pw - if pw group show "${GROUP}" 2>/dev/null; then + if ${PW} group show "${GROUP}" 2>/dev/null; then echo "You already have a group \"${GROUP}\", so I will use it." else - if pw groupadd ${GROUP} -g ${GID}; then + if ${PW} groupadd ${GROUP} -g ${GID}; then echo "Added group \"${GROUP}\"." else echo "Adding group \"${GROUP}\" failed..." @@ -21,10 +22,10 @@ fi fi - if pw user show "${USER}" 2>/dev/null; then + if ${PW} user show "${USER}" 2>/dev/null; then echo "You already have a user \"${USER}\", so I will use it." else - if pw useradd ${USER} -u ${UID} -g ${GROUP} -h - \ + if ${PW} useradd ${USER} -u ${UID} -g ${GROUP} -h - \ -d "/nonexistent" -s /sbin/nologin -c "GNOME Display Manager" then echo "Added user \"${USER}\"." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-gnome" in the body of the message