diff options
author | Daniel Hartmeier <dhartmei@cvs.openbsd.org> | 2002-12-29 22:00:38 +0000 |
---|---|---|
committer | Daniel Hartmeier <dhartmei@cvs.openbsd.org> | 2002-12-29 22:00:38 +0000 |
commit | 8133110e91556d06e0b8dc32ee7c2a503c151608 (patch) | |
tree | 424ec2d673a297ceb2d494bfb24540ec5071c22e | |
parent | d42f42ed51eb18560c59a5ef99e8a7ee7a263b8c (diff) |
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@
-rw-r--r-- | usr.sbin/authpf/authpf.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |