tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* Crack v4.1
@ 1996-06-10  6:25 Aharon Schkolnik
  0 siblings, 0 replies; only message in thread
From: Aharon Schkolnik @ 1996-06-10  6:25 UTC (permalink / raw)
  To: tru64-unix-managers


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     |

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1996-06-10  6:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-06-10  6:25 Crack v4.1 Aharon Schkolnik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox