diff options
author | Bob Beck <beck@cvs.openbsd.org> | 2002-06-08 04:57:35 +0000 |
---|---|---|
committer | Bob Beck <beck@cvs.openbsd.org> | 2002-06-08 04:57:35 +0000 |
commit | abea116f046ae6a827614edb9b7bd601b98e057a (patch) | |
tree | 53905feccd722bb00b170036d008009949c0444f /usr.sbin | |
parent | 5ca6bbf68f56e31ed9ea3cce3bff925f586805be (diff) |
comment and error message cleanup, from Brian Poole <raj@cerias.purdue.edu>
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/authpf/authpf.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/authpf/authpf.c b/usr.sbin/authpf/authpf.c index 31674fd3643..3bd49195ade 100644 --- a/usr.sbin/authpf/authpf.c +++ b/usr.sbin/authpf/authpf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: authpf.c,v 1.18 2002/06/07 08:51:44 beck Exp $ */ +/* $OpenBSD: authpf.c,v 1.19 2002/06/08 04:57:34 beck Exp $ */ /* * Copyright (C) 1998 - 2002 Bob Beck (beck@openbsd.org). @@ -76,7 +76,7 @@ char luser[MAXLOGNAME]; /* username */ char ipsrc[256]; /* ip as a string */ char pidfile[MAXPATHLEN]; /* we save pid in this file. */ -struct timeval Tstart, Tend; /* start and end times of session */ +struct timeval Tstart, Tend; /* start and end times of session */ int pfctl_add_rule(struct pfctl *, struct pf_rule *); int pfctl_add_nat(struct pfctl *, struct pf_nat *); @@ -401,7 +401,7 @@ allowed_luser(char *luser) if ((f = fopen(PATH_ALLOWFILE, "r")) == NULL) { if (errno == ENOENT) { /* - * allowfile doesn't exist, this this gateway + * allowfile doesn't exist, thus this gateway * isn't restricted to certain users... */ return(1); @@ -568,11 +568,11 @@ changefilter(int add, char *luser, char *ipsrc) if (snprintf(rulesfile, sizeof rulesfile, "%s/%s/authpf.rules", PATH_USER_DIR, luser) >= sizeof rulesfile) { - syslog(LOG_ERR, "homedir path too long, exiting"); + syslog(LOG_ERR, "user path too long, exiting"); goto error; } if ((from_fd = open(rulesfile, O_RDONLY, 0)) == -1) { - /* if home dir rules do not exist, we try PATH_PFRULES */ + /* if user dir rules do not exist, we try PATH_PFRULES */ if (errno != ENOENT) { syslog(LOG_ERR, "can't open %s (%m)", rulesfile); if (unlink(template) == -1) @@ -640,7 +640,7 @@ changefilter(int add, char *luser, char *ipsrc) if (snprintf(natfile, sizeof natfile, "%s/%s/authpf.nat", PATH_USER_DIR, luser) >= sizeof natfile) { - syslog(LOG_ERR, "homedir path too long, exiting"); + syslog(LOG_ERR, "user dir path too long, exiting"); goto error; } if ((from_fd = open(natfile, O_RDONLY, 0)) == -1) { |