Enlightenment CVS committal Author : sebastid Project : e17 Module : apps/entrance
Dir : e17/apps/entrance/src/client Modified Files: entrance_login.c Log Message: Cleanup the !PAM case. =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/entrance/src/client/entrance_login.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -3 -r1.3 -r1.4 --- entrance_login.c 28 May 2005 09:31:14 -0000 1.3 +++ entrance_login.c 16 Aug 2005 03:55:42 -0000 1.4 @@ -42,7 +42,11 @@ openlog("entrance_login", LOG_PID, LOG_DAEMON); - if ((argc != 2) && (argc != 4)) +#ifdef HAVE_PAM + if (argc != 4) +#else + if (argc != 2) +#endif { syslog(LOG_CRIT, "Wrong number of arguments: %d!", argc); return 0; @@ -55,13 +59,10 @@ } pid = atoi(argv[1]); - if (argc == 4) - { - user = argv[2]; - display = argv[3]; - } +#if HAVE_PAM + user = argv[2]; + display = argv[3]; -#ifdef HAVE_PAM if (user && display) { e = entrance_auth_new(); ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs