summaryrefslogtreecommitdiffstats
path: root/usr.sbin/newsyslog
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>1999-06-28 03:15:02 +0000
committerobrien <obrien@FreeBSD.org>1999-06-28 03:15:02 +0000
commitd3ca6b9c8b4b19817adf7a30a13d910ba9726375 (patch)
tree6bd99c5b7455d9982246ea7c47976c2280dc63ec /usr.sbin/newsyslog
parent69070f26c3bf86b076e5eb815d748af8fca0c2fd (diff)
downloadFreeBSD-src-d3ca6b9c8b4b19817adf7a30a13d910ba9726375.zip
FreeBSD-src-d3ca6b9c8b4b19817adf7a30a13d910ba9726375.tar.gz
Syntax for user/group is changed from "user.group" to "user:group" to be
consistant with chown(8).
Diffstat (limited to 'usr.sbin/newsyslog')
-rw-r--r--usr.sbin/newsyslog/newsyslog.814
-rw-r--r--usr.sbin/newsyslog/newsyslog.c4
2 files changed, 13 insertions, 5 deletions
diff --git a/usr.sbin/newsyslog/newsyslog.8 b/usr.sbin/newsyslog/newsyslog.8
index 154d167..8313c47 100644
--- a/usr.sbin/newsyslog/newsyslog.8
+++ b/usr.sbin/newsyslog/newsyslog.8
@@ -1,7 +1,7 @@
.\" This file contains changes from the Open Software Foundation.
.\"
.\" from: @(#)newsyslog.8
-.\" $Id: newsyslog.8,v 1.17 1999/01/28 19:56:05 wollman Exp $
+.\" $Id: newsyslog.8,v 1.18 1999/04/10 15:09:07 chuckr Exp $
.\"
.\" Copyright 1988, 1989 by the Massachusetts Institute of Technology
.\"
@@ -81,9 +81,9 @@ follows:
.Bl -tag -width indent
.It Ar logfile_name
Name of the system log file to be archived.
-.It Ar owner.group
+.It Ar owner:group
This optional field specifies the owner and group for the archive file.
-The "." is essential, even if the
+The ":" is essential, even if the
.Ar owner
or
.Ar group
@@ -274,7 +274,15 @@ Doesn't yet automatically read the logs to find security breaches.
MIT Project Athena
.Pp
Copyright 1987, Massachusetts Institute of Technology
+.Sh COMPATIBILITY
+Previous versions of the chown utility used the dot (``.'') character to
+distinguish the group name.
+Begining with
+.Fx 4.0 ,
+this has been changed to be a colon (``:'') character so that user and group
+names may contain the dot character.
.Sh "SEE ALSO"
.Xr gzip 1 ,
.Xr syslog 3 ,
+.Xr chown 8 ,
.Xr syslogd 8
diff --git a/usr.sbin/newsyslog/newsyslog.c b/usr.sbin/newsyslog/newsyslog.c
index 832a8c3..40dfdd9 100644
--- a/usr.sbin/newsyslog/newsyslog.c
+++ b/usr.sbin/newsyslog/newsyslog.c
@@ -27,7 +27,7 @@ provided "as is" without express or implied warranty.
#ifndef lint
static const char rcsid[] =
- "$Id: newsyslog.c,v 1.21 1998/12/23 12:03:33 peter Exp $";
+ "$Id: newsyslog.c,v 1.22 1999/01/22 19:38:39 wollman Exp $";
#endif /* not lint */
#define OSF
@@ -286,7 +286,7 @@ static struct conf_entry *parse_file()
if (!*parse)
errx(1, "malformed line (missing fields):\n%s", errline);
*parse = '\0';
- if ((group = strchr(q, '.')) != NULL) {
+ if ((group = strchr(q, ':')) != NULL) {
*group++ = '\0';
if (*q) {
if (!(isnumber(*q))) {
OpenPOWER on IntegriCloud