diff options
author | eschrock <none@none> | 2007-12-06 13:27:42 -0800 |
---|---|---|
committer | eschrock <none@none> | 2007-12-06 13:27:42 -0800 |
commit | 2c32020f848d8e5619a1f441a92f0ee4aca1b297 (patch) | |
tree | 9642f6e009fb375825a8e1c4421f34612014aa36 /usr/src/lib/libzfs/common/libzfs_pool.c | |
parent | 5b9eab5c5178bc05928d6b8f2a859e103da601d2 (diff) | |
download | illumos-joyent-2c32020f848d8e5619a1f441a92f0ee4aca1b297.tar.gz |
6627006 setting cachefile to default value confuses ZFS
6635464 Unable to put zfs cachefile in root directory
6637499 bitfield declaration macros would be useful
6637506 sunoem IPMI LED command structure should be private to libipmi
Diffstat (limited to 'usr/src/lib/libzfs/common/libzfs_pool.c')
-rw-r--r-- | usr/src/lib/libzfs/common/libzfs_pool.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr/src/lib/libzfs/common/libzfs_pool.c b/usr/src/lib/libzfs/common/libzfs_pool.c index 75c1ce7492..a3e92dfecc 100644 --- a/usr/src/lib/libzfs/common/libzfs_pool.c +++ b/usr/src/lib/libzfs/common/libzfs_pool.c @@ -418,8 +418,9 @@ zpool_validate_properties(libzfs_handle_t *hdl, const char *poolname, *slash = '\0'; - if (stat64(strval, &statbuf) != 0 || - !S_ISDIR(statbuf.st_mode)) { + if (strval[0] != '\0' && + (stat64(strval, &statbuf) != 0 || + !S_ISDIR(statbuf.st_mode))) { zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, "'%s' is not a valid directory"), strval); |