[LinuxBIOS] r363 - LinuxBIOSv3/util/lar

svn at openbios.org svn at openbios.org
Wed Jun 20 09:44:52 CEST 2007


Author: stepan
Date: 2007-06-20 09:44:52 +0200 (Wed, 20 Jun 2007)
New Revision: 363

Modified:
   LinuxBIOSv3/util/lar/lar.c
Log:
fix tar compatibility code in lar. If you just say
"lar -b foo" lar crashes without this. Thanks to Patrick Mauritz for
finding this. (trivial patch)

Signed-off-by: Stefan Reinauer <stepan at coresystems.de>
Acked-by: Stefan Reinauer <stepan at coresystems.de>



Modified: LinuxBIOSv3/util/lar/lar.c
===================================================================
--- LinuxBIOSv3/util/lar/lar.c	2007-06-19 09:52:41 UTC (rev 362)
+++ LinuxBIOSv3/util/lar/lar.c	2007-06-20 07:44:52 UTC (rev 363)
@@ -126,7 +126,7 @@
 	// Right now, you'd have to write lar x -v instead of
 	// lar xv... but the author of this software was too
 	// lazy to handle all option parameter twice.
-	if (larmode == NONE) {
+	if (larmode == NONE && optind < argc) {
 		if (strncmp(argv[optind], "x", 2) == 0)
 			larmode = EXTRACT;
 		else if (strncmp(argv[optind], "c", 2) == 0)





More information about the coreboot mailing list