Added missing call to writediskblock()

This commit is contained in:
Bobbi Webber-Manners 2020-02-05 22:53:54 -05:00
parent 24bf2e8015
commit fb03d6e95b

View File

@ -549,6 +549,10 @@ void copyent(uint srcblk, uint srcent, uint dstblk, uint dstent, uint device) {
}
struct pd_dirhdr *hdr = (struct pd_dirhdr*)buf;
hdr->parentry = dstent;
if (writediskblock(device, block, buf) == -1) {
perror("Can't write subdirectory");
exit(1);
}
}
}