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

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);