Use the POSIX syntax for chown.
Submmited by: garrett
This commit is contained in:
parent
e58f466620
commit
f1d4135bd9
@ -613,7 +613,7 @@ dotrim(char *log, const char *pid_file, int numdays, int flags, int perm,
|
|||||||
if (noaction) {
|
if (noaction) {
|
||||||
printf("mv %s %s\n", zfile1, zfile2);
|
printf("mv %s %s\n", zfile1, zfile2);
|
||||||
printf("chmod %o %s\n", perm, 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);
|
owner_uid, group_gid, zfile2);
|
||||||
} else {
|
} else {
|
||||||
(void) rename(zfile1, zfile2);
|
(void) rename(zfile1, zfile2);
|
||||||
|
Loading…
Reference in New Issue
Block a user