Straightforward bug; was neither downloading to the intended location
nor attempting to locate the file there afterwards.
if (notification == NULL)
pr_crit("Programming error: Notification not recorded.");
- pb_init(&pb);
-
- error = pb_append(&pb, "rrdp");
+ error = pb_init_cache(&pb, "rrdp");
if (error)
return error;
error = append_guri(&pb, notification->global, "https://", ENOTHTTPS, true);
return error;
}
- uri->type = UT_RSYNC;
+ uri->type = (validation_get_notification_uri(state_retrieve()) == NULL)
+ ? UT_RSYNC
+ : UT_CAGED;
error = autocomplete_local(uri);
if (error) {