[PATCH] pam_ecryptfs: fix broken exit condition

This very simple patch fixes a broken exit condition.  It is causing
screensavers to fail to unlock when pam_ecryptfs is in the PAM stack.

-- 
:-Dustin
diff -upr ecryptfs-utils-53.orig/src/pam_ecryptfs/pam_ecryptfs.c ecryptfs-utils-53/src/pam_ecryptfs/pam_ecryptfs.c
--- ecryptfs-utils-53.orig/src/pam_ecryptfs/pam_ecryptfs.c	2008-07-21 16:56:18.000000000 -0500
+++ ecryptfs-utils-53/src/pam_ecryptfs/pam_ecryptfs.c	2008-08-11 13:47:52.677954407 -0500
@@ -157,7 +157,7 @@ PAM_EXTERN int pam_sm_authenticate(pam_h
 			syslog(LOG_WARNING, "There is already a key in the "
 			       "user session keyring for the given "
 			       "passphrase.\n");
-			rc = 0;
+			goto out_child;
 		}
 		if (rc) {
 			syslog(LOG_ERR, "Error adding passphrase key token to "
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
eCryptfs-devel mailing list
eCryptfs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecryptfs-devel

Reply via email to