Commit Diff
--- lib/path.c +++ 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) {