diff options
Diffstat (limited to 'cmd/ztest.c')
-rw-r--r-- | cmd/ztest.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/ztest.c b/cmd/ztest.c index 65d229f66..2dae34e97 100644 --- a/cmd/ztest.c +++ b/cmd/ztest.c @@ -6639,9 +6639,9 @@ ztest_get_zdb_bin(char *bin, int len) } VERIFY3P(realpath(getexecname(), bin), !=, NULL); - if (strstr(bin, "/ztest/")) { - strstr(bin, "/ztest/")[0] = '\0'; /* In-tree */ - strcat(bin, "/zdb/zdb"); + if (strstr(bin, ".libs/ztest")) { + strstr(bin, ".libs/ztest")[0] = '\0'; /* In-tree */ + strcat(bin, "zdb"); if (ztest_check_path(bin)) return; } |