Sophie

Sophie

distrib > Mageia > 7 > i586 > by-pkgid > 00c7f3b98d0f686381db36d111461906 > files > 23

grub-0.97-48.mga7.src.rpm

--- grub-0.97/stage2/builtins.c	2017-12-16 14:34:16.130000000 +0000
+++ builtins.c	2017-12-16 14:33:27.180000000 +0000
@@ -1984,7 +1984,7 @@
   /* Read Stage 1.  */
   is_open = grub_open (stage1_file);
   if (! is_open
-      || ! grub_read (stage1_buffer, SECTOR_SIZE) == SECTOR_SIZE)
+      || grub_read (stage1_buffer, SECTOR_SIZE) != SECTOR_SIZE)
     goto fail;
 
   /* Read the old sector from DEST_DEV.  */