summaryrefslogtreecommitdiff
path: root/source3/client
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2007-07-11 08:43:08 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:28:30 -0500
commite05f45baefb050248064f58474e5ddddb2761111 (patch)
treedd3032e9891aeb30cf6e2529971ca4bef4d3d052 /source3/client
parent36d74b678bf024997b2961b66928e441d27496df (diff)
downloadsamba-e05f45baefb050248064f58474e5ddddb2761111.tar.gz
samba-e05f45baefb050248064f58474e5ddddb2761111.tar.bz2
samba-e05f45baefb050248064f58474e5ddddb2761111.zip
r23825: Add ".." command as an alias to "cd ..".
Guenther (This used to be commit c254c5e2549b2a4fe4895b467c4802f4b8ddb2f3)
Diffstat (limited to 'source3/client')
-rw-r--r--source3/client/client.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/source3/client/client.c b/source3/client/client.c
index ff8e28bba6..6a1c453c2c 100644
--- a/source3/client/client.c
+++ b/source3/client/client.c
@@ -343,6 +343,19 @@ static int cmd_cd(void)
return rc;
}
+/****************************************************************************
+ Change directory.
+****************************************************************************/
+
+static int cmd_cd_oneup(void)
+{
+ pstring buf;
+
+ pstrcpy(buf, "..");
+ return do_cd(buf);
+}
+
+
/*******************************************************************
Decide if a file should be operated on.
********************************************************************/
@@ -3308,7 +3321,8 @@ static struct
{"logon",cmd_logon,"establish new logon",{COMPL_NONE,COMPL_NONE}},
{"listconnect",cmd_list_connect,"list open connections",{COMPL_NONE,COMPL_NONE}},
{"showconnect",cmd_show_connect,"display the current active connection",{COMPL_NONE,COMPL_NONE}},
-
+ {"..",cmd_cd_oneup,"change the remote directory (up one level)",{COMPL_REMOTE,COMPL_NONE}},
+
/* Yes, this must be here, see crh's comment above. */
{"!",NULL,"run a shell command on the local system",{COMPL_NONE,COMPL_NONE}},
{NULL,NULL,NULL,{COMPL_NONE,COMPL_NONE}}