Mercurial > illumos > illumos-gate
changeset 14160:734110b9882f
1765 assert triggered in libzfs_import.c trying to import pool name beginning with a number
Reviewed-by: Garrett D'Amore <garrett@damore.org>
Reviewed-by: Matthew Ahrens <mahrens@delphix.com>
Approved by: Robert Mustacchi <rm@joyent.com>
author | Prasad Joshi <pjoshi@stec-inc.com> |
---|---|
date | Mon, 19 Aug 2013 20:01:38 +0530 |
parents | dc75c925d8aa |
children | 374f51e72d3f |
files | usr/src/cmd/zpool/zpool_main.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/usr/src/cmd/zpool/zpool_main.c Thu Aug 22 19:03:54 2013 +0000 +++ b/usr/src/cmd/zpool/zpool_main.c Mon Aug 19 20:01:38 2013 +0530 @@ -24,6 +24,7 @@ * Copyright 2011 Nexenta Systems, Inc. All rights reserved. * Copyright (c) 2012 by Delphix. All rights reserved. * Copyright (c) 2012 by Frederik Wessels. All rights reserved. + * Copyright (c) 2013 by Prasad Joshi (sTec). All rights reserved. */ #include <assert.h> @@ -1988,8 +1989,10 @@ errno = 0; searchguid = strtoull(argv[0], &endptr, 10); - if (errno != 0 || *endptr != '\0') + if (errno != 0 || *endptr != '\0') { searchname = argv[0]; + searchguid = 0; + } found_config = NULL; /*