mirror of
https://github.com/opnsense/src.git
synced 2026-04-29 10:11:09 -04:00
Fix ztest when it is executed by just 'ztest' and not by full path
'/usr/bin/ztest'.
This commit is contained in:
parent
1cc1967893
commit
adea29ab75
1 changed files with 1 additions and 2 deletions
|
|
@ -3362,8 +3362,7 @@ ztest_verify_blocks(char *pool)
|
|||
int isalen;
|
||||
FILE *fp;
|
||||
|
||||
if (realpath(progname, zdb) == NULL)
|
||||
assert(!"realpath() failed");
|
||||
strlcpy(zdb, "/usr/bin/ztest", sizeof(zdb));
|
||||
|
||||
/* zdb lives in /usr/sbin, while ztest lives in /usr/bin */
|
||||
bin = strstr(zdb, "/usr/bin/");
|
||||
|
|
|
|||
Loading…
Reference in a new issue