Opened 21 years ago

Closed 19 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:
Port:

Description

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@… 21 years ago.
'cvs diff -u portutil.tcl' in darwinports/base/src/port1.0/

Download all attachments as: .zip

Change History (2)

Changed 21 years ago by olt@…

Attachment: 829 added

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

comment:1 Changed 19 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.