Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/ftp Handle URLs without files correctly (e.g, when u...



details:   https://anonhg.NetBSD.org/src/rev/8d01e8e1d676
branches:  trunk
changeset: 526577:8d01e8e1d676
user:      lukem <lukem%NetBSD.org@localhost>
date:      Mon May 06 15:03:30 2002 +0000

description:
Handle URLs without files correctly (e.g, when using '-o -').
Fix from Anders Dinsen <anders%dinsen.net@localhost> in [bin/13768]

diffstat:

 usr.bin/ftp/fetch.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r e0535d882021 -r 8d01e8e1d676 usr.bin/ftp/fetch.c
--- a/usr.bin/ftp/fetch.c       Mon May 06 14:36:41 2002 +0000
+++ b/usr.bin/ftp/fetch.c       Mon May 06 15:03:30 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fetch.c,v 1.134 2002/05/06 14:36:41 lukem Exp $        */
+/*     $NetBSD: fetch.c,v 1.135 2002/05/06 15:03:30 lukem Exp $        */
 
 /*-
  * Copyright (c) 1997-2001 The NetBSD Foundation, Inc.
@@ -41,7 +41,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: fetch.c,v 1.134 2002/05/06 14:36:41 lukem Exp $");
+__RCSID("$NetBSD: fetch.c,v 1.135 2002/05/06 15:03:30 lukem Exp $");
 #endif /* not lint */
 
 /*
@@ -399,7 +399,7 @@
        if (tport != NULL)
                *port = xstrdup(tport);
        if (*path == NULL)
-               *path = xstrdup("");
+               *path = xstrdup("/");
 
        if (debug)
                fprintf(ttyout,



Home | Main Index | Thread Index | Old Index