Opened 18 years ago

Closed 16 years ago

#829 closed defect (fixed)

adduser accepts only group id's

Reported by: olt@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: base Version: 1.0
Keywords: Cc:


The function adduser accepts only a numerical group id's.

Description: When a port needs a user and a group, it is not possible to add the user to the new group, because the new group id is unknown.

Solution: Add 'group' to the arguments of adduser or check if the 'gid' argument is not a number and get the group id of the named group.

Attachments (1)

829 (764 bytes) - added by olt@… 18 years ago.
'cvs diff -u portutil.tcl' in darwinports/base/src/port1.0/

Download all attachments as: .zip

Change History (2)

Changed 18 years ago by olt@…

Attachment: 829 added

'cvs diff -u portutil.tcl' in darwinports/base/src/port1.0/

comment:1 Changed 16 years ago by pguyot (Paul Guyot)

Resolution: fixed
Status: newclosed

You can just do:

addgroup ${privoxyGroup} adduser ${privoxyUser} gid=[existsgroup ${privoxyGroup}]

(cf www/privoxy/Portfile)

Note: See TracTickets for help on using tickets.