bnet_fsend(sd, use_device, device_name.c_str());
Dmsg1(100, ">stored: %s", sd->msg);
}
- bnet_sig(sd, BNET_EOD);
+ bnet_sig(sd, BNET_EOD); /* end of Devices */
+ bnet_sig(sd, BNET_EOD); /* end of Storages */
if (bget_dirmsg(sd) > 0) {
Dmsg1(100, "<stored: %s", sd->msg);
/* ****FIXME**** save actual device name */
if (!ok) {
return false;
}
- /* Eat to BNET_EOD */
+ /* Eat to BNET_EOD -- end of Devices */
while (bnet_recv(dir) > 0) {
}
+ /* Eat to end of Devices */
+ while (bnet_recv(dir) > 0) {
+ }
LockRes();
foreach_res(device, R_DEVICE) {
/* Find resource, and make sure we were able to open it */