home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.bsd
- Path: sparky!uunet!enterpoop.mit.edu!bloom-picayune.mit.edu!athena.mit.edu!proven
- From: proven@athena.mit.edu (Chris Provenzano)
- Subject: passwd bug
- Message-ID: <1993Jan8.212712.10487@athena.mit.edu>
- Sender: news@athena.mit.edu (News system)
- Nntp-Posting-Host: e40-008-5.mit.edu
- Organization: Does anyone ever read this line anyway?
- Date: Fri, 8 Jan 1993 21:27:12 GMT
- Lines: 24
-
-
- Here's a fix for local_passwd.c for the passwd program for
- people that have already applied the DES patch. The problem is
- users with a blank password field can't change their password.
-
- ***************
- *** 91,97 ****
-
- (void)printf("Changing local password for %s.\n", pw->pw_name);
-
- ! if (uid && pw->pw_passwd &&
- #ifdef DES
- strcmp(crypt(getpass("Old password:"), pw->pw_passwd),
- pw->pw_passwd)) {
- --- 91,97 ----
-
- (void)printf("Changing local password for %s.\n", pw->pw_name);
-
- ! if (uid && pw->pw_passwd[0] &&
- #ifdef DES
- strcmp(crypt(getpass("Old password:"), pw->pw_passwd),
- pw->pw_passwd)) {
- --
- Christopher Provenzano
-