diff options
Diffstat (limited to 'release/sysinstall/ftp.c')
| -rw-r--r-- | release/sysinstall/ftp.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/release/sysinstall/ftp.c b/release/sysinstall/ftp.c index 4f1e542e86b16..f6d6bc7fd8a26 100644 --- a/release/sysinstall/ftp.c +++ b/release/sysinstall/ftp.c @@ -4,7 +4,7 @@ * This is probably the last attempt in the `sysinstall' line, the next * generation being slated to essentially a complete rewrite. * - * $Id: ftp.c,v 1.35 1998/01/28 04:42:38 jkh Exp $ + * $Id: ftp.c,v 1.34 1997/10/03 14:00:09 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -80,6 +80,9 @@ mediaInitFTP(Device *dev) if (ftpInitted) return TRUE; + if (isDebug()) + msgDebug("Init routine for FTP called.\n"); + if (OpenConn) { fclose(OpenConn); OpenConn = NULL; @@ -164,6 +167,8 @@ try: else goto punt; } + if (isDebug()) + msgDebug("mediaInitFTP was successful (logged in and chdir'd)\n"); ftpInitted = TRUE; return TRUE; @@ -216,7 +221,7 @@ mediaGetFTP(Device *dev, char *file, Boolean probe) /* Try some alternatives */ switch (nretries++) { case 1: - sprintf(buf, "releases/%s", file); + sprintf(buf, "dists/%s", file); try = buf; break; @@ -226,7 +231,7 @@ mediaGetFTP(Device *dev, char *file, Boolean probe) break; case 3: - sprintf(buf, "%s/releases/%s", variable_get(VAR_RELNAME), file); + sprintf(buf, "%s/dists/%s", variable_get(VAR_RELNAME), file); try = buf; break; @@ -245,6 +250,7 @@ mediaShutdownFTP(Device *dev) if (!ftpInitted) return; + msgDebug("FTP shutdown called. OpenConn = %x\n", OpenConn); if (OpenConn != NULL) { fclose(OpenConn); OpenConn = NULL; |
