From 4bcf1a9e396b6d2e39d5dddd1d07ae0104160327 Mon Sep 17 00:00:00 2001 From: obrien Date: Wed, 28 Jul 1999 04:26:10 +0000 Subject: Go back to allowing ``.'' as a username.group separator for backward compatibility. : is still the documented non-ambiguous approach. The algorithm used will correctly parse david.obrien.staff as strrchar() is used, and in my mind more people would use a ``.'' in the username than the group name. Convinced by argument and patch by: sheldonh (with slight changes by me) --- usr.sbin/newsyslog/newsyslog.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'usr.sbin') diff --git a/usr.sbin/newsyslog/newsyslog.c b/usr.sbin/newsyslog/newsyslog.c index 40dfdd9..d0c65d5 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.22 1999/01/22 19:38:39 wollman Exp $"; + "$Id: newsyslog.c,v 1.23 1999/06/28 03:15:02 obrien Exp $"; #endif /* not lint */ #define OSF @@ -286,7 +286,8 @@ 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 = strrchr(q, '.')) != NULL) { *group++ = '\0'; if (*q) { if (!(isnumber(*q))) { -- cgit v1.1