ports/137175: [patch] dns/unbound: fix group name when creating user
Artis Caune
Artis.Caune at gmail.com
Mon Jul 27 14:10:01 UTC 2009
>Number: 137175
>Category: ports
>Synopsis: [patch] dns/unbound: fix group name when creating user
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Mon Jul 27 14:10:00 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator: Artis Caune
>Release: current
>Organization:
>Environment:
FreeBSD 8.0-BETA2 #0 r195825: Wed Jul 22 23:15:57 EEST 2009 root at builder:/usr/obj/usr/src/sys/FREEBSD
>Description:
+INSTALL script is creating unbound group, but not using it. Instead it use "daemon" group for unbound user.
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
--- files/pkg-install.in.orig 2008-05-07 11:33:37.000000000 +0000
+++ files/pkg-install.in 2009-07-27 13:57:59.180582753 +0000
@@ -28,7 +28,7 @@
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 daemon -h - \
+ if ${PW} useradd ${USER} -u ${UID} -g ${GROUP} -h - \
-d "/nonexistent" -s /usr/sbin/nologin -c "unbound dns resolver"
then
echo "Added user \"${USER}\"."
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list