[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with login in 0.1m



Leif Johansson <leifj@matematik.su.se> writes:
> It works fine on my rh6.0 where shaddow pw is enabled but
> segfaults (in check_shaddow) on my rh5.2 where shaddow.h
> is present but shaddow passwords are not enabled. In fact
> the login built on rh5.2 works fine on rh6.0 but not
> on rh5.2... Any thoughts?

Try this.

/assar
Index: appl/login/shadow.c
===================================================================
RCS file: /afs/pdc.kth.se/src/packages/kth-krb/SourceRepository/heimdal/appl/login/shadow.c,v
retrieving revision 1.1
diff -u -w -u -w -r1.1 shadow.c
--- shadow.c	1999/08/04 16:57:48	1.1
+++ shadow.c	1999/08/07 09:12:01
@@ -72,6 +72,9 @@
 
   today = time(0)/(24L * 60 * 60);
   
+  if (sp == NULL)
+      return;
+
   if (sp->sp_expire > 0) {
         if (today >= sp->sp_expire) {
             printf("Your account has expired.\n");