From 398ee49bda81e84c0f1e530bac02fb0fdc869afa Mon Sep 17 00:00:00 2001 From: David Disseldorp Date: Wed, 22 May 2013 12:17:23 +0200 Subject: s3/smbclient: fix incorrect command tab completions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit smbclient commands can offer tab-completion for local and remote paths. This behaviour is specified for the first two arguments using the compl_args entry in the commands struct. This change fixes a number of incorrectly specified compl_args values. Signed-off-by: David Disseldorp Reviewed-by: Aurélien Aptel Reviewed-by: Andreas Schneider Autobuild-User(master): David Disseldorp Autobuild-Date(master): Mon Jun 24 19:32:54 CEST 2013 on sn-devel-104 --- source3/client/client.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'source3/client') diff --git a/source3/client/client.c b/source3/client/client.c index e21d867c55..d03d1a40ae 100644 --- a/source3/client/client.c +++ b/source3/client/client.c @@ -4606,18 +4606,18 @@ static struct { {"cancel",cmd_cancel," cancel a print queue entry",{COMPL_NONE,COMPL_NONE}}, {"case_sensitive",cmd_setcase,"toggle the case sensitive flag to server",{COMPL_NONE,COMPL_NONE}}, {"cd",cmd_cd,"[directory] change/report the remote directory",{COMPL_REMOTE,COMPL_NONE}}, - {"chmod",cmd_chmod," chmod a file using UNIX permission",{COMPL_REMOTE,COMPL_REMOTE}}, - {"chown",cmd_chown," chown a file using UNIX uids and gids",{COMPL_REMOTE,COMPL_REMOTE}}, - {"close",cmd_close," close a file given a fid",{COMPL_REMOTE,COMPL_REMOTE}}, + {"chmod",cmd_chmod," chmod a file using UNIX permission",{COMPL_REMOTE,COMPL_NONE}}, + {"chown",cmd_chown," chown a file using UNIX uids and gids",{COMPL_REMOTE,COMPL_NONE}}, + {"close",cmd_close," close a file given a fid",{COMPL_REMOTE,COMPL_NONE}}, {"del",cmd_del," delete all matching files",{COMPL_REMOTE,COMPL_NONE}}, {"dir",cmd_dir," list the contents of the current directory",{COMPL_REMOTE,COMPL_NONE}}, {"du",cmd_du," computes the total size of the current directory",{COMPL_REMOTE,COMPL_NONE}}, {"echo",cmd_echo,"ping the server",{COMPL_NONE,COMPL_NONE}}, {"exit",cmd_quit,"logoff the server",{COMPL_NONE,COMPL_NONE}}, {"get",cmd_get," [local name] get a file",{COMPL_REMOTE,COMPL_LOCAL}}, - {"getfacl",cmd_getfacl," get the POSIX ACL on a file (UNIX extensions only)",{COMPL_REMOTE,COMPL_LOCAL}}, + {"getfacl",cmd_getfacl," get the POSIX ACL on a file (UNIX extensions only)",{COMPL_REMOTE,COMPL_NONE}}, {"geteas", cmd_geteas, " get the EA list of a file", - {COMPL_REMOTE, COMPL_LOCAL}}, + {COMPL_REMOTE, COMPL_NONE}}, {"hardlink",cmd_hardlink," create a Windows hard link",{COMPL_REMOTE,COMPL_REMOTE}}, {"help",cmd_help,"[command] give help on a command",{COMPL_NONE,COMPL_NONE}}, {"history",cmd_history,"displays the command history",{COMPL_NONE,COMPL_NONE}}, @@ -4657,12 +4657,12 @@ static struct { {"rename",cmd_rename," rename some files",{COMPL_REMOTE,COMPL_REMOTE}}, {"reput",cmd_reput," [remote name] put a file restarting at end of remote file",{COMPL_LOCAL,COMPL_REMOTE}}, {"rm",cmd_del," delete all matching files",{COMPL_REMOTE,COMPL_NONE}}, - {"rmdir",cmd_rmdir," remove a directory",{COMPL_NONE,COMPL_NONE}}, + {"rmdir",cmd_rmdir," remove a directory",{COMPL_REMOTE,COMPL_NONE}}, {"showacls",cmd_showacls,"toggle if ACLs are shown or not",{COMPL_NONE,COMPL_NONE}}, {"setea", cmd_setea, " Set an EA of a file", {COMPL_REMOTE, COMPL_LOCAL}}, - {"setmode",cmd_setmode,"filename change modes of file",{COMPL_REMOTE,COMPL_NONE}}, - {"stat",cmd_stat,"filename Do a UNIX extensions stat call on a file",{COMPL_REMOTE,COMPL_REMOTE}}, + {"setmode",cmd_setmode," change modes of file",{COMPL_REMOTE,COMPL_NONE}}, + {"stat",cmd_stat," Do a UNIX extensions stat call on a file",{COMPL_REMOTE,COMPL_NONE}}, {"symlink",cmd_symlink," create a UNIX symlink",{COMPL_REMOTE,COMPL_REMOTE}}, {"tar",cmd_tar,"tar [IXFqbgNan] current directory to/from ",{COMPL_NONE,COMPL_NONE}}, {"tarmode",cmd_tarmode," tar's behaviour towards archive bits",{COMPL_NONE,COMPL_NONE}}, -- cgit