1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-16 20:23:50 +03:00

net: Split out "net file"

This commit is contained in:
Kai Blin
2008-05-13 13:52:58 +02:00
parent 3ddd9c09e3
commit 84a116be9c
7 changed files with 66 additions and 29 deletions

View File

@@ -72,23 +72,6 @@ int net_help_share(struct net_context *c, int argc, const char **argv)
return -1;
}
int net_help_file(struct net_context *c, int argc, const char **argv)
{
d_printf("net [<method>] file [misc. options] [targets]\n"\
"\tlists all open files on file server\n\n");
d_printf("net [<method>] file USER <username> "\
"[misc. options] [targets]"\
"\n\tlists all files opened by username on file server\n\n");
d_printf("net [<method>] file CLOSE <id> [misc. options] [targets]\n"\
"\tcloses specified file on target server\n\n");
d_printf("net [rap] file INFO <id> [misc. options] [targets]\n"\
"\tdisplays information about the specified open file\n");
net_common_methods_usage(c, argc, argv);
net_common_flags_usage(c, argc, argv);
return -1;
}
int net_help_printer(struct net_context *c, int argc, const char **argv)
{
d_printf("net rpc printer LIST [printer] [misc. options] [targets]\n"\
@@ -170,7 +153,7 @@ int net_help(struct net_context *c, int argc, const char **argv)
{"RAP", net_rap_help},
{"RPC", net_rpc_help},
{"FILE", net_help_file},
{"FILE", net_file_usage},
{"SHARE", net_help_share},
{"SESSION", net_rap_session_usage},
{"SERVER", net_rap_server_usage},