This is an official patch to the first release of deslogin-1.0. It updates the release to version 1.03 (patchlevel 1). This patch repairs two malloc bugs in the deslogin-1.0 release which only seemed to exhibit themselves on some machines. To apply this patch: cd deslogin-1.0 patch = 0) { ! gidset = (gid_t *) malloc(ngroups+1); if (gidset == (gid_t *) 0) { --- 1092,1094 ---- if (ngroups >= 0) { ! gidset = (gid_t *) malloc((ngroups+1) * sizeof (gid_t)); if (gidset == (gid_t *) 0) { *************** *** 1123,1124 **** --- 1123,1127 ---- res = setuid(uid); + if (debug > 1) { + log("%s: setuid: returned %ld\n", progName, (long) res); + } if (res != 0) { Prereq: 1.2 *** deslogin-1.0/gendeskd.c Sat Apr 9 14:24:21 1994 --- deslogin/gendeskd.c Thu May 12 00:37:43 1994 *************** *** 19,21 **** static char RCSid[] = ! " @(#) gendeskd.c RCS: $Revision: 1.2 $ $Date: 94/04/09 14:20:21 $\n"; --- 19,21 ---- static char RCSid[] = ! " @(#) gendeskd.c RCS: $Revision: 1.3 $ $Date: 94/05/12 00:37:01 $\n"; *************** *** 122,124 **** char keybuf[KEYBUFLEN], keybits[DES_BLOCKSIZE]; ! keyType key; --- 122,124 ---- char keybuf[KEYBUFLEN], keybits[DES_BLOCKSIZE]; ! keyType key = 0; *** /dev/null Thu May 12 13:57:46 1994 --- patchlevel.h Thu May 12 13:54:39 1994 *************** *** 0 **** --- 1,6 ---- + /* + * patchlevel1: version1.03 12-May-94 + * + * Copyright 1994 by Dave Barrett(barrett@asgard.cs.Colorado.EDU) + */ + #define PATCHLEVEL 1 *** deslogin-1.0/Makefile Sun Apr 10 02:56:14 1994 --- deslogin/Makefile Thu May 12 13:30:06 1994 *************** *** 21,22 **** --- 21,24 ---- # Dave Barrett (barrett@asgard.cs.Colorodo.EDU + # + # Makefile RCS: $Revision: 1.3 $ $Date: 94/05/12 13:20:04 # *************** *** 84,86 **** ! # DEC Alpha OSF/1 C++ compiler (don't enable -O; generates incorrect code) #CC = cxx -non_shared --- 86,89 ---- ! # DEC Alpha OSF/1 C++ compiler (OSF1 V2.0 240 alpha) ! # don't enable -O: generates incorrect code: progName output as junk #CC = cxx -non_shared *************** *** 103,105 **** # Gnu C compiler with lots of warnings (not useful except for debugging) - # -O doesn't work on alpha gendeskd core dumps. #CC = gcc -ansi -pedantic --- 106,107 ----