1
0
mirror of https://github.com/openbsd/src.git synced 2026-04-23 21:54:32 +00:00

Avoid passing a NULL name to retrieve(), use "." instead.

Fixes a "vfprintf %s NULL" warning in ftpd.
OK deraadt@ tb@
This commit is contained in:
millert
2020-03-04 20:17:48 +00:00
parent 094ed2c3de
commit aed6457bd7

View File

@@ -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
{