Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > bd8f90a11c765f83522208177ba5f1f8 > files > 11

ecryptfs-utils-75-5.el5.src.rpm

=== modified file 'src/utils/ecryptfs_insert_wrapped_passphrase_into_keyring.c'
--- src/utils/ecryptfs_insert_wrapped_passphrase_into_keyring.c	2009-02-03 08:50:36 +0000
+++ src/utils/ecryptfs_insert_wrapped_passphrase_into_keyring.c	2009-05-14 09:17:03 +0000
@@ -73,13 +73,14 @@
 	} else
 		from_hex(salt, salt_hex, ECRYPTFS_SALT_SIZE);
 	if ((rc = ecryptfs_insert_wrapped_passphrase_into_keyring(
-		     auth_tok_sig_hex, file, wrapping_passphrase, salt))) {
+		     auth_tok_sig_hex, file, wrapping_passphrase, salt)) < 0) {
 		fprintf(stderr, "%s [%d]\n",
 			ECRYPTFS_ERROR_UNWRAP_AND_INSERT, rc);
                 fprintf(stderr, "%s\n", ECRYPTFS_INFO_CHECK_LOG);
 		rc = 1;
 		goto out;
-	}
+	} else
+		rc = 0;
 	auth_tok_sig_hex[ECRYPTFS_SIG_SIZE_HEX] = '\0';
 	printf("Inserted auth tok with sig [%s] into the user session "
 	       "keyring\n", auth_tok_sig_hex);