Sophie

Sophie

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

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

=== modified file 'src/utils/umount.ecryptfs.c'
--- src/utils/umount.ecryptfs.c	2009-04-21 18:08:22 +0000
+++ src/utils/umount.ecryptfs.c	2009-05-07 16:37:00 +0000
@@ -107,6 +107,8 @@
 	rc = get_mount_opt_value(mntent->mnt_opts, "ecryptfs_sig=", &fekek_sig);
 	if (!rc) {
 		fekek_fail = ecryptfs_remove_auth_tok_from_keyring(fekek_sig);
+		if (fekek_fail == ENOKEY)
+			fekek_fail = 0;
 		if (fekek_fail)
 			fprintf(stderr, "Failed to remove fekek with sig [%s] "
 				"from keyring: %s\n", fekek_sig,
@@ -118,6 +120,8 @@
 				 "ecryptfs_fnek_sig=", &fnek_sig)
 	    && strcmp(fekek_sig, fnek_sig)) {
 		fnek_fail = ecryptfs_remove_auth_tok_from_keyring(fnek_sig);
+		if (fnek_fail == ENOKEY)
+			fnek_fail = 0;
 		if (fnek_fail) {
 			fprintf(stderr, "Failed to remove fnek with sig [%s] "
 				"from keyring: %s\n", fnek_sig,