Skip to content

Commit

Permalink
Fix error with resolution of symlinks
Browse files Browse the repository at this point in the history
The original code seems to have misunderstood the structure of symlink
entries in KFS and also did not realize that it was being passed a
pointer to the first byte of the entry.
  • Loading branch information
ddevault committed Jan 12, 2015
1 parent c7b72f7 commit ba74611
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/00/filesystem.asm
Original file line number Diff line number Diff line change
Expand Up @@ -869,20 +869,13 @@ _: pop af
ret
.linkFound:
; We need to replace the current path with this link and then start over
; TODO: Consider the implications of using kernelGarbage to store this
; string, what if it's too long?
dec hl \ dec hl
ld c, (hl)
dec hl
ld b, (hl)
ld b, 0
dec hl
or a
sbc hl, bc
ld de, kernelGarbage + 2
.skipNameLoop:
ld a, (hl)
dec hl
or a
jr nz, .skipNameLoop
.loadLinkLoop:
ld a, (hl)
ld (de), a
Expand Down

0 comments on commit ba74611

Please sign in to comment.