# HG changeset patch # User Prasad Joshi # Date 1376922698 -19800 # Node ID 734110b9882fc9dc610c46ea10adadaa53fbd75b # Parent dc75c925d8aa52cd8bd6da763490b2984b37a78f 1765 assert triggered in libzfs_import.c trying to import pool name beginning with a number Reviewed-by: Garrett D'Amore Reviewed-by: Matthew Ahrens Approved by: Robert Mustacchi diff -r dc75c925d8aa -r 734110b9882f usr/src/cmd/zpool/zpool_main.c --- 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 @@ -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; /*