changeset 13963:f66b8d87c88d

3431 sharectl prints garbage when it failed Reviewed by: David H?ppner <0xffea@gmail.com> Reviewed by: Carlos Cardenas <cardenas12@gmail.com> Reviewed by: Dan McDonald <danmcd@nexenta.com> Approved by: Richard Lowe <richlowe@richlowe.net>
author Marcel Telka <Marcel.Telka@nexenta.com>
date Tue, 19 Feb 2013 15:34:47 -0500
parents d2de5400d39e
children 2430752e824f
files usr/src/lib/libshare/nfs/libshare_nfs.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/lib/libshare/nfs/libshare_nfs.c	Tue Feb 19 15:34:46 2013 -0500
+++ b/usr/src/lib/libshare/nfs/libshare_nfs.c	Tue Feb 19 15:34:47 2013 -0500
@@ -23,7 +23,7 @@
  * Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
  */
 /*
- * Copyright 2012 Nexenta Systems, Inc. All rights reserved.
+ * Copyright 2013 Nexenta Systems, Inc. All rights reserved.
  */
 
 /*
@@ -2790,7 +2790,7 @@
 				(void) fprintf(stderr,
 				    dgettext(TEXT_DOMAIN,
 				    "%s failed to restart: %s\n"),
-				    scf_strerror(scf_error()));
+				    service, scf_strerror(scf_error()));
 			} else {
 				/*
 				 * Check whether it has gone to "maintenance"