diff --git a/sched/Makefile.in b/sched/Makefile.in
index a18d5be7d1..e75f243dea 100644
--- a/sched/Makefile.in
+++ b/sched/Makefile.in
@@ -12,6 +12,7 @@ CFLAGS = -g -Wall @DEFS@ \
-DBOINC_DB_NAME=\"$(BOINC_DB_NAME)\" \
-DBOINC_KEY=$(BOINC_KEY) \
-DBOINC_KEY_DIR=\"$(BOINC_KEY_DIR)\" \
+ -DBOINC_UPLOAD_DIR=\"$(BOINC_UPLOAD_DIR)\" \
-DBOINC_USER=\"$(BOINC_USER)\" \
-I/usr/local/mysql/include \
-I@top_srcdir@/RSAEuro/source \
diff --git a/sched/file_upload_handler.C b/sched/file_upload_handler.C
index 8eec63516c..257f2e4829 100644
--- a/sched/file_upload_handler.C
+++ b/sched/file_upload_handler.C
@@ -58,7 +58,6 @@ int FILE_INFO::parse(FILE* in) {
}
int print_status(int status, char* message) {
- assert(message!=NULL);
printf("Content-type: text/plain\n\n%d\n", status);
if (message) printf("%s\n", message);
#if 0
@@ -154,7 +153,7 @@ int handle_request(FILE* in, R_RSA_PUBLIC_KEY& key) {
return -1;
}
- sprintf(path, "%s/%s", getenv("BOINC_UPLOAD_DIR"), file_info.name);
+ sprintf(path, "%s/%s", BOINC_UPLOAD_DIR, file_info.name);
retval = copy_socket_to_file(in, path, offset, nbytes);
break;
}
@@ -166,7 +165,7 @@ int get_key(R_RSA_PUBLIC_KEY& key) {
FILE* f;
int retval;
char buf[256];
- sprintf(buf, "%s/upload_public", getenv("BOINC_KEY_DIR"));
+ sprintf(buf, "%s/upload_public", BOINC_KEY_DIR);
f = fopen(buf, "r");
if (!f) return -1;
retval = scan_key_hex(f, (KEY*)&key, sizeof(key));