show path to temporary pack file in argv of got-fetch-pack and got-index-pack
diff --git a/lib/fetch.c b/lib/fetch.c
index 19368f1..2fdd0e7 100644
--- a/lib/fetch.c
+++ b/lib/fetch.c
@@ -402,7 +402,7 @@ got_fetch_pack(struct got_object_id **pack_hash, struct got_pathlist_head *refs,
goto done;
} else if (fetchpid == 0){
got_privsep_exec_child(imsg_fetchfds,
- GOT_PATH_PROG_FETCH_PACK, ".");
+ GOT_PATH_PROG_FETCH_PACK, tmppackpath);
}
if (close(imsg_fetchfds[1]) != 0) {
@@ -490,7 +490,7 @@ got_fetch_pack(struct got_object_id **pack_hash, struct got_pathlist_head *refs,
goto done;
} else if (idxpid == 0)
got_privsep_exec_child(imsg_idxfds,
- GOT_PATH_PROG_INDEX_PACK, ".");
+ GOT_PATH_PROG_INDEX_PACK, tmppackpath);
if (close(imsg_idxfds[1]) != 0) {
err = got_error_from_errno("close");
goto done;