home *** CD-ROM | disk | FTP | other *** search
- From: nickel@rondane.cs.tu-berlin.de (Juergen Nickelsen)
- Newsgroups: alt.sources
- Subject: locktty -- lock terminal, patch 01 for version 1.1
- Message-ID: <NICKEL.91May9142846@rondane.cs.tu-berlin.de>
- Date: 9 May 91 12:28:46 GMT
-
- pefv700@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@cs.tu-berlin.de
-