summaryrefslogtreecommitdiffstats
path: root/usr.sbin/newsyslog
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2001-07-30 23:26:19 +0000
committerobrien <obrien@FreeBSD.org>2001-07-30 23:26:19 +0000
commit790155d37f7c36c6cc0fd236fa08d7541df88543 (patch)
treeab359eb7093d1ae4ef51ee114664850209998ec4 /usr.sbin/newsyslog
parenta1ee75086a86420f9cc544cb50d9ca6806db9485 (diff)
downloadFreeBSD-src-790155d37f7c36c6cc0fd236fa08d7541df88543.zip
FreeBSD-src-790155d37f7c36c6cc0fd236fa08d7541df88543.tar.gz
Use the POSIX syntax for chown.
Submmited by: garrett
Diffstat (limited to 'usr.sbin/newsyslog')
-rw-r--r--usr.sbin/newsyslog/newsyslog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/newsyslog/newsyslog.c b/usr.sbin/newsyslog/newsyslog.c
index 0a3d7b3..150ce51 100644
--- a/usr.sbin/newsyslog/newsyslog.c
+++ b/usr.sbin/newsyslog/newsyslog.c
@@ -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);
OpenPOWER on IntegriCloud