mirror of
https://github.com/servalproject/serval-dna.git
synced 2024-12-21 22:17:53 +00:00
Made -r also set hlr.dat location.
This commit is contained in:
parent
e069984c71
commit
f56ffedfa2
9
dna.c
9
dna.c
@ -327,6 +327,15 @@ int main(int argc,char **argv)
|
||||
if (rhizome_datastore_path) return WHY("-r specified more than once");
|
||||
rhizome_datastore_path=optarg;
|
||||
rhizome_opendb();
|
||||
/* Also set hlr file to be in the Rhizome directory, to save the need to specify it
|
||||
separately. */
|
||||
char temp[1024];temp[1023]=0;
|
||||
snprintf(temp,1024,"%s/hlr.dat",optarg);
|
||||
if (temp[1023]) {
|
||||
exit(WHY("Rhizome directory name too long."));
|
||||
}
|
||||
hlr_file=strdup(temp);
|
||||
|
||||
break;
|
||||
case 'M': /* Distribute specified manifest and file pair using Rhizome. */
|
||||
/* This option assumes that the manifest is locally produced, and will
|
||||
|
Loading…
Reference in New Issue
Block a user