summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2012-08-06 03:10:37 (GMT)
committerH. Peter Anvin <hpa@zytor.com>2012-08-06 03:10:37 (GMT)
commit824bef23cdb7a31074dc40976079cadc19803fca (patch)
tree2cfb7955a11145384b02e279edcd071c43f72397
parentc63e656b5d887c99786787369d3d79b8f55333a0 (diff)
downloadabcdisk-824bef23cdb7a31074dc40976079cadc19803fca.zip
abcdisk-824bef23cdb7a31074dc40976079cadc19803fca.tar.gz
abcdisk-824bef23cdb7a31074dc40976079cadc19803fca.tar.bz2
abcdisk-824bef23cdb7a31074dc40976079cadc19803fca.tar.xz
Add the extra self-pointer in the UFD bitmap
-rw-r--r--abcwrite.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/abcwrite.c b/abcwrite.c
index 7b2a769..4dcbde2 100644
--- a/abcwrite.c
+++ b/abcwrite.c
@@ -415,6 +415,9 @@ struct directory *make_ufd(struct directory *dir, const char *filename)
ufd->dirsec = header + 512;
ufd->block = (header - dir->disk->image) >> 8;
+ /* The UFD bitmap contains two copies of the self-pointer... */
+ ufd->bitmap[5] = ufd->bitmap[0];
+
return ufd;
}