diff options
Diffstat (limited to 'lib/libzfs')
-rw-r--r-- | lib/libzfs/libzfs_pool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libzfs/libzfs_pool.c b/lib/libzfs/libzfs_pool.c index 112221674..68cc5f3ee 100644 --- a/lib/libzfs/libzfs_pool.c +++ b/lib/libzfs/libzfs_pool.c @@ -4159,7 +4159,7 @@ zpool_label_name(char *label_name, int label_size) int fd; fd = open("/dev/urandom", O_RDONLY); - if (fd > 0) { + if (fd >= 0) { if (read(fd, &id, sizeof (id)) != sizeof (id)) id = 0; |