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

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

No files matched your search

+6
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
+2 -2
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;
+1 -1
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