locktty -- lock terminal, patch 01 for version 1.1
Juergen Nickelsen
nickel at rondane.cs.tu-berlin.de
Thu May 9 22:28:46 AEST 1991
pefv700 at skelly.pe.utexas.edu (Christopher Phillips) pointed me to a
typo which may perhaps never be dangerous, but I want to correct it
anyway. This is the patch:
*** ../olock/locktty.c Thu May 9 14:07:34 1991
--- locktty.c Thu May 9 14:11:07 1991
***************
*** 1,5 ****
/* locktty - lock terminal
! * version 1.1
*
* compile with cc -o locktty locktty.c -lcurses -ltermcap
* Usage: locktty [ -p ]
--- 1,5 ----
/* locktty - lock terminal
! * version 1.1 patchlevel 1
*
* compile with cc -o locktty locktty.c -lcurses -ltermcap
* Usage: locktty [ -p ]
***************
*** 246,252 ****
srand(time(NULL)) ;
salt[0] = SALTC[rand() % strlen(SALTC)] ;
salt[1] = SALTC[rand() % strlen(SALTC)] ;
! salt[3] = '\0' ;
/* read and verify password */
fputs("Enter password: ", stdout) ;
--- 246,252 ----
srand(time(NULL)) ;
salt[0] = SALTC[rand() % strlen(SALTC)] ;
salt[1] = SALTC[rand() % strlen(SALTC)] ;
! salt[2] = '\0' ;
/* read and verify password */
fputs("Enter password: ", stdout) ;
Applying this patch results in locktty 1.1, patchlevel 1.
I hope there are no more such things.
Greetings, Juergen.
--
Juergen Nickelsen nickel at cs.tu-berlin.de
More information about the Alt.sources
mailing list