Bug 30507

Summary: pkg_add fails with "chown: bin.bin: illegal user name"
Product: Base System Reporter: Georg-W. Koltermann <gwk>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 5.0-CURRENT   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Georg-W. Koltermann 2001-09-11 11:20:00 UTC
The pkg_add utility uses an old syntax (userid.groupid instead of
userid:groupid) when changing user and group after the install.
This causes a "chown: bin.bin: illegal user name" or some such
whenever you install a package which has both @owner and @group 
directives, e.g. openmotif-devel:

hunter#	make install
===>  Installing for open-motif-devel-2.1.30
===>   open-motif-devel-2.1.30 depends on shared library: X11.6 - found
Installing Open Motif 2.1.30 development...
chown: bin.bin: illegal user name
pkg_add: couldn't change owner/group of ''usr/X11R6/bin/uil' ' to 'bin.bin'
chown: bin.bin: illegal user name

...and so on.

See attached fix.

How-To-Repeat: Try to do a pkg_add for a package which has both @owner and @group directives,
e.g. open-motif-devel.
Comment 1 dd freebsd_committer freebsd_triage 2001-09-11 12:11:41 UTC
State Changed
From-To: open->closed

applied, thanks.  I'll MFC after the release.