Commit 08680430768530f8c5623618e07a4cf068a9cc1f

Stefan Sperling 2019-05-13T13:59:50

mention where code for got_path_find_prog() came from

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/lib/path.c b/lib/path.c
index fa5d77b..a0cd833 100644
--- a/lib/path.c
+++ b/lib/path.c
@@ -380,6 +380,7 @@ got_path_strip_trailing_slashes(char *path)
 		path[x] = '\0';
 }
 
+/* based on findprog() from usr.sbin/which/which.c */
 const struct got_error *
 got_path_find_prog(char **filename, const char *prog)
 {