Enlightenment CVS committal

Author  : xcomputerman
Project : e17
Module  : apps/entrance

Dir     : e17/apps/entrance/src/client


Modified Files:
        entrance_auth.c 


Log Message:
Attempt to fix broken compile on systems without shadow.


===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/entrance/src/client/entrance_auth.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- entrance_auth.c     11 Sep 2003 14:40:40 -0000      1.4
+++ entrance_auth.c     14 Oct 2003 17:40:11 -0000      1.5
@@ -12,7 +12,7 @@
    return (result);
 }
 
-#ifdef HAVE_PAM
+#if HAVE_PAM
 /* PAM Conversation function */
 static int
 _entrance_auth_pam_conv(int num_msg, const struct pam_message **msg,
@@ -78,7 +78,7 @@
 void
 entrance_auth_free(Entrance_Auth e)
 {
-#ifdef HAVE_PAM
+#if HAVE_PAM
    if (e->pam.handle)
    {
       pam_close_session(e->pam.handle, 0);
@@ -93,7 +93,7 @@
    free(e);
 }
 
-#ifdef HAVE_PAM
+#if HAVE_PAM
 /*
  * _entrance_auth_pam_initialize - initialize PAM session, structures etc.
  * This function will call pam_start() and set the conversation
@@ -158,7 +158,7 @@
 }
 #endif
 
-#ifdef HAVE_PAM
+#if HAVE_PAM
 /*
  * entrance_auth_cmp_pam - attempt to auth the user
  * @e The Entrance_Auth struct to attempt to validate on the system
@@ -214,6 +214,7 @@
 {
    char *encrypted;
    char *correct = e->pw->pw_passwd;
+#if HAVE_SHADOW
    struct spwd *sp;
    
    if (cfg->auth == ENTRANCE_USE_SHADOW)
@@ -224,7 +225,7 @@
          if (sp)
          correct = sp->sp_pwdp;
    }
-
+#endif
    if (!correct || !correct[0])
       return AUTH_SUCCESS;
     




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to