FreeBSD Bugzilla – Attachment 90767 Details for
Bug 127995
net/isc-dhcp30-server creates a user/group with dynamic UID/GID (>= 1000)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
dhcp31-server.patch
dhcp31-server.patch (text/x-diff; charset=us-ascii), 1.47 KB, created by
Josh Paetzel
on 2010-06-26 08:50:26 UTC
(
hide
)
Description:
dhcp31-server.patch
Filename:
MIME Type:
Creator:
Josh Paetzel
Created:
2010-06-26 08:50:26 UTC
Size:
1.47 KB
patch
obsolete
>Index: files/isc-dhcpd.in >=================================================================== >RCS file: /home/ncvs/ports/net/isc-dhcp31-server/files/isc-dhcpd.in,v >retrieving revision 1.9 >diff -u -r1.9 isc-dhcpd.in >--- files/isc-dhcpd.in 27 Mar 2010 00:13:46 -0000 1.9 >+++ files/isc-dhcpd.in 26 Jun 2010 07:36:11 -0000 >@@ -271,16 +271,17 @@ > > safe_useradd () > { >- local _user _group _home _shell _gecos >+ local _user _group _home _shell _gecos _gid _uid > > _user=$1 _group=$2 _gecos=${3:-"& daemon"} >- _home=${4:-/nonexistent} _shell=${5:-/usr/sbin/nologin} >+ _uid=$4 _gid=$5 >+ _home=${6:-/nonexistent} _shell=${7:-/usr/sbin/nologin} > > if [ -n "${_group}" ]; then > if pw group show ${_group} 2>/dev/null; then > echo "You already have a group \"${_group}\"," \ > "so I will use it." >- elif pw groupadd ${_group} -h -; then >+ elif pw groupadd ${_group} -g ${_gid} -h -; then > echo "Added group \"${_group}\"." > else > echo "Adding group \"${_group}\" failed..." >@@ -292,7 +293,7 @@ > if pw user show ${_user} 2>/dev/null; then > echo "You already have a user \"${_user}\"," \ > "so I will use it." >- elif pw useradd ${_user} -g ${_group} -h - \ >+ elif pw useradd ${_user} -u ${_uid} -g ${_group} -h - \ > -d ${_home} -s ${_shell} -c "${_gecos}"; then > echo "Added user \"${_user}\"." > else >@@ -638,7 +639,7 @@ > { > if checkyesno paranoia; then > safe_useradd "${dhcpd_withuser}" "${dhcpd_withgroup}" \ >- "DHCP Daemon" >+ "DHCP Daemon" 136 136 > fi > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 127995
:
90764
|
90765
|
90766
| 90767