diff options
-rw-r--r-- | source3/utils/net_rap.c | 8 |
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; } |