Skip to content
Permalink
Browse files

quiet string overflow warning

  • Loading branch information...
mattmacy committed Jul 10, 2019
1 parent 8a0077d commit 2c6a6ba0e3e43ac74cea701e7ebdd845046fff46
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/libzfs/libzfs_pool.c
@@ -2637,7 +2637,9 @@ zpool_find_vdev(zpool_handle_t *zhp, const char *ipath, boolean_t *avail_spare,
ret = vdev_to_nvlist_iter(nvroot, search, avail_spare, l2cache, log);
nvlist_free(search);
if (ret == NULL && firstpass) {
snprintf(buf, sizeof (buf), "/dev/%s", path);
if (strlen(path) > 512)
return (NULL);
sprintf(buf, "/dev/%s", path);
path = buf;
firstpass = 0;
goto retry;

0 comments on commit 2c6a6ba

Please sign in to comment.
You can’t perform that action at this time.