Return to BSD News archive
Received: by minnie.vk1xwt.ampr.org with NNTP
id AA6278 ; Thu, 07 Jan 93 16:10:30 EST
Path: sserve!manuel.anu.edu.au!munnari.oz.au!sgiblab!sgigate!olivea!uunet!enterpoop.mit.edu!bloom-picayune.mit.edu!athena.mit.edu!proven
From: proven@athena.mit.edu (Chris Provenzano)
Newsgroups: comp.unix.bsd
Subject: passwd bug
Message-ID: <1993Jan8.212712.10487@athena.mit.edu>
Date: 8 Jan 93 21:27:12 GMT
Sender: news@athena.mit.edu (News system)
Organization: Does anyone ever read this line anyway?
Lines: 24
Nntp-Posting-Host: e40-008-5.mit.edu
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