diff options
author | dd <dd@FreeBSD.org> | 2001-09-11 11:11:38 +0000 |
---|---|---|
committer | dd <dd@FreeBSD.org> | 2001-09-11 11:11:38 +0000 |
commit | 586f01779508874778419d56402e91c5df161e5e (patch) | |
tree | 75ddefccbb20a80d42d617793283072c43dbb0b4 /usr.sbin/pkg_install | |
parent | d8fc65b1feb729344330fc4da5be99a26d427e09 (diff) | |
download | FreeBSD-src-586f01779508874778419d56402e91c5df161e5e.zip FreeBSD-src-586f01779508874778419d56402e91c5df161e5e.tar.gz |
Use a colon to separate the user and group when executing chown(1).
Periods aren't supported anymore.
PR: 30507
Submitted by: Georg-W. Koltermann <gwk@sgi.com>
Diffstat (limited to 'usr.sbin/pkg_install')
-rw-r--r-- | usr.sbin/pkg_install/add/futil.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pkg_install/add/futil.c b/usr.sbin/pkg_install/add/futil.c index 36e6474..3ab87dc 100644 --- a/usr.sbin/pkg_install/add/futil.c +++ b/usr.sbin/pkg_install/add/futil.c @@ -83,8 +83,8 @@ apply_perms(char *dir, char *arg) 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)) - warnx("couldn't change owner/group of '%s' to '%s.%s'", + 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; } |