aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index cb6d5a43d..aac07bef2 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1995,6 +1995,7 @@ static int parseconfig(const char *filename,
#define CURLRC DOT_CHAR "curlrc"
+#ifndef AMIGA
filename = CURLRC; /* sensible default */
home = homedir(); /* portable homedir finder */
if(home) {
@@ -2006,6 +2007,13 @@ static int parseconfig(const char *filename,
}
free(home); /* we've used it, now free it */
}
+
+# else /* AmigaOS */
+ /* On AmigaOS all the config files are into env:
+ */
+ filename = "ENV:" CURLRC;
+
+#endif
}
if(strcmp(filename,"-"))
@@ -3300,6 +3308,14 @@ operate(struct Configurable *config, int argc, char *argv[])
}
}
#endif
+#ifdef AMIGA
+ /* Set the url as comment for the file. (up to 80 chars are allowed)
+ */
+ if( strlen(url) > 78 )
+ url[79] = '\0';
+
+ SetComment( outs.filename, url);
+#endif
if(headerfilep)
fclose(headerfilep);