- scheduler/file upload handler: ignore zero-length cmdline args.

Apparently some Apaches pass them.
    From Nils Brause.

svn path=/trunk/boinc/; revision=19288
This commit is contained in:
David Anderson 2009-10-12 16:44:26 +00:00
parent 5e862ac495
commit d5a41cba9c
4 changed files with 15 additions and 6 deletions

View File

@ -8545,3 +8545,12 @@ David 12 Oct 2009
lib/
gui_rpc_client.h
gui_rpc_client_ops.cpp
David 12 Oct 2009
- scheduler/file upload handler: ignore zero-length cmdline args.
Apparently some Apaches pass them.
From Nils Brause.
sched/
file_upload_handler.cpp
sched_main.cpp

View File

@ -24,8 +24,8 @@ $biomed = array(
"http://www.gpugrid.net/",
"Barcelona Biomedical Research Park (PRBB)",
"Molecular simulations of proteins",
"GPUGrid.net opens novel computational scenarios by the first full-atom molecular dynamics code (CellMD) specially optimized to run on NVIDIA GPUs and the Sony PlayStation 3. New biomedical applications suddenly become possible giving a new role to computational biology for biomedical research.",
"ps3grid.png"
"GPUGrid.net opens novel computational scenarios by the first full-atom molecular dynamics code (CellMD) specially optimized to run on NVIDIA GPUs. New biomedical applications suddenly become possible giving a new role to computational biology for biomedical research.",
"gpugrid.png"
),
array(
"Superlink@Technion",

View File

@ -642,7 +642,7 @@ int main(int argc, char *argv[]) {
} else if(option == "-h" || option == "-help" || option == "--help") {
usage(argv[0]);
exit(0);
} else {
} else if (option.length()){
fprintf(stderr, "unknown command line argument: %s\n\n", argv[c]);
usage(argv[0]);
exit(1);

View File

@ -372,13 +372,13 @@ int main(int argc, char** argv) {
}
simtime = atof(argv[i]);
#endif
} else if(!strcmp(argv[1], "-h") || !strcmp(argv[1], "--help")) {
} else if(!strcmp(argv[i], "-h") || !strcmp(argv[i], "--help")) {
usage(argv[0]);
exit(0);
} else if(!strcmp(argv[1], "-v") || !strcmp(argv[1], "--version")) {
} else if(!strcmp(argv[i], "-v") || !strcmp(argv[i], "--version")) {
printf("%s\n", SVN_VERSION);
exit(0);
} else {
} else if (strlen(argv[i])){
log_messages.printf(MSG_CRITICAL, "unknown command line argument: %s\n\n", argv[i]);
usage(argv[0]);
exit(1);