Skip to content
Browse files

Import of Matt Fredette's ndbootd-0.5 boot program for Sun2 machines.

  • Loading branch information...
1 parent 03ca89d commit 9788355c018bf260335eb7be68a2b183dfb0e070 fredette committed Jun 13, 2001
Showing with 24 additions and 6 deletions.
  1. +13 −0 usr.sbin/ndbootd/ChangeLog
  2. +1 −1 usr.sbin/ndbootd/README
  3. +1 −1 usr.sbin/ndbootd/config.h
  4. +9 −4 usr.sbin/ndbootd/ndbootd.c
View
13 usr.sbin/ndbootd/ChangeLog
@@ -1,5 +1,18 @@
+Wed Jun 13 21:19:11 2001 Matthew Fredette <fredette@alum.mit.edu>
+
+ * README: Bumped the version.
+ * configure.in: Bumped the version.
+ * ndbootd.c (main): Don't assume that a successful, but short, read
+ leaves a zero in errno. Instead, just check for the short
+ read by looking at the byte count that read returned.
+
+Wed May 23 02:37:40 2001 Matthew Fredette <fredette@alum.mit.edu>
+
+ * configure.in: Bumped the version.
+
Wed May 23 02:35:49 2001 Matthew Fredette <fredette@alum.mit.edu>
+ * Release 0.4 out.
* configure.in: Bumped the version.
* ndbootd.c: Changed many debugging printfs to compile quietly on the
alpha. Patch from Andrew Brown <atatat@atatdot.net>.
View
2 usr.sbin/ndbootd/README
@@ -1,4 +1,4 @@
-README for ndbootd-0.1
+README for ndbootd-0.5
Copyright (c) 2001 Matthew Fredette. All rights reserved.
View
2 usr.sbin/ndbootd/config.h
@@ -68,5 +68,5 @@
#define PACKAGE "ndbootd"
/* Version number of package */
-#define VERSION "0.4"
+#define VERSION "0.5"
View
13 usr.sbin/ndbootd/ndbootd.c
@@ -23,10 +23,15 @@
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*/
-/* <<Header: /data/home/fredette/project/THE-WEIGHT-CVS/ndbootd/ndbootd.c,v 1.8 2001/05/23 02:35:36 fredette Exp >> */
+/* <<Header: /data/home/fredette/project/THE-WEIGHT-CVS/ndbootd/ndbootd.c,v 1.9 2001/06/13 21:19:11 fredette Exp >> */
/*
* <<Log: ndbootd.c,v >>
+ * Revision 1.9 2001/06/13 21:19:11 fredette
+ * (main): Don't assume that a successful, but short, read
+ * leaves a zero in errno. Instead, just check for the short
+ * read by looking at the byte count that read returned.
+ *
* Revision 1.8 2001/05/23 02:35:36 fredette
* Changed many debugging printfs to compile quietly on the
* alpha. Patch from Andrew Brown <atatat@atatdot.net>.
@@ -70,7 +75,7 @@
*
*/
-static const char _ndbootd_c_rcsid[] = "<<Id: ndbootd.c,v 1.8 2001/05/23 02:35:36 fredette Exp >>";
+static const char _ndbootd_c_rcsid[] = "<<Id: ndbootd.c,v 1.9 2001/06/13 21:19:11 fredette Exp >>";
/* includes: */
#include "ndbootd.h"
@@ -864,7 +869,7 @@ where OPTIONS are:\n\
* first-stage boot program is a
* multiple of NDBOOT_BSIZE: */
if (byte_count_read != byte_count_wanted
- && errno == 0
+ && byte_count_read > 0
&& file_offset + byte_count_read == boot1_byte_count) {
byte_count_read = byte_count_wanted;
}
@@ -912,7 +917,7 @@ where OPTIONS are:\n\
* second-stage boot program is a
* multiple of NDBOOT_BSIZE: */
if (byte_count_read != byte_count_wanted
- && errno == 0
+ && byte_count_read > 0
&& file_offset + byte_count_read == boot2_byte_count) {
byte_count_read = byte_count_wanted;
}

0 comments on commit 9788355

Please sign in to comment.
Something went wrong with that request. Please try again.