summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2016-01-01 17:17:57 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2016-01-01 17:17:57 -0400
commitdf4a0d37c8c054e641fd6da0c42890f3485186da (patch)
treec4821c6868a44b8dc4752c6bfbf0dff7c3ff5b73
parenta59e85dee21a04bad386f4c07b2bf8cd21d6622f (diff)
analysis
-rw-r--r--doc/forum/Future_proofing___47___disaster_recovery_with_an_encrypted_special_remote/comment_7_b96077c98792997cdf344725374abb5c._comment27
1 files changed, 27 insertions, 0 deletions
diff --git a/doc/forum/Future_proofing___47___disaster_recovery_with_an_encrypted_special_remote/comment_7_b96077c98792997cdf344725374abb5c._comment b/doc/forum/Future_proofing___47___disaster_recovery_with_an_encrypted_special_remote/comment_7_b96077c98792997cdf344725374abb5c._comment
new file mode 100644
index 000000000..d43e11888
--- /dev/null
+++ b/doc/forum/Future_proofing___47___disaster_recovery_with_an_encrypted_special_remote/comment_7_b96077c98792997cdf344725374abb5c._comment
@@ -0,0 +1,27 @@
+[[!comment format=mdwn
+ username="joey"
+ subject="""comment 7"""
+ date="2016-01-01T20:42:34Z"
+ content="""
+I think it's great you're working on this, and [[future_proofing]] is
+probably a good place to put the result.
+
+I did some digging, and the cipher used for pubkey includes a trailing
+new line. The trailing newline seems to be lost in your script, and
+adding it makes it work.
+
+ cipher="$cipher
+ "
+
+I think the actual problem in the script is in this line:
+
+ cipher="$(decrypt_cipher "$cipher")"
+
+I verified that decrypt_cipher outputs the trailing newline, but
+in capturing its output, the shell chomps it. Can't remember ATM if there's
+a way to avoid that in shell scripting.
+
+Arguably git-annex should not be treating that newline as part of the
+cipher text, although it's probably too late to change that, certainly for
+existing repositories..
+"""]]