From 8133110e91556d06e0b8dc32ee7c2a503c151608 Mon Sep 17 00:00:00 2001 From: Daniel Hartmeier Date: Sun, 29 Dec 2002 22:00:38 +0000 Subject: Set a macro $user_id to the user name, just like $user_ip is already set to the IP address. From discussion with Michael Lucas. ok henning@ --- usr.sbin/authpf/authpf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin') diff --git a/usr.sbin/authpf/authpf.c b/usr.sbin/authpf/authpf.c index 5e91afa761e..ca6fdce5fc9 100644 --- a/usr.sbin/authpf/authpf.c +++ b/usr.sbin/authpf/authpf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: authpf.c,v 1.39 2002/12/22 16:19:32 henning Exp $ */ +/* $OpenBSD: authpf.c,v 1.40 2002/12/29 22:00:37 dhartmei Exp $ */ /* * Copyright (C) 1998 - 2002 Bob Beck (beck@openbsd.org). @@ -580,7 +580,7 @@ change_filter(int add, const char *luser, const char *ipsrc) } if (add) { - if (symset("user_ip", ipsrc)) { + if (symset("user_ip", ipsrc) || symset("user_id", luser)) { syslog(LOG_ERR, "symset"); goto error; } -- cgit v1.2.3