2004-07-24 Yoshinori K. Okuji <okuji@enbug.org>

* stage2/stage2.c (cmain): Terminate DEFAULT_FILE with NUL
	correctly. Reported by Alban Crequy <alban.crequy@apinc.org>.
This commit is contained in:
okuji 2004-07-24 18:58:02 +00:00
parent 255d37589f
commit 16ca69f719
7 changed files with 17 additions and 6 deletions

View file

@ -1,3 +1,8 @@
2004-07-24 Yoshinori K. Okuji <okuji@enbug.org>
* stage2/stage2.c (cmain): Terminate DEFAULT_FILE with NUL
correctly. Reported by Alban Crequy <alban.crequy@apinc.org>.
2004-07-21 Robert Millan <robertmh@gnu.org> 2004-07-21 Robert Millan <robertmh@gnu.org>
Patch from David Weinehall <tao@debian.org> Patch from David Weinehall <tao@debian.org>

1
THANKS
View file

@ -8,6 +8,7 @@ generally assist in the GRUB maintainership process:
Adam Lackorzynski <adam@os.inf.tu-dresden.de> Adam Lackorzynski <adam@os.inf.tu-dresden.de>
Adrian Phillips <a.phillips@dnmi.no> Adrian Phillips <a.phillips@dnmi.no>
Alban Crequy <alban.crequy@apinc.org>
Alessandro Rubini <rubini@gnu.org> Alessandro Rubini <rubini@gnu.org>
Alexander K. Hudek <alexhudek@home.com> Alexander K. Hudek <alexhudek@home.com>
Alexander Langer <alex@big.endian.de> Alexander Langer <alex@big.endian.de>

View file

@ -1,5 +1,5 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.23. .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.23.
.TH GRUB-INSTALL "8" "June 2004" "grub-install (GNU GRUB 0.95)" FSF .TH GRUB-INSTALL "8" "July 2004" "grub-install (GNU GRUB 0.95)" FSF
.SH NAME .SH NAME
grub-install \- install GRUB on your drive grub-install \- install GRUB on your drive
.SH SYNOPSIS .SH SYNOPSIS
@ -32,6 +32,10 @@ BIOS
probe a device map even if it already exists probe a device map even if it already exists
.PP .PP
INSTALL_DEVICE can be a GRUB device name or a system device filename. INSTALL_DEVICE can be a GRUB device name or a system device filename.
.PP
grub-install copies GRUB images into the DIR/boot directory specfied by
\fB\-\-root\-directory\fR, and uses the grub shell to install grub into the boot
sector.
.SH "REPORTING BUGS" .SH "REPORTING BUGS"
Report bugs to <bug-grub@gnu.org>. Report bugs to <bug-grub@gnu.org>.
.SH "SEE ALSO" .SH "SEE ALSO"

View file

@ -1,5 +1,5 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.23. .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.23.
.TH GRUB "8" "June 2004" "grub (GNU GRUB 0.95)" FSF .TH GRUB "8" "July 2004" "grub (GNU GRUB 0.95)" FSF
.SH NAME .SH NAME
grub \- the grub shell grub \- the grub shell
.SH SYNOPSIS .SH SYNOPSIS

View file

@ -1,4 +1,4 @@
@set UPDATED 20 June 2004 @set UPDATED 16 July 2004
@set UPDATED-MONTH June 2004 @set UPDATED-MONTH July 2004
@set EDITION 0.95 @set EDITION 0.95
@set VERSION 0.95 @set VERSION 0.95

View file

@ -1,4 +1,4 @@
@set UPDATED 20 June 2004 @set UPDATED 16 July 2004
@set UPDATED-MONTH June 2004 @set UPDATED-MONTH July 2004
@set EDITION 0.95 @set EDITION 0.95
@set VERSION 0.95 @set VERSION 0.95

View file

@ -879,6 +879,7 @@ cmain (void)
i++; i++;
break; break;
} }
default_file[i] = 0;
grub_strncat (default_file + i, "default", DEFAULT_FILE_BUFLEN - i); grub_strncat (default_file + i, "default", DEFAULT_FILE_BUFLEN - i);
if (grub_open (default_file)) if (grub_open (default_file))
{ {