From 39f4fa82bd5974ce4f768a4cb455e256f322f949 Mon Sep 17 00:00:00 2001 From: Frank Olbricht Date: Sat, 21 Sep 2024 12:14:08 +0200 Subject: [PATCH] Fix typos (#271) --- cmd/desync/tar.go | 2 +- mtreefs.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/desync/tar.go b/cmd/desync/tar.go index a8c7da9..79cb555 100644 --- a/cmd/desync/tar.go +++ b/cmd/desync/tar.go @@ -43,7 +43,7 @@ By default, input is read from local disk. Using --input-format=tar, the input can be a tar file or stream to STDIN with '-'. `, Example: ` desync tar documents.catar $HOME/Documents - desync tar -i -s /path/to/local pics.caibx $HOME/Pictures`, + desync tar -i -s /path/to/local pics.caidx $HOME/Pictures`, Args: cobra.ExactArgs(2), RunE: func(cmd *cobra.Command, args []string) error { return runTar(ctx, opt, args) diff --git a/mtreefs.go b/mtreefs.go index d272064..e09b638 100644 --- a/mtreefs.go +++ b/mtreefs.go @@ -52,7 +52,7 @@ func (fs MtreeFS) CreateFile(n NodeFile) error { if _, err := io.Copy(h, n.Data); err != nil { return err } - attr = append(attr, fmt.Sprintf("sha56digest=%x", h.Sum(nil))) + attr = append(attr, fmt.Sprintf("sha256digest=%x", h.Sum(nil))) default: return fmt.Errorf("unsupported mtree hash algorithm %d", Digest.Algorithm()) }