summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-06-17 21:08:56 +0200
committerVolker Lendecke <vl@samba.org>2008-06-17 21:14:47 +0200
commitc8dfed63a62c9caed14af9b67197dc5243b0c3ee (patch)
tree1664d8747410c4831fbbf09f9581db5e6f34b13f /source3
parent8fd045f9187b24e46f95146af5bc63cd632df0c0 (diff)
downloadsamba-c8dfed63a62c9caed14af9b67197dc5243b0c3ee.tar.gz
samba-c8dfed63a62c9caed14af9b67197dc5243b0c3ee.tar.bz2
samba-c8dfed63a62c9caed14af9b67197dc5243b0c3ee.zip
Fix a brown paper bag segfault in clitar
Thanks to "No Body is Perfect" from gmail, whoever that is :-) Volker (cherry picked from commit 679d8dfa390601f777bfb43c02cd921eae5edcf4) (This used to be commit b8e1d62b8e8f724b855c8ab9801abee0b2791e36)
Diffstat (limited to 'source3')
-rw-r--r--source3/client/client.c2
-rw-r--r--source3/client/clitar.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/client/client.c b/source3/client/client.c
index 8c939fc3ec..149b530369 100644
--- a/source3/client/client.c
+++ b/source3/client/client.c
@@ -40,7 +40,7 @@ static char *desthost;
static char *calling_name;
static bool grepable = false;
static char *cmdstr = NULL;
-static const char *cmd_ptr = NULL;
+const char *cmd_ptr = NULL;
static int io_bufsize = 524288;
diff --git a/source3/client/clitar.c b/source3/client/clitar.c
index f53c9b4035..084f87e399 100644
--- a/source3/client/clitar.c
+++ b/source3/client/clitar.c
@@ -100,7 +100,7 @@ char tar_type='\0';
static char **cliplist=NULL;
static int clipn=0;
static bool must_free_cliplist = False;
-static const char *cmd_ptr = NULL;
+extern const char *cmd_ptr;
extern bool lowercase;
extern uint16 cnum;