summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorKarolin Seeger <ks@sernet.de>2007-10-22 13:10:55 +0200
committerVolker Lendecke <vl@sernet.de>2007-11-19 16:42:27 +0100
commit551f9e7a6ccfefa48674f3b6a857485c60dfc2eb (patch)
tree1d3a88eb19b1eb37365dcc86df51f6e176d1d9b7 /source3/utils
parent815aec8241b2da93a193eb8d3b3adbfdef5c1d90 (diff)
downloadsamba-551f9e7a6ccfefa48674f3b6a857485c60dfc2eb.tar.gz
samba-551f9e7a6ccfefa48674f3b6a857485c60dfc2eb.tar.bz2
samba-551f9e7a6ccfefa48674f3b6a857485c60dfc2eb.zip
Add error message to net rap file and net rap file user
(This used to be commit 759d6bcbec07434667ab8dd9a09f37fbe243c208)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/net_rap.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/utils/net_rap.c b/source3/utils/net_rap.c
index b4de374885..3e53eb99a8 100644
--- a/source3/utils/net_rap.c
+++ b/source3/utils/net_rap.c
@@ -123,6 +123,10 @@ static int rap_file_user(int argc, const char **argv)
"\nFileId Opened by Perms Locks Path \n"
"------ --------- ----- ----- ---- \n");
ret = cli_NetFileEnum(cli, argv[0], NULL, file_fn);
+
+ if (ret == -1)
+ d_printf("\nOperation not supported by server!\n\n");
+
cli_shutdown(cli);
return ret;
}
@@ -149,6 +153,10 @@ int net_rap_file(int argc, const char **argv)
"\nFileId Opened by Perms Locks Path \n"
"------ --------- ----- ----- ---- \n");
ret = cli_NetFileEnum(cli, NULL, NULL, file_fn);
+
+ if (ret == -1)
+ d_printf("\nOperation not supported by server!\n\n");
+
cli_shutdown(cli);
return ret;
}