[Toybox] [PATCH 2/2] Missing 's' was causing a segfault due to file not found

Moritz C. Weber mo.c.weber at gmail.com
Thu Jan 19 16:45:07 PST 2023


---
 toys/pending/git.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/toys/pending/git.c b/toys/pending/git.c
index 505bcee5..82421483 100644
--- a/toys/pending/git.c
+++ b/toys/pending/git.c
@@ -529,7 +529,7 @@ static void gitfetch(void)
       0});
   //char h[] = "8cf1722f0fde510ea81d13b31bde1e48917a0306";
   //TODO: Replace static testing hash and uncomment the following line if rare delta resolve /?heap overflow? bug was found
-  FILE *fpr = fopen(".git/ref/temp.refs", "r");
+  FILE *fpr = fopen(".git/refs/temp.refs", "r");
   char *h;
   size_t l = 0;
 
-- 
2.20.1



More information about the Toybox mailing list