]> git.ozlabs.org Git - yaboot.git/commitdiff
Commit yaboot 1.3.5-pre3
authorEthan Benson <erbenson@alaska.net>
Wed, 27 Mar 2002 13:25:55 +0000 (13:25 +0000)
committerEthan Benson <erbenson@alaska.net>
Wed, 27 Mar 2002 13:25:55 +0000 (13:25 +0000)
Commit yaboot 1.3.5-pre3.
git-archimport-id: erbenson@alaska.net--public/yaboot--devel--1.3--patch-11

ChangeLog
Makefile
man.patch
man/yaboot.conf.5
second/yaboot.c
ybin/ybin

index 61bd5149ba05e5fbcae6d66601334e73650321a6..d9eeb39fb46e3f8cf7c192cea1d47164f2b1f543 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,20 @@
 # tag: automatic-ChangeLog--erbenson@alaska.net--public/yaboot--devel--1.3
 #
 
 # tag: automatic-ChangeLog--erbenson@alaska.net--public/yaboot--devel--1.3
 #
 
+2002-03-27 13:25:55 GMT        Ethan Benson <erbenson@alaska.net>      patch-11
+
+    Summary:
+      Commit yaboot 1.3.5-pre3
+    Revision:
+      yaboot--devel--1.3--patch-11
+
+    Commit yaboot 1.3.5-pre3.
+
+    modified files:
+     ChangeLog Makefile man.patch man/yaboot.conf.5 second/yaboot.c
+     ybin/ybin
+
+
 2002-03-27 13:22:23 GMT        Ethan Benson <erbenson@alaska.net>      patch-10
 
     Summary:
 2002-03-27 13:22:23 GMT        Ethan Benson <erbenson@alaska.net>      patch-10
 
     Summary:
index b8b02c77a7b0fc98923ad68d3941b280b27d8b66..91fdf6263386dd0f0f83b071c50759f9e3fabf8b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,7 @@
 
 include Config
 
 
 include Config
 
-VERSION = 1.3.5pre2
+VERSION = 1.3.5pre3
 # Debug mode (spam/verbose)
 DEBUG = 0
 # make install vars
 # Debug mode (spam/verbose)
 DEBUG = 0
 # make install vars
index 707668a9c236dd0fb64d9c76597b6756b0a7e198..bb0dd4090e32a9a1e31df2d0060dd31bbea6b310 100644 (file)
--- a/man.patch
+++ b/man.patch
@@ -1,6 +1,6 @@
 diff -urN -x CVS man/mkofboot.8 man.deb/mkofboot.8
 --- man/mkofboot.8     Thu May 24 04:32:54 2001
 diff -urN -x CVS man/mkofboot.8 man.deb/mkofboot.8
 --- man/mkofboot.8     Thu May 24 04:32:54 2001
-+++ man.deb/mkofboot.8 Thu Oct 25 05:06:35 2001
++++ man.deb/mkofboot.8 Thu Oct 25 05:43:57 2001
 @@ -94,7 +94,7 @@
  .TP
  .BR \-i ,\  \-\-install\ \fIboot-file
 @@ -94,7 +94,7 @@
  .TP
  .BR \-i ,\  \-\-install\ \fIboot-file
@@ -31,8 +31,8 @@ diff -urN -x CVS man/mkofboot.8 man.deb/mkofboot.8
  but root.  It is also critical that \fI/etc/yaboot.conf\fR not be
  writable by anyone but root since a different \fIofboot\fR script could be
 diff -urN -x CVS man/yaboot.conf.5 man.deb/yaboot.conf.5
  but root.  It is also critical that \fI/etc/yaboot.conf\fR not be
  writable by anyone but root since a different \fIofboot\fR script could be
 diff -urN -x CVS man/yaboot.conf.5 man.deb/yaboot.conf.5
---- man/yaboot.conf.5  Thu Oct 25 05:06:22 2001
-+++ man.deb/yaboot.conf.5      Thu Oct 25 05:06:35 2001
+--- man/yaboot.conf.5  Thu Oct 25 05:43:33 2001
++++ man.deb/yaboot.conf.5      Thu Oct 25 05:43:57 2001
 @@ -136,7 +136,7 @@
    boot=/dev/hda2
    device=hd:
 @@ -136,7 +136,7 @@
    boot=/dev/hda2
    device=hd:
