Use the proper condition to determine that we matched an filename.

Otherwise, we could match on a filename that had the wrong last character
(such as /boot/loaded instead of /boot/loader).

PR:		kern/95625
Submitted by:	Oliver Fromme <olli@secnetix.de>
MFC after:	1 month
This commit is contained in:
John Baldwin 2006-04-11 17:26:54 +00:00
parent 5089bd63bd
commit 70e040dfcf

View file

@ -400,7 +400,7 @@ ff.nextblock: subl $SECTOR_SIZE,rec_size # Adjust size
ff.checkname: lea DIR_NAME(%bx),%di # Address name in record
push %si # Save
repe cmpsb # Compare name
jcxz ff.match # We have a winner!
je ff.match # We have a winner!
pop %si # Restore
jmp ff.nextrec # Keep looking.
ff.match: add $2,%sp # Discard saved %si