Blame ecryptfs-utils-83-fixsalt.patch

Michal Hlavinka d69e53
diff -up ecryptfs-utils-83/src/key_mod/ecryptfs_key_mod_passphrase.c.fixsalt ecryptfs-utils-83/src/key_mod/ecryptfs_key_mod_passphrase.c
Michal Hlavinka d69e53
--- ecryptfs-utils-83/src/key_mod/ecryptfs_key_mod_passphrase.c.fixsalt	2009-10-20 20:49:55.000000000 +0200
Michal Hlavinka d69e53
+++ ecryptfs-utils-83/src/key_mod/ecryptfs_key_mod_passphrase.c	2010-04-14 16:18:43.273398808 +0200
Michal Hlavinka d69e53
@@ -105,7 +105,7 @@ static int tf_pass_file(struct ecryptfs_
Michal Hlavinka d69e53
 out:
Michal Hlavinka d69e53
 	free(node->val);
Michal Hlavinka d69e53
 	node->val = NULL;
Michal Hlavinka d69e53
-	return rc;
Michal Hlavinka d69e53
+	return rc ? rc : DEFAULT_TOK;
Michal Hlavinka d69e53
 }
Michal Hlavinka d69e53
 
Michal Hlavinka d69e53
 static int tf_salt(struct ecryptfs_ctx *ctx, struct param_node *node,