[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
hurd/libftpconn unix.c
From: |
Roland McGrath |
Subject: |
hurd/libftpconn unix.c |
Date: |
Sat, 19 Oct 2002 16:11:14 -0400 |
CVSROOT: /cvsroot/hurd
Module name: hurd
Changes by: Roland McGrath <address@hidden> 02/10/19 16:11:14
Modified files:
libftpconn : unix.c
Log message:
2002-10-19 Roland McGrath <address@hidden>
* unix.c (ftp_conn_unix_start_get_stats): Pass dirname a copy of NAME
instead of the original pointer.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/hurd/hurd/libftpconn/unix.c.diff?tr1=1.11&tr2=1.12&r1=text&r2=text
Patches:
Index: hurd/libftpconn/unix.c
diff -u hurd/libftpconn/unix.c:1.11 hurd/libftpconn/unix.c:1.12
--- hurd/libftpconn/unix.c:1.11 Fri Apr 19 23:22:47 2002
+++ hurd/libftpconn/unix.c Sat Oct 19 16:11:14 2002
@@ -1,8 +1,7 @@
/* Unix-specific ftpconn hooks
- Copyright (C) 1997, 1998 Free Software Foundation, Inc.
-
- Written by Miles Bader <address@hidden>
+ Copyright (C) 1997, 1998, 2002 Free Software Foundation, Inc.
+ Written by Miles Bader <address@hidden>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
@@ -224,7 +223,7 @@
than looking it up directly, as not all ftp servers support
the -d option to ls. To make sure we get a directory, append
'/', except for the root directory. */
- char *dirn = dirname ((char *) name);
+ char *dirn = dirname (strdupa (name));
int is_root = ! strcmp (dirn, "/");
req_len += strlen (dirn) + (is_root ? 0 : 1);
req = malloc (req_len);
@@ -244,7 +243,7 @@
else
sprintf (req, "%s %s%s", flags, slash ? "" : "./", name);
}
-
+
if (err)
goto out;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- hurd/libftpconn unix.c,
Roland McGrath <=