[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
hurd/libshouldbeinlibc ChangeLog idvec-verify.c
From: |
Marcus Brinkmann |
Subject: |
hurd/libshouldbeinlibc ChangeLog idvec-verify.c |
Date: |
Wed, 06 Aug 2003 18:10:28 -0400 |
CVSROOT: /cvsroot/hurd
Module name: hurd
Branch:
Changes by: Marcus Brinkmann <address@hidden> 03/08/06 18:10:28
Modified files:
libshouldbeinlibc: ChangeLog idvec-verify.c
Log message:
I am reverting this change.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/hurd/hurd/libshouldbeinlibc/ChangeLog.diff?tr1=1.84&tr2=1.85&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/hurd/hurd/libshouldbeinlibc/idvec-verify.c.diff?tr1=1.10&tr2=1.11&r1=text&r2=text
Patches:
Index: hurd/libshouldbeinlibc/ChangeLog
diff -u hurd/libshouldbeinlibc/ChangeLog:1.84
hurd/libshouldbeinlibc/ChangeLog:1.85
--- hurd/libshouldbeinlibc/ChangeLog:1.84 Wed Aug 6 07:07:26 2003
+++ hurd/libshouldbeinlibc/ChangeLog Wed Aug 6 18:10:28 2003
@@ -1,8 +1,3 @@
-2003-08-06 Jeroen Dekkers <address@hidden>
-
- * idvec-verify.c: Remove #pragma weak crypt.
- (verify_passwd): Don't check if crypt exist.
-
2003-08-03 Marco Gerards <address@hidden>
* idvec-verify.c: Include <crypt.h>.
Index: hurd/libshouldbeinlibc/idvec-verify.c
diff -u hurd/libshouldbeinlibc/idvec-verify.c:1.10
hurd/libshouldbeinlibc/idvec-verify.c:1.11
--- hurd/libshouldbeinlibc/idvec-verify.c:1.10 Wed Aug 6 07:07:26 2003
+++ hurd/libshouldbeinlibc/idvec-verify.c Wed Aug 6 18:10:28 2003
@@ -1,6 +1,6 @@
/* Verify user passwords
- Copyright (C) 1996,97,98,99,2002,2003 Free Software Foundation, Inc.
+ Copyright (C) 1996,97,98,99,2002 Free Software Foundation, Inc.
Written by Miles Bader <address@hidden>
This program is free software; you can redistribute it and/or
@@ -30,6 +30,8 @@
#define SHADOW_PASSWORD_STRING "x" /* pw_passwd contents for shadow passwd */
+#pragma weak crypt
+
static error_t verify_id (); /* FWD */
/* Get a password from the user, returning it in malloced storage. */
@@ -68,8 +70,13 @@
if (sys_encrypted[0] == '\0')
return 0; /* No password. */
- /* Encrypt the password entered by the user (SYS_ENCRYPTED is the salt). */
- encrypted = crypt (password, sys_encrypted);
+ if (crypt)
+ /* Encrypt the password entered by the user (SYS_ENCRYPTED is the salt). */
+ encrypted = crypt (password, sys_encrypted);
+ else
+ /* No crypt on this system! Use plain-text passwords. */
+ encrypted = password;
+
if (! encrypted)
/* Crypt failed. */
return errno;