Skip to content

Commit

Permalink
Fix another problem in zpool_find_import()..
Browse files Browse the repository at this point in the history
  • Loading branch information
wizeman committed May 9, 2008
1 parent d0813b1 commit a94a248
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/lib/libzfs/libzfs_import.c
Original file line number Diff line number Diff line change
Expand Up @@ -861,9 +861,7 @@ zpool_find_import(libzfs_handle_t *hdl, int argc, char **argv,
(void) close(fd);

if (config != NULL) {
/* use the non-raw path for the config */
(void) strlcpy(end, name, pathleft);
if (add_config(hdl, &pools, path, config) != 0)
if (add_config(hdl, &pools, path2, config) != 0)
goto error;
}
}
Expand Down

0 comments on commit a94a248

Please sign in to comment.