Index: Makefile =================================================================== RCS file: /cvsroot/tiger/tiger/c/Makefile,v retrieving revision 1.2 retrieving revision 1.4 diff -u -r1.2 -r1.4 --- Makefile 23 Aug 2002 13:11:08 -0000 1.2 +++ Makefile 24 Aug 2005 14:13:21 -0000 1.4 @@ -1,3 +1,4 @@ +# Generated automatically from Makefile.in by configure. # Makefile for tiger binaries # # @@ -21,16 +22,18 @@ # and they could not be compiled at first (they have # been added later) BINLIST=getpermit snefru md5 testsuid realpath -COPTS= -DNEEDGETWD +COPTS=-Wall +INSTALL=/usr/bin/install -c +CC=gcc all: ${BINLIST} install: all - cp ${BINLIST} ../bin/ + $(INSTALL) -m0755 ${BINLIST} ../bin/ % : %.c - gcc ${COPTS} -o $@ $< + $(CC) $(CFLAGS) ${COPTS} -o $@ $< clean: -rm -f ${BINLIST} Index: getpermit.c =================================================================== RCS file: /cvsroot/tiger/tiger/c/getpermit.c,v retrieving revision 1.1 retrieving revision 1.3 diff -u -r1.1 -r1.3 --- getpermit.c 14 Jun 2002 08:51:31 -0000 1.1 +++ getpermit.c 28 Jul 2005 15:06:16 -0000 1.3 @@ -1,8 +1,10 @@ #include +#include #include #include #include #include +#include /* tiger - A UN*X security checking system Copyright (C) 1993 Douglas Lee Schales, David K. Hess, David R. Safford @@ -101,6 +103,7 @@ for(argv++;*argv;argv++) showperms(*argv); } + return(0); } #define outmode(m, b) {if((m)&(b))putchar('1');else putchar('0');putchar(' ');} Index: md5.c =================================================================== RCS file: /cvsroot/tiger/tiger/c/md5.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- md5.c 14 Jun 2002 08:51:31 -0000 1.1 +++ md5.c 28 Jul 2005 15:06:16 -0000 1.2 @@ -593,7 +593,7 @@ else { MDInit (&context); - while (len = fread (buffer, 1, 1024, file)) + while ((len = fread (buffer, 1, 1024, file))) MDUpdate (&context, buffer, len); MDFinal (digest, &context); @@ -614,7 +614,7 @@ unsigned char buffer[16], digest[16]; MDInit (&context); - while (len = fread (buffer, 1, 16, stdin)) + while ((len = fread (buffer, 1, 16, stdin))) MDUpdate (&context, buffer, len); MDFinal (digest, &context); Index: realpath.c =================================================================== RCS file: /cvsroot/tiger/tiger/c/realpath.c,v retrieving revision 1.3 retrieving revision 1.5 diff -u -r1.3 -r1.5 --- realpath.c 23 Apr 2003 20:57:53 -0000 1.3 +++ realpath.c 24 Aug 2005 14:13:21 -0000 1.5 @@ -25,7 +25,9 @@ */ #include +#include #include +#include #include #include #include @@ -55,8 +57,11 @@ #endif #ifdef __STDC__ +#ifndef _UNISTD_H extern char *getwd(char * const); +extern char *getcwd(char * const, const size_t); extern int readlink(char * const, char * const, const size_t); +#endif extern char *my_realpath(const char *, char [], int); extern char *_realpath(char [], int); #else @@ -109,7 +114,11 @@ int linkcount = 0; if(path[0] != '/'){ +#if defined __STDC__ + getcwd(buffer, sizeof(buffer)); +#else getwd(buffer); +#endif prevslash = buffer+strlen(buffer); strcpy(prevslash,"/"); strcpy(prevslash+1,path); Index: snefru.c =================================================================== RCS file: /cvsroot/tiger/tiger/c/snefru.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- snefru.c 14 Jun 2002 08:51:31 -0000 1.1 +++ snefru.c 28 Jul 2005 15:06:16 -0000 1.2 @@ -185,6 +185,7 @@ */ #include +#include #define INPUT_BLOCK_SIZE 16 /* size in 32-bit words of an input block to * the hash routine */ /* @@ -1291,12 +1292,9 @@ { static int shiftTable[4] = {16, 8, 16, 24}; /* the array of data being hashed */ - word32 block[INPUT_BLOCK_SIZE]; word32 SBE; /* just a temporary */ int shift, leftShift; - int i; int index; - int next, last; int byteInWord; word32 *SBox0; word32 *SBox1; Index: testsuid.c =================================================================== RCS file: /cvsroot/tiger/tiger/c/testsuid.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- testsuid.c 14 Jun 2002 08:51:31 -0000 1.1 +++ testsuid.c 28 Jul 2005 15:06:16 -0000 1.2 @@ -17,6 +17,9 @@ c/testsuid.c */ +#include +#include +#include int main()