mirror_zfs/lib
наб 61b50107a5
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-04-06 12:25:53 -07:00
..
libavl cppcheck: integrete cppcheck 2021-01-26 16:12:26 -08:00
libefi cppcheck: integrete cppcheck 2021-01-26 16:12:26 -08:00
libicp cppcheck: integrete cppcheck 2021-01-26 16:12:26 -08:00
libnvpair cppcheck: integrete cppcheck 2021-01-26 16:12:26 -08:00
libshare cppcheck: integrete cppcheck 2021-01-26 16:12:26 -08:00
libspl Support running FreeBSD buildworld on Arm-based macOS hosts 2021-03-26 10:45:12 -07:00
libtpool cppcheck: integrete cppcheck 2021-01-26 16:12:26 -08:00
libunicode cppcheck: integrete cppcheck 2021-01-26 16:12:26 -08:00
libuutil Fix a resource leak in uu_avl_pool_destroy 2021-01-26 19:39:28 -08:00
libzfs Fix various typos 2021-04-02 18:52:15 -07:00
libzfs_core cppcheck: integrete cppcheck 2021-01-26 16:12:26 -08:00
libzfsbootenv Fix various typos 2021-04-02 18:52:15 -07:00
libzpool Bump libzfs.so and libzpool.so versions 2021-04-01 16:53:05 -07:00
libzstd cppcheck: integrete cppcheck 2021-01-26 16:12:26 -08:00
libzutil libzutil: zfs_isnumber(): return false if input empty 2021-04-06 12:25:53 -07:00
Makefile.am cppcheck: integrete cppcheck 2021-01-26 16:12:26 -08:00