summaryrefslogtreecommitdiff
path: root/usr/src/cmd/fs.d/smbclnt/smbutil/view.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/cmd/fs.d/smbclnt/smbutil/view.c')
-rw-r--r--usr/src/cmd/fs.d/smbclnt/smbutil/view.c19
1 files changed, 2 insertions, 17 deletions
diff --git a/usr/src/cmd/fs.d/smbclnt/smbutil/view.c b/usr/src/cmd/fs.d/smbclnt/smbutil/view.c
index bf3397c166..18f0488ad3 100644
--- a/usr/src/cmd/fs.d/smbclnt/smbutil/view.c
+++ b/usr/src/cmd/fs.d/smbclnt/smbutil/view.c
@@ -34,7 +34,7 @@
/*
* Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
- * Copyright 2013 Nexenta Systems, Inc. All rights reserved.
+ * Copyright 2018 Nexenta Systems, Inc. All rights reserved.
*/
#include <sys/types.h>
@@ -51,8 +51,6 @@
#include <netsmb/smb_lib.h>
#include "common.h"
-static int use_rap;
-
void
view_usage(void)
{
@@ -86,15 +84,6 @@ cmd_view(int argc, char *argv[])
while ((opt = getopt(argc, argv, STDPARAM_OPT)) != EOF) {
if (opt == '?')
view_usage();
- /*
- * This is an undocumented option, just for testing.
- * Use the old LanMan Remote API Protocol (RAP) for
- * enumerating shares.
- */
- if (opt == 'B') {
- use_rap++;
- continue;
- }
error = smb_ctx_opt(ctx, opt, optarg);
if (error)
goto out;
@@ -137,12 +126,8 @@ again:
/*
* Have IPC$ tcon, now list shares.
- * Try RPC; if that fails, do RAP.
*/
- if (!use_rap)
- error = share_enum_rpc(ctx, ctx->ct_fullserver);
- if (error || use_rap)
- error = share_enum_rap(ctx);
+ error = share_enum_rpc(ctx, ctx->ct_fullserver);
out:
smb_ctx_free(ctx);