=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ftp/util.c,v retrieving revision 1.55 retrieving revision 1.56 diff -c -r1.55 -r1.56 *** src/usr.bin/ftp/util.c 2008/08/22 08:52:35 1.55 --- src/usr.bin/ftp/util.c 2009/01/27 22:04:36 1.56 *************** *** 1,4 **** ! /* $OpenBSD: util.c,v 1.55 2008/08/22 08:52:35 sobrado Exp $ */ /* $NetBSD: util.c,v 1.12 1997/08/18 10:20:27 lukem Exp $ */ /*- --- 1,4 ---- ! /* $OpenBSD: util.c,v 1.56 2009/01/27 22:04:36 martynas Exp $ */ /* $NetBSD: util.c,v 1.12 1997/08/18 10:20:27 lukem Exp $ */ /*- *************** *** 64,70 **** */ #if !defined(lint) && !defined(SMALL) ! static const char rcsid[] = "$OpenBSD: util.c,v 1.55 2008/08/22 08:52:35 sobrado Exp $"; #endif /* not lint and not SMALL */ /* --- 64,70 ---- */ #if !defined(lint) && !defined(SMALL) ! static const char rcsid[] = "$OpenBSD: util.c,v 1.56 2009/01/27 22:04:36 martynas Exp $"; #endif /* not lint and not SMALL */ /* *************** *** 458,464 **** #ifndef SMALL if (type) { parse_list(&bufp, type); ! if (!bufp) goto again; } #endif /* !SMALL */ --- 458,467 ---- #ifndef SMALL if (type) { parse_list(&bufp, type); ! if (!bufp || ! (bufp[0] == '.' && /* LIST defaults to -a on some ftp */ ! (bufp[1] == '\0' || /* servers. Ignore '.' and '..'. */ ! (bufp[1] == '.' && bufp[2] == '\0')))) goto again; } #endif /* !SMALL */