Use the POSIX syntax for chown.

Submmited by:	garrett
This commit is contained in:
David E. O'Brien 2001-07-30 23:26:19 +00:00
parent e58f466620
commit f1d4135bd9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=80684

View File

@ -613,7 +613,7 @@ dotrim(char *log, const char *pid_file, int numdays, int flags, int perm,
if (noaction) {
printf("mv %s %s\n", zfile1, zfile2);
printf("chmod %o %s\n", perm, zfile2);
printf("chown %d.%d %s\n",
printf("chown %d:%d %s\n",
owner_uid, group_gid, zfile2);
} else {
(void) rename(zfile1, zfile2);