diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 1997-04-16 01:40:22 -0400 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 1997-04-16 01:40:22 -0400 |
commit | e4409c408eedf320b8845cafdd62b664bec1afd8 (patch) | |
tree | ccce96259ffd0a5edf9dc05e49262aaf5854fd99 /src/LYDownload.c | |
parent | 36a66292ee2ec3530d776892d22d6c5ace810ae0 (diff) | |
download | lynx-snapshots-e4409c408eedf320b8845cafdd62b664bec1afd8.tar.gz |
snapshot of project "lynx", label v2-7-1ac_0-6
Diffstat (limited to 'src/LYDownload.c')
-rw-r--r-- | src/LYDownload.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/LYDownload.c b/src/LYDownload.c index 89fcf61a..92dba795 100644 --- a/src/LYDownload.c +++ b/src/LYDownload.c @@ -15,6 +15,9 @@ #ifdef VMS #include "HTVMSUtils.h" #endif /* VMS */ +#ifdef DOSPATH +#include "HTDOS.h" +#endif #include "LYexit.h" #include "LYLeaks.h" @@ -197,11 +200,15 @@ check_recall: strcpy(command, buffer); if ((len=strlen(command)) > 0 && command[len-1] == '/') command[len-1] = '\0'; +#ifdef DOSPATH + strcat(command, HTDOS_wwwName((char *)Home_Dir())); +#else #ifdef VMS strcat(command, HTVMS_wwwName((char *)Home_Dir())); #else strcat(command, Home_Dir()); #endif /* VMS */ +#endif /* DOSPATH */ strcat(command, cp); strcpy(buffer, command); } @@ -224,7 +231,11 @@ check_recall: cp = NULL; if (cp) { sprintf(command,"%s/%s", cp, buffer); +#ifdef DOSPATH + strcpy(buffer, HTDOS_name(command)); +#else strcpy(buffer, command); +#endif } #endif /* VMS */ @@ -532,7 +543,7 @@ PUBLIC int LYdownload_options ARGS2(char **,newfile, char *,data_file) } /* make the file a URL now */ -#ifdef VMS +#if defined (VMS) || defined (DOSPATH) sprintf(download_filename,"file://localhost/%s",tempfile); #else sprintf(download_filename,"file://localhost%s",tempfile); |