summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2020-03-04 20:17:48 +0000
committermillert <millert@openbsd.org>2020-03-04 20:17:48 +0000
commitaed6457bd75035468beacfdf63a33ce6029abd59 (patch)
tree9596282c7e69179f96e1b8a682694a3792bbbe15
parentsync (diff)
downloadwireguard-openbsd-aed6457bd75035468beacfdf63a33ce6029abd59.tar.xz
wireguard-openbsd-aed6457bd75035468beacfdf63a33ce6029abd59.zip
Avoid passing a NULL name to retrieve(), use "." instead.
Fixes a "vfprintf %s NULL" warning in ftpd. OK deraadt@ tb@
-rw-r--r--libexec/ftpd/ftpcmd.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/ftpd/ftpcmd.y b/libexec/ftpd/ftpcmd.y
index 3012d7c82ac..cc531fa51b8 100644
--- a/libexec/ftpd/ftpcmd.y
+++ b/libexec/ftpd/ftpcmd.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: ftpcmd.y,v 1.68 2019/06/28 13:32:53 deraadt Exp $ */
+/* $OpenBSD: ftpcmd.y,v 1.69 2020/03/04 20:17:48 millert Exp $ */
/* $NetBSD: ftpcmd.y,v 1.7 1996/04/08 19:03:11 jtc Exp $ */
/*
@@ -374,7 +374,7 @@ cmd
| LIST check_login CRLF
{
if ($2)
- retrieve(RET_LIST, NULL);
+ retrieve(RET_LIST, ".");
}
| LIST check_login SP pathname CRLF
{