home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / unix / bsd / 11048 < prev    next >
Encoding:
Text File  |  1993-01-08  |  1.1 KB  |  36 lines

  1. Newsgroups: comp.unix.bsd
  2. Path: sparky!uunet!enterpoop.mit.edu!bloom-picayune.mit.edu!athena.mit.edu!proven
  3. From: proven@athena.mit.edu (Chris Provenzano)
  4. Subject: passwd bug
  5. Message-ID: <1993Jan8.212712.10487@athena.mit.edu>
  6. Sender: news@athena.mit.edu (News system)
  7. Nntp-Posting-Host: e40-008-5.mit.edu
  8. Organization: Does anyone ever read this line anyway?
  9. Date: Fri, 8 Jan 1993 21:27:12 GMT
  10. Lines: 24
  11.  
  12.  
  13. Here's a fix for local_passwd.c for the passwd program for 
  14. people that have already applied the DES patch. The problem is
  15. users with a blank password field can't change their password.
  16.  
  17. ***************
  18. *** 91,97 ****
  19.   
  20.       (void)printf("Changing local password for %s.\n", pw->pw_name);
  21.   
  22. !     if (uid && pw->pw_passwd &&
  23.   #ifdef DES
  24.           strcmp(crypt(getpass("Old password:"), pw->pw_passwd),
  25.           pw->pw_passwd)) {
  26. --- 91,97 ----
  27.   
  28.       (void)printf("Changing local password for %s.\n", pw->pw_name);
  29.   
  30. !     if (uid && pw->pw_passwd[0] &&
  31.   #ifdef DES
  32.           strcmp(crypt(getpass("Old password:"), pw->pw_passwd),
  33.           pw->pw_passwd)) {
  34. --
  35.   Christopher Provenzano 
  36.