summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbeck <beck@openbsd.org>2002-06-08 04:57:34 +0000
committerbeck <beck@openbsd.org>2002-06-08 04:57:34 +0000
commit4a685e410b38d1d8c1261bd00ab929255f833b28 (patch)
tree3c6e63cd82c6ecdb548a40b8bdcbc438f8e8fda9
parentregression test from $srcaddr & friends in rule labels (diff)
downloadwireguard-openbsd-4a685e410b38d1d8c1261bd00ab929255f833b28.tar.xz
wireguard-openbsd-4a685e410b38d1d8c1261bd00ab929255f833b28.zip
comment and error message cleanup, from Brian Poole <raj@cerias.purdue.edu>
-rw-r--r--usr.sbin/authpf/authpf.c12
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) {