Made -r also set hlr.dat location.

This commit is contained in:
gardners 2012-01-09 09:06:35 +10:30
parent e069984c71
commit f56ffedfa2

9
dna.c
View File

@ -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