Date: Tue, 11 Sep 2001 12:13:29 +0200 (CEST) From: "Georg-W. Koltermann" <gwk@sgi.com> To: FreeBSD-gnats-submit@freebsd.org Subject: bin/30507: pkg_add fails with "chown: bin.bin: illegal user name" Message-ID: <200109111013.f8BADT211538@hunter.munich.sgi.com>
next in thread | raw e-mail | index | archive | help
>Number: 30507
>Category: bin
>Synopsis: pkg_add fails with "chown: bin.bin: illegal user name"
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue Sep 11 03:20:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Georg-W. Koltermann
>Release: FreeBSD 5.0-CURRENT i386
>Organization:
SGI
>Environment:
System: FreeBSD hunter.munich.sgi.com 5.0-CURRENT FreeBSD 5.0-CURRENT #25: Mon Aug 20 22:18:51 CEST 2001 root@hunter.munich.sgi.com:/usr/obj/usr/src/sys/HUNTER i386
>Description:
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.
>Fix:
--- usr.sbin/pkg_install/add/futil.c.old Tue Sep 11 12:02:31 2001
+++ usr.sbin/pkg_install/add/futil.c Tue Sep 11 11:58:26 2001
@@ -83,7 +83,7 @@
if (vsystem("cd %s && chmod -R %s %s", cd_to, Mode, arg))
warnx("couldn't change modes of '%s' to '%s'", arg, Mode);
if (Owner && Group) {
- if (vsystem("cd %s && chown -R %s.%s %s", cd_to, Owner, Group, arg))
+ if (vsystem("cd %s && chown -R %s:%s %s", cd_to, Owner, Group, arg))
warnx("couldn't change owner/group of '%s' to '%s.%s'",
arg, Owner, Group);
return;
>Release-Note:
>Audit-Trail:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200109111013.f8BADT211538>
