From: Pekka Vuorela Date: Mon, 21 Jan 2019 14:45:04 +0000 (+0200) Subject: Fix repo2solv to work with Busybox find tool X-Git-Tag: 0.7.3~4^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=97f14774892fbc183c6b402f02a387e19ace933d;p=thirdparty%2Flibsolv.git Fix repo2solv to work with Busybox find tool Busybox find got quite confused by "." as arg0. Added a new instance of dot as first real parameter as I could assume that being the original intention. --- diff --git a/tools/repo2solv.c b/tools/repo2solv.c index 68e92f33..776b94f7 100644 --- a/tools/repo2solv.c +++ b/tools/repo2solv.c @@ -169,9 +169,9 @@ read_plaindir_repo(Repo *repo, const char *dir) close(fds[1]); } if (recursive) - execl("/usr/bin/find", ".", "-name", ".", "-o", "-name", ".*", "-prune", "-o", "-name", "*.delta.rpm", "-o", "-name", "*.patch.rpm", "-o", "-name", "*.rpm", "-a", "-type", "f", "-print0", (char *)0); + execl("/usr/bin/find", "/usr/bin/find", ".", "-name", ".", "-o", "-name", ".*", "-prune", "-o", "-name", "*.delta.rpm", "-o", "-name", "*.patch.rpm", "-o", "-name", "*.rpm", "-a", "-type", "f", "-print0", (char *)0); else - execl("/usr/bin/find", ".", "-maxdepth", "1", "-name", ".", "-o", "-name", ".*", "-prune", "-o", "-name", "*.delta.rpm", "-o", "-name", "*.patch.rpm", "-o", "-name", "*.rpm", "-a", "-type", "f", "-print0", (char *)0); + execl("/usr/bin/find", "/usr/bin/find", ".", "-maxdepth", "1", "-name", ".", "-o", "-name", ".*", "-prune", "-o", "-name", "*.delta.rpm", "-o", "-name", "*.patch.rpm", "-o", "-name", "*.rpm", "-a", "-type", "f", "-print0", (char *)0); perror("/usr/bin/find"); _exit(1); }