From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96076333621261.tru64-unix-managers.marc@archive.invalid> From: Aharon Schkolnik Date: Mon, 10 Jun 1996 06:25:15 +0000 To: tru64-unix-managers Subject: Crack v4.1 X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96076333621261 Hi. Has anyone built crack version 4.1 on dUnix ? When I apply the OSF patches I get: Hmm... The next patch looks like a new-style context diff to me... The text leading up to this was: -------------------------- |*** Sources/bytesex.c.dist Thu Mar 19 21:13:46 1992 |--- Sources/bytesex.c Tue Feb 23 17:26:25 1993 -------------------------- File to patch: Sources/bytesex.c Patching file Sources/bytesex.c using Plan A... Hunk #1 succeeded at 4. Hunk #2 failed at 24. 1 out of 2 hunks failed--saving rejects to Sources/bytesex.c.rej Sources/bytesex.c.rej contains: *************** *** 23,32 **** } if (!strncmp (p, "abcd", 4)) { ! puts ("-DBIG_ENDIAN"); } else if (!strncmp (p, "dcba", 4)) { ! puts ("-DLITTLE_ENDIAN"); } exit (0); } --- 24,56 ---- } if (!strncmp (p, "abcd", 4)) { ! endian = 1; } else if (!strncmp (p, "dcba", 4)) { ! endian = -1; } + if (endian == 0) { /* try again after shifting l back 32 */ + l >>= 32; + if (!strncmp (p, "abcd", 4)) + { + endian = 1; + } else if (!strncmp (p, "dcba", 4)) + { + endian = -1; + } + } + switch (endian) + { + case 0: + fprintf (stderr, "bytesex: Can't figure out endian of this system!\n"); + exit(1); + case 1: + puts ("-DBIG_ENDIAN"); + break; + case -1: + puts ("-DLITTLE_ENDIAN"); + } + + exit (0); } TIA. -- The day is short, and the work is great, | Aharon Schkolnik and the laborers are lazy, and the reward | Aharon@Matat.Health.Gov.IL is great, and the Master of the house is | impatient. - Ethics Of The Fathers Ch. 2 |