fix option handling inconsistency
This commit is contained in:
parent
fc6fa9d5e2
commit
f6fb25a807
5 changed files with 11 additions and 4 deletions
|
@ -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>
|
1999-06-27 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
|
||||||
|
|
||||||
* stage2/shared.h (STAGE2_STAGE2_ID): New macro.
|
* stage2/shared.h (STAGE2_STAGE2_ID): New macro.
|
||||||
|
|
1
NEWS
1
NEWS
|
@ -13,6 +13,7 @@ New:
|
||||||
* Color menu support.
|
* Color menu support.
|
||||||
* New command "quit".
|
* New command "quit".
|
||||||
* The man page for /sbin/grub.
|
* The man page for /sbin/grub.
|
||||||
|
* All documents become Texinfo.
|
||||||
|
|
||||||
New in 0.5.91 - 1999-03-14, Gordon Matzigkeit:
|
New in 0.5.91 - 1999-03-14, Gordon Matzigkeit:
|
||||||
* LBA and preliminary AWARD BIOS disk extension support.
|
* LBA and preliminary AWARD BIOS disk extension support.
|
||||||
|
|
4
README
4
README
|
@ -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
|
See the file INSTALL for instructions on how to build and install the
|
||||||
GRUB data and program files. See `docs/install.html' for details
|
GRUB data and program files. See the GRUB manual for details about
|
||||||
about using GRUB as your bootloader.
|
using GRUB as your bootloader.
|
||||||
|
|
||||||
If you have any suggestions or bug reports, please send electronic
|
If you have any suggestions or bug reports, please send electronic
|
||||||
mail to the GRUB mailing list <bug-grub@gnu.org>.
|
mail to the GRUB mailing list <bug-grub@gnu.org>.
|
||||||
|
|
|
@ -1226,7 +1226,7 @@ an integer (decimal, octal or hexadecimal).
|
||||||
|
|
||||||
@item --install-partition=@var{par}
|
@item --install-partition=@var{par}
|
||||||
Set the stage2 @var{install_partition} to @var{par}. This argument
|
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
|
@item --no-config-file
|
||||||
Do not use the configuration file even if it can be read.
|
Do not use the configuration file even if it can be read.
|
||||||
|
|
|
@ -150,7 +150,7 @@ main (int argc, char **argv)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case OPT_INSTALL_PARTITION:
|
case OPT_INSTALL_PARTITION:
|
||||||
install_partition = strtoul (optarg, 0, 16);
|
install_partition = strtoul (optarg, 0, 0);
|
||||||
if (install_partition == ULONG_MAX)
|
if (install_partition == ULONG_MAX)
|
||||||
{
|
{
|
||||||
perror ("strtoul");
|
perror ("strtoul");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue