mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-28 10:10:29 +00:00
Fix brainos from misapplied patches. Add improved password checking.
This commit is contained in:
1 parent
d61ce9f2a4
commit
8a1b524d47
6 files changed
+92
-42
No files matched your search
+3
-3
@@ -143,7 +143,7 @@ grub_stage2 (void)
|
||||
/* Close off the file descriptors we used. */
|
||||
for (i = 0; i < NUM_DISKS; i ++)
|
||||
if (disks[i].flags)
|
||||
close ((FILE *) disks[i].flags);
|
||||
close (disks[i].flags);
|
||||
|
||||
/* Release memory. */
|
||||
free (disks);
|
||||
@@ -356,7 +356,7 @@ checkkey (void)
|
||||
ungetch (c); /* FIXME: ncurses-1.9.9g ungetch is buggy. */
|
||||
return c;
|
||||
#else
|
||||
/* Just pretend they hit the space bar.
|
||||
/* Just pretend they hit the space bar. */
|
||||
return ' ';
|
||||
#endif
|
||||
}
|
||||
@@ -501,7 +501,7 @@ biosdisk (int subfunc, int drive, struct geometry *geometry,
|
||||
|
||||
buf = (char *) (segment << 4);
|
||||
/* FIXME: handle EINTR */
|
||||
if (read (fd, buf, nsec * SECTOR_SIZE, fp) != nsec * SECTOR_SIZE)
|
||||
if (read (fd, buf, nsec * SECTOR_SIZE) != nsec * SECTOR_SIZE)
|
||||
return -1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user