summaryrefslogtreecommitdiffstats
path: root/libexec/ftp-proxy/util.c
diff options
context:
space:
mode:
authorbeck <beck@openbsd.org>2001-09-05 20:40:10 +0000
committerbeck <beck@openbsd.org>2001-09-05 20:40:10 +0000
commite615e1fa5694c372cdfe9b05dae7d71f98d2821c (patch)
tree2722e49d5dbd67c5fbf778eea60989876b1bc0b8 /libexec/ftp-proxy/util.c
parentFix SYNOPSIS (diff)
downloadwireguard-openbsd-e615e1fa5694c372cdfe9b05dae7d71f98d2821c.tar.xz
wireguard-openbsd-e615e1fa5694c372cdfe9b05dae7d71f98d2821c.zip
-Make ftp-proxy drop privs to user "proxy" by default.
*WARNING* this means that it will die when it can't find user proxy if you are not running with a passwd database generated from current - Speling cleanup and missing va_end() noticed by <d.doroshenko@omnitel.net> - fix logging of getpwnam|getgrnam failures.
Diffstat (limited to 'libexec/ftp-proxy/util.c')
-rw-r--r--libexec/ftp-proxy/util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libexec/ftp-proxy/util.c b/libexec/ftp-proxy/util.c
index 976150cb5b7..8c55b1d9c6d 100644
--- a/libexec/ftp-proxy/util.c
+++ b/libexec/ftp-proxy/util.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: util.c,v 1.4 2001/09/05 12:42:31 dhartmei Exp $ */
+/* $OpenBSD: util.c,v 1.5 2001/09/05 20:40:10 beck Exp $ */
/*
* Copyright (c) 1996-2001
@@ -69,6 +69,7 @@ debuglog(int debug_level, const char *fmt, ...)
if (Debug_Level >= debug_level)
vsyslog(LOG_DEBUG, fmt, ap);
+ va_end(ap);
}
int