[PATCH] Shadow 4.0.8: bug in lib/encrypt.c
Jürg Billeter <[email protected]> Sat, 30 Apr 2005 21:03:49 +0200
| Newsgroups | gmane.linux.pld.shadow.general |
|---|---|
| Message-ID | <[email protected]> |
Restructuring lib/encrypt.c introduced a bug resulting in non-encrypted
and non-working passwords. The following trivial patch fixes the
problem.
Regards,
Jürg
diff -puNr shadow-4.0.8.orig/lib/encrypt.c shadow-4.0.8/lib/encrypt.c
--- shadow-4.0.8.orig/lib/encrypt.c 2005-04-06 04:59:22.000000000 +0200
+++ shadow-4.0.8/lib/encrypt.c 2005-04-30 20:47:44.000000000 +0200
@@ -40,7 +40,7 @@ char *pw_encrypt (const char *clear, con
static char cipher[128];
char *cp;
- crypt (clear, salt);
+ cp = crypt (clear, salt);
if (!cp) {
/*
* Single Unix Spec: crypt() may return a null pointer,
--
Jürg Billeter <[email protected]>