fix a typo in grub-install, and fix open flags in install_func.

This commit is contained in:
okuji 2000-09-03 05:08:50 +00:00
parent 6728379880
commit 9015cd0364
3 changed files with 9 additions and 3 deletions

View file

@ -1,3 +1,9 @@
2000-09-03 OKUJI Yoshinori <okuji@gnu.org>
* util/grub-install.in: Fix a typo: grub_dir -> grubdir.
* stage2/builtins.c (install_func) [GRUB_UTIL]: Open a Stage 2
with "r+" instead of "r", as GRUB needs to overwrite it.
2000-09-02 OKUJI Yoshinori <okuji@gnu.org>
* stage2/stage2.c (run_menu): Don't use either `p' or `n' to

View file

@ -1871,7 +1871,7 @@ install_func (char *arg, int flags)
{
FILE *fp;
fp = fopen (stage2_os_file, "r");
fp = fopen (stage2_os_file, "r+");
if (! fp)
{
errnum = ERR_FILE_NOT_FOUND;
@ -1931,7 +1931,7 @@ install_func (char *arg, int flags)
{
FILE *fp;
fp = fopen (stage2_os_file, "r");
fp = fopen (stage2_os_file, "r+");
if (! fp)
{
errnum = ERR_FILE_NOT_FOUND;

View file

@ -262,7 +262,7 @@ test -x /bin/tempfile && log_file=`tempfile --prefix=grub`
# Now perform the installation.
$grub_shell --batch --device-map=$device_map <<EOF >$log_file
root $root_drive
setup $force_lba --stage2=$grub_dir/stage2 $install_drive
setup $force_lba --stage2=$grubdir/stage2 $install_drive
quit
EOF