@@ -51,7 +51,7 @@ diff -urN -x CVS man/yaboot.conf.5 man.deb/yaboot.conf.5
  loader for yaboot.  It is capable of presenting a dual boot menu for
  GNU/Linux, MacOS and MacOSX.  If dual booting is not required or
  configured it will simply load yaboot directly.  You must specify this
  loader for yaboot.  It is capable of presenting a dual boot menu for
  GNU/Linux, MacOS and MacOSX.  If dual booting is not required or
  configured it will simply load yaboot directly.  You must specify this
-@@ -305,7 +305,7 @@
+@@ -306,7 +306,7 @@
  When you define this option you will be presented with a simple menu at
  bootup allowing you to hit L to boot GNU/Linux or B to boot BSD (along
  with other choices if configured).  This will only work if you are
  When you define this option you will be presented with a simple menu at
  bootup allowing you to hit L to boot GNU/Linux or B to boot BSD (along
  with other choices if configured).  This will only work if you are
@@ -60,7 +60,7 @@ diff -urN -x CVS man/yaboot.conf.5 man.deb/yaboot.conf.5
  set to a unix device node (ie \fI/dev/hda11\fR) then ybin will use the
  \fBofpath\fR(8) utility to determine the OpenFirmware device path.
  .TP
  set to a unix device node (ie \fI/dev/hda11\fR) then ybin will use the
  \fBofpath\fR(8) utility to determine the OpenFirmware device path.
  .TP
-@@ -314,7 +314,7 @@
+@@ -315,7 +315,7 @@
  partition.  When you define this option you will be presented with a
  simple menu at bootup allowing you to hit L to boot GNU/Linux or M to
  boot MacOS (along with other choices if configured).  This will only
  partition.  When you define this option you will be presented with a
  simple menu at bootup allowing you to hit L to boot GNU/Linux or M to
  boot MacOS (along with other choices if configured).  This will only
@@ -69,7 +69,7 @@ diff -urN -x CVS man/yaboot.conf.5 man.deb/yaboot.conf.5
  script.  When this is set to a unix device node (ie \fI/dev/hda11\fR)
  then ybin will use the \fBofpath\fR(8) utility to determine the
  OpenFirmware device path.
  script.  When this is set to a unix device node (ie \fI/dev/hda11\fR)
  then ybin will use the \fBofpath\fR(8) utility to determine the
  OpenFirmware device path.
-@@ -324,7 +324,7 @@
+@@ -325,7 +325,7 @@
  When you define this option you will be presented with a simple menu
  at bootup allowing you to hit L to boot GNU/Linux or X to boot MacOSX
  (along with other choices if configured).  This will only work if you
  When you define this option you will be presented with a simple menu
  at bootup allowing you to hit L to boot GNU/Linux or X to boot MacOSX
  (along with other choices if configured).  This will only work if you
@@ -78,7 +78,7 @@ diff -urN -x CVS man/yaboot.conf.5 man.deb/yaboot.conf.5
  this is set to a unix device node (ie \fI/dev/hda11\fR) then ybin will
  use the \fBofpath\fR(8) utility to determine the OpenFirmware device
  path.
  this is set to a unix device node (ie \fI/dev/hda11\fR) then ybin will
  use the \fBofpath\fR(8) utility to determine the OpenFirmware device
  path.
-@@ -345,7 +345,7 @@
+@@ -346,7 +346,7 @@
  When you define this option you will be presented with a simple menu
  at bootup allowing you to hit L to boot GNU/Linux or D to boot Darwin
  (along with other choices if configured).  This will only work if you
  When you define this option you will be presented with a simple menu
  at bootup allowing you to hit L to boot GNU/Linux or D to boot Darwin
  (along with other choices if configured).  This will only work if you
@@ -87,7 +87,7 @@ diff -urN -x CVS man/yaboot.conf.5 man.deb/yaboot.conf.5
  this is set to a unix device node (ie \fI/dev/hda11\fR) then ybin will
  use the \fBofpath\fR(8) utility to determine the OpenFirmware device
  path.
  this is set to a unix device node (ie \fI/dev/hda11\fR) then ybin will
  use the \fBofpath\fR(8) utility to determine the OpenFirmware device
  path.
