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>
This commit is contained in:
dd 2001-09-11 11:11:38 +00:00
parent d8fc65b1fe
commit 586f017795

View File

@ -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;
}