SMOLNET PORTAL home about changes
iCheck a key is provided when snapshots are encrypted - dedup - deduplicating backup program	Err	bitreich.org	70
hgit clone git://bitreich.org/dedup/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/dedup/	URL:git://bitreich.org/dedup/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/dedup/	bitreich.org	70
1Log	/scm/dedup/log.gph	bitreich.org	70
1Files	/scm/dedup/files.gph	bitreich.org	70
1Refs	/scm/dedup/refs.gph	bitreich.org	70
1Tags	/scm/dedup/tag	bitreich.org	70
1README	/scm/dedup/file/README.gph	bitreich.org	70
1LICENSE	/scm/dedup/file/LICENSE.gph	bitreich.org	70
i---	Err	bitreich.org	70
1commit 86e037e9f1ee5d564daa67fae8f4cc6fd8bc19d6	/scm/dedup/commit/86e037e9f1ee5d564daa67fae8f4cc6fd8bc19d6.gph	bitreich.org	70
1parent ba06cd1fc2b7c9c50147f5af8898e524cfb741b6	/scm/dedup/commit/ba06cd1fc2b7c9c50147f5af8898e524cfb741b6.gph	bitreich.org	70
hAuthor: sin <sin@2f30.org>	URL:mailto:sin@2f30.org	bitreich.org	70
iDate:   Fri, 17 May 2019 14:30:43 +0300	Err	bitreich.org	70
i	Err	bitreich.org	70
iCheck a key is provided when snapshots are encrypted	Err	bitreich.org	70
i	Err	bitreich.org	70
iDiffstat:	Err	bitreich.org	70
i  M snap.c                              |       6 ++++++	Err	bitreich.org	70
i	Err	bitreich.org	70
i1 file changed, 6 insertions(+), 0 deletions(-)	Err	bitreich.org	70
i---	Err	bitreich.org	70
1diff --git a/snap.c b/snap.c	/scm/dedup/file/snap.c.gph	bitreich.org	70
i@@ -283,6 +283,12 @@ sopen(char *path, int flags, int mode, struct sctx **sctx)	Err	bitreich.org	70
i                 return -1;	Err	bitreich.org	70
i         }	Err	bitreich.org	70
i 	Err	bitreich.org	70
i+        /* Ensure a key has been provided if caller requested encryption */	Err	bitreich.org	70
i+        if (type != SNONETYPE && !param.keyloaded) {	Err	bitreich.org	70
i+                seterr("expected encryption key");	Err	bitreich.org	70
i+                return -1;	Err	bitreich.org	70
i+        }	Err	bitreich.org	70
i+	Err	bitreich.org	70
i         if (sodium_init() < 0) {	Err	bitreich.org	70
i                 seterr("sodium_init: failed");	Err	bitreich.org	70
i                 return -1;	Err	bitreich.org	70
.
Response: text/plain
Original URLgopher://bitreich.org/0/scm/dedup/commit/86e037e9f1ee5d56...
Content-Typetext/plain; charset=utf-8