-@@ -593,8 +593,8 @@
+@@ -594,8 +594,8 @@
  root=/dev/hda3
  partition=3
  timeout=20
  root=/dev/hda3
  partition=3
  timeout=20
@@ -100,7 +100,7 @@ diff -urN -x CVS man/yaboot.conf.5 man.deb/yaboot.conf.5
  default=Linux
 diff -urN -x CVS man/ybin.8 man.deb/ybin.8
 --- man/ybin.8 Thu May 24 04:33:16 2001
  default=Linux
 diff -urN -x CVS man/ybin.8 man.deb/ybin.8
 --- man/ybin.8 Thu May 24 04:33:16 2001
-+++ man.deb/ybin.8     Thu Oct 25 05:06:35 2001
++++ man.deb/ybin.8     Thu Oct 25 05:43:57 2001
 @@ -109,7 +109,7 @@
  .TP
  .BR \-i ,\  \-\-install\ \fIboot-file
 @@ -109,7 +109,7 @@
  .TP
  .BR \-i ,\  \-\-install\ \fIboot-file
index b1371bf8cfbb3bcafbbae397b7176004f3a5af82..eb99842437fbfdf4cc1c2b1921f24dc348f2d4a1 100644 (file)
@@ -251,8 +251,9 @@ Specifies a file containing a message that is displayed before the
 boot prompt.  You may specify either a plain pathname, in which case
 the default device and partition will be derived from the
 \fIdevice=\fR and \fIpartition=\fR lines in the global section of
 boot prompt.  You may specify either a plain pathname, in which case
 the default device and partition will be derived from the
 \fIdevice=\fR and \fIpartition=\fR lines in the global section of
-\fByaboot.conf\fR, or you can specify a full OpenFirmware device
-path.  Note: only the first 2000 bytes of this file will be read.
+\fByaboot.conf\fR, or you can specify a full OpenFirmware device path.
+The message file must be plain ASCII text with UNIX newlines.  Note:
+only the first 2000 bytes of this file will be read.
 .TP
 .BI "password=" password
 Protect booting by a password. The password is given in either
 .TP
 .BI "password=" password
 Protect booting by a password. The password is given in either
index b52b927b262fc35900d63b490af6e431bfd16975..6eabb427dc20863f73b0d1bfa1d38d9eba89a070 100644 (file)
@@ -297,7 +297,7 @@ void print_message_file(char *filename)
      if (!msg)
          goto done;
      else
      if (!msg)
          goto done;
      else
-         memset(msg, 0, sizeof(*msg));
+         memset(msg, 0, 2001);
 
      if (file.fs->read(&file, 2000, msg) <= 0)
          goto done;
 
      if (file.fs->read(&file, 2000, msg) <= 0)
          goto done;
@@ -309,10 +309,6 @@ done:
          file.fs->close(&file);
      if (msg)
          free(msg);
          file.fs->close(&file);
      if (msg)
          free(msg);
-     if (p)
-         free(p);
-     if (endp)
-         free(endp);
 }
 
 /* Currently, the config file must be at the root of the filesystem.
 }
 
 /* Currently, the config file must be at the root of the filesystem.
index 7a0ea803ec3e73078c4b1977abbb2fc54ba52f6a..3b5012fb0a08b5cf3eb64cf2c9ee5607da77d1e4 100755 (executable)
--- a/ybin/ybin
+++ b/ybin/ybin
@@ -28,7 +28,7 @@ if [ -n "$PATH_PREFIX" ] ; then
 fi
 PRG="${0##*/}"
 SIGINT="$PRG: Interrupt caught ... exiting"
 fi
 PRG="${0##*/}"
 SIGINT="$PRG: Interrupt caught ... exiting"
-VERSION=1.3.5pre2
+VERSION=1.3.5pre3
 DEBUG=0
 VERBOSE=0
 TMP="${TMPDIR:-/tmp}"
 DEBUG=0
 VERBOSE=0
 TMP="${TMPDIR:-/tmp}"