=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ftp/fetch.c,v retrieving revision 1.85 retrieving revision 1.86 diff -c -r1.85 -r1.86 *** src/usr.bin/ftp/fetch.c 2009/04/27 21:37:13 1.85 --- src/usr.bin/ftp/fetch.c 2009/05/05 19:35:30 1.86 *************** *** 1,4 **** ! /* $OpenBSD: fetch.c,v 1.85 2009/04/27 21:37:13 deraadt Exp $ */ /* $NetBSD: fetch.c,v 1.14 1997/08/18 10:20:20 lukem Exp $ */ /*- --- 1,4 ---- ! /* $OpenBSD: fetch.c,v 1.86 2009/05/05 19:35:30 martynas Exp $ */ /* $NetBSD: fetch.c,v 1.14 1997/08/18 10:20:20 lukem Exp $ */ /*- *************** *** 68,73 **** --- 68,74 ---- #endif /* !SMALL */ #include "ftp_var.h" + #include "cmds.h" static int url_get(const char *, const char *, const char *); void aborthttp(int); *************** *** 1045,1051 **** --- 1046,1057 ---- } if (EMPTYSTRING(file)) { + #ifndef SMALL rval = -1; + #else /* !SMALL */ + recvrequest("NLST", "-", NULL, "w", 0, 0); + rval = 0; + #endif /* !SMALL */ continue; }