5.32. Util-linux-ng-2.13.1

Frank Ianella fjianella at gmail.com
Mon Jul 7 11:31:17 PDT 2008


Thanks for the link Robert but the site appears to be down. At any
rate, I found the below patch at:

http://kambing.ui.edu/gentoo-portage/sys-apps/util-linux/files/util-linux-2.13.1-no-a.out.patch

it applies and util-linux compiles fine with it.

Regards

-Frank
-------------------------------------------------------------------------------------
http://bugs.gentoo.org/221939
http://article.gmane.org/gmane.linux.utilities.util-linux-ng/1463

--- a/text-utils/more.c
+++ b/text-utils/more.c
@@ -54,7 +54,6 @@
 #include <sys/stat.h>
 #include <sys/file.h>
 #include <sys/wait.h>
-#include <a.out.h>
 #include "xstrncpy.h"
 #include "nls.h"
 #include "widechar.h"
@@ -546,9 +545,9 @@ magic(f, fs)

 	if (fread(twobytes, 2, 1, f) == 1) {
 		switch(twobytes[0] + (twobytes[1]<<8)) {
-		case OMAGIC:	/* 0407 */
-		case NMAGIC:	/* 0410 */
-		case ZMAGIC:	/* 0413 */
+		case 0407:	/* a.out obj */
+		case 0410:	/* a.out exec */
+		case 0413:	/* a.out demand exec */
 		case 0405:
 		case 0411:
 		case 0177545:
------------------------------------------------------------------------------------------



More information about the hlfs-dev mailing list