fix option handling inconsistency

This commit is contained in:
okuji 1999-06-28 04:10:35 +00:00
parent fc6fa9d5e2
commit f6fb25a807
5 changed files with 11 additions and 4 deletions

View file

@ -1,3 +1,9 @@
1999-06-28 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
* grub/main.c (main): The third argument for strtoul is changed
to 0 in the case where an option is OPT_INSTALL_PARTIION.
Reported by Pavel Roskin <pavel_roskin@geocities.com>.
1999-06-27 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
* stage2/shared.h (STAGE2_STAGE2_ID): New macro.

1
NEWS
View file

@ -13,6 +13,7 @@ New:
* Color menu support.
* New command "quit".
* The man page for /sbin/grub.
* All documents become Texinfo.
New in 0.5.91 - 1999-03-14, Gordon Matzigkeit:
* LBA and preliminary AWARD BIOS disk extension support.

4
README
View file

@ -49,8 +49,8 @@ http://sourceware.cygnus.com/automake for more information.
See the file INSTALL for instructions on how to build and install the
GRUB data and program files. See `docs/install.html' for details
about using GRUB as your bootloader.
GRUB data and program files. See the GRUB manual for details about
using GRUB as your bootloader.
If you have any suggestions or bug reports, please send electronic
mail to the GRUB mailing list <bug-grub@gnu.org>.

View file

@ -1226,7 +1226,7 @@ an integer (decimal, octal or hexadecimal).
@item --install-partition=@var{par}
Set the stage2 @var{install_partition} to @var{par}. This argument
should be an hexadecimal number.
should be an integer (decimal, octal or hexadecimal).
@item --no-config-file
Do not use the configuration file even if it can be read.

View file

@ -150,7 +150,7 @@ main (int argc, char **argv)
break;
case OPT_INSTALL_PARTITION:
install_partition = strtoul (optarg, 0, 16);
install_partition = strtoul (optarg, 0, 0);
if (install_partition == ULONG_MAX)
{
perror ("strtoul");