zfs/lib
наб dfc25ea91c libzutil: zfs_isnumber(): return false if input empty
zpool list, which is the only user, would mistakenly try to parse the
empty string as the interval in this case:

  $ zpool list "a"
  cannot open 'a': no such pool
  $ zpool list ""
  interval cannot be zero
  usage: <usage string follows>
which is now symmetric with zpool get:
  $ zpool list ""
  cannot open '': name must begin with a letter

Avoid breaking the  "interval cannot be zero" string.
There simply isn't a need for this, and it's user-facing.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #11841 
Closes #11843
2021-06-23 13:22:14 -07:00
..
libavl Fixes for make dist 2020-06-26 14:20:02 -07:00
libefi pool may become suspended during device expansion 2020-09-18 12:38:30 -07:00
libicp Clean up lib dependencies 2020-07-10 14:26:00 -07:00
libnvpair Include the ABI with dist tarball 2020-11-22 10:01:47 -08:00
libshare zpool command complains about /etc/exports.d 2020-10-01 12:20:06 -07:00
libspl FreeBSD: fix HEAD build, conditionally remove FDSYNC defines 2021-01-24 16:05:56 -08:00
libtpool Clean up lib dependencies 2020-07-10 14:26:00 -07:00
libunicode Fixes for make dist 2020-06-26 14:20:02 -07:00
libuutil Fix a resource leak in uu_avl_pool_destroy 2021-01-28 11:39:00 -08:00
libzfs Don't bomb out when using keylocation=file:// 2021-03-05 12:59:07 -08:00
libzfs_core Include the ABI with dist tarball 2020-11-22 10:01:47 -08:00
libzfsbootenv libzfsbootenv: do not depend on libnvpair 2020-11-24 10:27:14 -08:00
libzpool libzpool: set_global_var: fix endianness handling (fixes zdb -o ) 2021-03-05 12:51:48 -08:00
libzstd Avoid symbol collision with in-kernel zstdlib 2020-08-24 12:20:41 -07:00
libzutil libzutil: zfs_isnumber(): return false if input empty 2021-06-23 13:22:14 -07:00
Makefile.am Library ABI tracking with abigail 2020-11-17 20:29:02 +00:00