summaryrefslogtreecommitdiff
path: root/usr/src/cmd/dfs.cmds
diff options
context:
space:
mode:
authorDoug McCallum <Doug.McCallum@Sun.COM>2008-09-18 16:58:59 -0600
committerDoug McCallum <Doug.McCallum@Sun.COM>2008-09-18 16:58:59 -0600
commitef18c5ec8528dd90b6150e9cd33c26cf8894be02 (patch)
tree2d39f56ba3775dcae74f4e0bc6c23bd5904c6f85 /usr/src/cmd/dfs.cmds
parent92a0208178405fef708b0283ffcaa02fbc3468ff (diff)
downloadillumos-gate-ef18c5ec8528dd90b6150e9cd33c26cf8894be02.tar.gz
6732252 sharemgr dumps core if trying to rename a resource to nothing
Diffstat (limited to 'usr/src/cmd/dfs.cmds')
-rw-r--r--usr/src/cmd/dfs.cmds/sharemgr/commands.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr/src/cmd/dfs.cmds/sharemgr/commands.c b/usr/src/cmd/dfs.cmds/sharemgr/commands.c
index 60a092bd35..78e1b37cc6 100644
--- a/usr/src/cmd/dfs.cmds/sharemgr/commands.c
+++ b/usr/src/cmd/dfs.cmds/sharemgr/commands.c
@@ -24,8 +24,6 @@
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
@@ -3391,6 +3389,7 @@ sa_set_share(sa_handle_t handle, int flags, int argc, char *argv[])
ret = SA_INVALID_NAME;
(void) printf(gettext("Invalid resource name: "
"%s\n"), newname);
+ newname = NULL;
} else {
newrsrc = conv_to_utf8(newname);
}