diff -Nur l0pht-watch.orig/Makefile l0pht-watch/Makefile --- l0pht-watch.orig/Makefile Mon Dec 28 12:27:35 1998 +++ l0pht-watch/Makefile Wed Aug 7 23:18:18 2019 @@ -25,7 +25,7 @@ bogus: @echo "Usage: make [options]" - @echo " can be: solaris26,solaris25,OpenBSD,generic" + @echo " can be: IRIX65,solaris26,solaris25,OpenBSD,generic" ### HARD TARGETS @@ -60,6 +60,9 @@ OpenBSD: make -e $(ALL) $(MFLAGS) \ XFLAGS='-DBSD -DREGEX -DREGCOMP_3C' CC="gcc $(CFLAGS)" STATIC=-static +IRIX65: + make -e $(ALL) $(MFLAGS) \ + XFLAGS='-DIRIX65 -DREGEX -DREGCOMP_3C' CC="gcc $(CFLAGS)" generic: make -e $(ALL) $(MFLAGS) \ diff -Nur l0pht-watch.orig/check_tmp.c l0pht-watch/check_tmp.c --- l0pht-watch.orig/check_tmp.c Thu Jan 7 23:01:57 1999 +++ l0pht-watch/check_tmp.c Wed Aug 7 23:16:54 2019 @@ -25,7 +25,7 @@ extern char *optarg; struct dirent *dp; DIR *dirp; - char *watchdir = "/tmp", *copyname, tmp1[MAXNAMLEN]; + char *watchdir = "/tmp", *copyname=NULL, tmp1[MAXNAMLEN]; char *destdir = watchdir, *ptr; #if defined (REGEXPR_3G) char *expbuf; @@ -130,7 +130,7 @@ /* steup the first element of the list */ while ((dp = readdir(dirp)) != NULL){ - if (!list) /* first time */ + if (!list) { /* first time */ if (copyflag){ if ( strncmp(dp->d_name, copyname, strlen(copyname)) == 0) { strncpy(tmp1, watchdir, MAXNAMLEN - 1); @@ -145,6 +145,7 @@ } } } +} else if (regcopyflag){ #if defined (REGEXPR_3G) if(advance(dp->d_name, expbuf)){ @@ -214,7 +215,7 @@ /* closedir(dirp); */ } } -#ifdef 0 +#ifdef DEBUG walklist(list); #endif list = prunelist(list); diff -Nur l0pht-watch.orig/list_utils.c l0pht-watch/list_utils.c --- l0pht-watch.orig/list_utils.c Thu Dec 24 00:00:44 1998 +++ l0pht-watch/list_utils.c Wed Aug 7 23:13:38 2019 @@ -168,7 +168,7 @@ -#ifdef 0 +#ifdef DEBUG printf("%-11s %-2d %-8s %-8s %-6ld %-10s %-10s\n", filemodes, (int)list->statbuf.st_nlink, username, groupname, list->statbuf.st_size, timehold, list->filename); diff -Nur l0pht-watch.orig/usage.c l0pht-watch/usage.c --- l0pht-watch.orig/usage.c Fri Jan 8 01:17:24 1999 +++ l0pht-watch/usage.c Wed Aug 7 23:21:24 2019 @@ -9,7 +9,7 @@ else proggie = progname; - printf("Usage: %s (ver 1.0) [-d [-c|C -D ]]\n", proggie); + printf("Usage: %s (ver 1.1) [-d [-c|C -D ]]\n", proggie); printf("Author: mudge@l0pht.com\n\n"); printf(" -d Directory to monitor (defaults to /tmp)\n"); printf(" -c File to make a copy of upon seeing in\n");