mirror of https://github.com/BOINC/boinc.git
- 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:
parent
5e862ac495
commit
d5a41cba9c
|
@ -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
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue