Index: expand.c =================================================================== RCS file: /home/ncvs/src/usr.sbin/sup/lib/expand.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -r1.1.1.1 -r1.2 --- expand.c 1995/12/26 04:54:46 1.1.1.1 +++ expand.c 1996/09/24 08:08:06 1.2 @@ -61,7 +61,7 @@ */ #include #include -#include +#include #include #include #include @@ -159,7 +159,7 @@ static matchdir(pattern) char *pattern; { - register struct direct *dp; + register struct dirent *dp; DIR *dirp; dirp = opendir(path); Index: scan.c =================================================================== RCS file: /home/ncvs/src/usr.sbin/sup/lib/scan.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- scan.c 1995/12/26 05:10:59 1.3 +++ scan.c 1996/09/24 08:08:11 1.4 @@ -93,8 +93,8 @@ #include #include #include -#include #include +#include #include "sup.h" /************************* @@ -165,8 +165,6 @@ extern int trace; /* trace directories */ extern int newonly; /* new files only */ -extern long time(); - /************************************************* *** STATIC R O U T I N E S *** *************************************************/ @@ -703,7 +701,7 @@ char *name; int always; { - struct direct *dentry; + struct dirent *dentry; register DIR *dirp; char ename[STRINGLENGTH],newname[STRINGLENGTH],filename[STRINGLENGTH]; register char *p,*newp; Index: scm.c =================================================================== RCS file: /home/ncvs/src/usr.sbin/sup/lib/scm.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- scm.c 1995/12/26 05:02:49 1.2 +++ scm.c 1996/09/06 16:08:32 1.3 @@ -271,6 +280,8 @@ return (scmerr (errno, stderr, "Can't create socket for connections")); if (setsockopt (sock,SOL_SOCKET,SO_REUSEADDR,(char *)&one,sizeof(int)) < 0) (void) scmerr (errno, stderr, "Can't set SO_REUSEADDR socket option"); + if (setsockopt (sock,SOL_SOCKET,SO_KEEPALIVE,(char *)&one,sizeof(int)) < 0) + (void) scmerr (errno, stderr, "Can't set SO_KEEPALIVE socket option"); (void) bzero ((char *)&sin,sizeof(sin)); sin.sin_family = AF_INET; sin.sin_port = port; Index: supcmeat.c =================================================================== RCS file: /home/ncvs/src/usr.sbin/sup/sup/supcmeat.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- supcmeat.c 1995/12/26 05:03:05 1.2 +++ supcmeat.c 1996/10/30 23:58:07 1.3 @@ -325,7 +331,7 @@ /* If protocol is > 7 then try compression */ if (protver > 7) { cancompress = TRUE; - notify ("SUP Fileserver supports compression.\n"); + vnotify ("SUP Fileserver supports compression.\n"); } return (FALSE); } @@ -635,7 +641,7 @@ denyone (t) register TREE *t; { - vnotify ("SUP: Access denied to %s\n",t->Tname); + notify ("SUP: Access denied to %s\n",t->Tname); return (SCMOK); } Index: supcmisc.c =================================================================== RCS file: /home/ncvs/src/usr.sbin/sup/sup/supcmisc.c,v retrieving revision 1.1.1.1 retrieving revision 1.3 diff -u -r1.1.1.1 -r1.3 --- supcmisc.c 1995/12/26 04:54:46 1.1.1.1 +++ supcmisc.c 1996/10/31 00:03:14 1.3 @@ -277,7 +287,7 @@ #endif char buf[STRINGLENGTH]; char collrelname[STRINGLENGTH]; - long tloc; + time_t tloc; static FILE *noteF = NULL; /* mail program on pipe */ va_list ap; @@ -300,7 +310,7 @@ if (noteF == NULL) { if ((thisC->Cflags&CFMAIL) && thisC->Cnotify) { - (void) sprintf (buf,"mail -s \"SUP Upgrade of %s\" %s >/dev/null", + (void) sprintf (buf,"/usr/bin/mail -s \"SUP Upgrade of %s\" %s >/dev/null", collrelname,thisC->Cnotify); noteF = popen (buf,"w"); if (noteF == NULL) { @@ -310,7 +320,7 @@ } } else noteF = stdout; - tloc = time ((long *)NULL); + tloc = time ((time_t *)NULL); fprintf (noteF,"SUP Upgrade of %s at %s", collrelname,ctime (&tloc)); (void) fflush (noteF);