ishow when chdir failed for -r root option - 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 b32ea21f3ef521f3f1dd9d908e499df4c83b895a /scm/dedup/commit/b32ea21f3ef521f3f1dd9d908e499df4c83b895a.gph bitreich.org 70 1parent 115a93564d2c1cba04b4a2f0ace7dfbd52906bb4 /scm/dedup/commit/115a93564d2c1cba04b4a2f0ace7dfbd52906bb4.gph bitreich.org 70 hAuthor: Hiltjo Posthuma URL:mailto:hiltjo@codemadness.org bitreich.org 70 iDate: Wed, 21 Mar 2018 18:55:55 +0100 Err bitreich.org 70 i Err bitreich.org 70 ishow when chdir failed for -r root option Err bitreich.org 70 i Err bitreich.org 70 iDiffstat: Err bitreich.org 70 i M dedup.c | 3 ++- Err bitreich.org 70 i Err bitreich.org 70 i1 file changed, 2 insertions(+), 1 deletion(-) Err bitreich.org 70 i--- Err bitreich.org 70 1diff --git a/dedup.c b/dedup.c /scm/dedup/file/dedup.c.gph bitreich.org 70 i@@ -585,7 +585,8 @@ main(int argc, char *argv[]) Err bitreich.org 70 i Err bitreich.org 70 i if (root != NULL) { Err bitreich.org 70 i mkdir(root, 0700); Err bitreich.org 70 i- chdir(root); Err bitreich.org 70 i+ if (chdir(root) < 0) Err bitreich.org 70 i+ err(1, "chdir: %s", root); Err bitreich.org 70 i } Err bitreich.org 70 i Err bitreich.org 70 i init(); Err bitreich.org 70 .