summaryrefslogtreecommitdiff
path: root/source3/client/clitar.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/client/clitar.c')
-rw-r--r--source3/client/clitar.c25
1 files changed, 13 insertions, 12 deletions
diff --git a/source3/client/clitar.c b/source3/client/clitar.c
index 43b0ef44bc..9fa3750b0c 100644
--- a/source3/client/clitar.c
+++ b/source3/client/clitar.c
@@ -37,7 +37,6 @@
#include "includes.h"
#include "clitar.h"
-#include "../client/client_proto.h"
static int clipfind(char **aret, int ret, char *tok);
@@ -66,6 +65,8 @@ typedef struct
} stack;
+stack dir_stack = {NULL, 0}; /* Want an empty stack */
+
#define SEPARATORS " \t\n\r"
extern struct cli_state *cli;
@@ -84,25 +85,25 @@ static char *tarbuf, *buffer_p;
static int tp, ntarf, tbufsiz;
static double ttarf;
/* Incremental mode */
-static BOOL tar_inc=False;
+BOOL tar_inc=False;
/* Reset archive bit */
-static BOOL tar_reset=False;
+BOOL tar_reset=False;
/* Include / exclude mode (true=include, false=exclude) */
-static BOOL tar_excl=True;
+BOOL tar_excl=True;
/* use regular expressions for search on file names */
-static BOOL tar_re_search=False;
+BOOL tar_re_search=False;
#ifdef HAVE_REGEX_H
regex_t *preg;
#endif
/* Do not dump anything, just calculate sizes */
-static BOOL dry_run=False;
+BOOL dry_run=False;
/* Dump files with System attribute */
-static BOOL tar_system=True;
+BOOL tar_system=True;
/* Dump files with Hidden attribute */
-static BOOL tar_hidden=True;
+BOOL tar_hidden=True;
/* Be noisy - make a catalogue */
-static BOOL tar_noisy=True;
-static BOOL tar_real_noisy=False; /* Don't want to be really noisy by default */
+BOOL tar_noisy=True;
+BOOL tar_real_noisy=False; /* Don't want to be really noisy by default */
char tar_type='\0';
static char **cliplist=NULL;
@@ -118,8 +119,8 @@ extern pstring cur_dir;
extern int get_total_time_ms;
extern int get_total_size;
-static int blocksize=20;
-static int tarhandle;
+int blocksize=20;
+int tarhandle;
static void writetarheader(int f, char *aname, int size, time_t mtime,
char *amode, unsigned char ftype);