From: Volker Lendecke Date: Tue, 17 Jun 2008 19:08:56 +0000 (+0200) Subject: Fix a brown paper bag segfault in clitar X-Git-Tag: samba-3.3.0pre1~864 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b8e1d62b8e8f724b855c8ab9801abee0b2791e36;p=thirdparty%2Fsamba.git 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) --- diff --git a/source/client/client.c b/source/client/client.c index 8c939fc3ec6..149b5303694 100644 --- a/source/client/client.c +++ b/source/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/source/client/clitar.c b/source/client/clitar.c index f53c9b4035f..084f87e3996 100644 --- a/source/client/clitar.c +++ b/source/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;