mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-06 13:09:50 +00:00
Syntax for user/group is changed from "user.group" to "user:group" to be
consistant with chown(8).
This commit is contained in:
parent
eadcd25f72
commit
63b5983b9e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=48295
@ -1,7 +1,7 @@
|
||||
# configuration file for newsyslog
|
||||
# $Id: newsyslog.conf,v 1.19 1999/06/01 11:20:15 ru Exp $
|
||||
# $Id: newsyslog.conf,v 1.20 1999/06/28 03:03:17 obrien Exp $
|
||||
#
|
||||
# logfilename [owner.group] mode count size when [ZB] [/pid_file] [sig_num]
|
||||
# logfilename [owner:group] mode count size when [ZB] [/pid_file] [sig_num]
|
||||
/var/cron/log 600 3 100 * Z
|
||||
/var/log/amd.log 664 7 100 * Z
|
||||
/var/log/kerberos.log 664 7 100 * Z
|
||||
|
@ -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
|
||||
|
@ -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))) {
|
||||
|
Loading…
Reference in New Issue
Block a user