X-Git-Url: https://git.camperquake.de/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fztest%2Fztest.c;h=6acba5290e7e672cf47d51629a36137e94ecb44f;hb=ef3c1dea7024b07b4ace6115de9f22a99c1394d8;hp=f710534765a2bb290ab668fa87ef7f358804b943;hpb=0e8d1b2d8b5f8515aada6b43e68483bcd96db85e;p=zfs.git diff --git a/cmd/ztest/ztest.c b/cmd/ztest/ztest.c index f710534..6acba52 100644 --- a/cmd/ztest/ztest.c +++ b/cmd/ztest/ztest.c @@ -4910,8 +4910,10 @@ ztest_run_zdb(char *pool) zbuf = umem_alloc(1024, UMEM_NOFAIL); VERIFY(realpath(getexecname(), bin) != NULL); - if (strncmp(bin, "/usr/sbin/ztest", 14) == 0) { + if (strncmp(bin, "/usr/sbin/ztest", 15) == 0) { strcpy(bin, "/usr/sbin/zdb"); /* Installed */ + } else if (strncmp(bin, "/sbin/ztest", 11) == 0) { + strcpy(bin, "/sbin/zdb"); /* Installed */ } else { strstr(bin, "/ztest/")[0] = '\0'; /* In-tree */ strcat(bin, "/zdb/zdb");