*** ../samba-1.9.13/Makefile	Fri Apr 28 13:59:37 1995
--- Makefile	Mon Jun 12 19:22:29 1995
***************
*** 384,391 ****
  nmbd: nameserv.o $(UTILOBJ) 
  	$(CC) $(CFLAGS) -o nmbd nameserv.o $(UTILOBJ) $(LIBS)
  
! smbclient: client.o $(UTILOBJ) 
! 	$(CC) $(CFLAGS) -o smbclient client.o $(UTILOBJ) $(LIBS)
  
  smbstatus: status.o $(PARAMOBJ) 
  	$(CC) $(CFLAGS) -o smbstatus status.o $(PARAMOBJ) $(LIBS)
--- 384,391 ----
  nmbd: nameserv.o $(UTILOBJ) 
  	$(CC) $(CFLAGS) -o nmbd nameserv.o $(UTILOBJ) $(LIBS)
  
! smbclient: client.o $(UTILOBJ) clitar.o
! 	$(CC) $(CFLAGS) -o smbclient client.o $(UTILOBJ) clitar.o $(LIBS)
  
  smbstatus: status.o $(PARAMOBJ) 
  	$(CC) $(CFLAGS) -o smbstatus status.o $(PARAMOBJ) $(LIBS)
*** ../samba-1.9.13/client.c	Fri Apr 28 14:00:17 1995
--- client.c	Mon Jun 12 18:51:05 1995
***************
*** 54,59 ****
--- 54,68 ----
  
  BOOL translation = False;
  
+ /* clitar bits insert */
+ extern void cmd_tar();
+ extern void cmd_block();
+ extern void cmd_tarmode();
+ extern void cmd_setmode();
+ extern int blocksize;
+ extern BOOL tar_inc;
+ extern BOOL tar_reset;
+ /* clitar bits end */
  
  int cnum = 0;
  int pid = 0;
***************
*** 117,123 ****
  #endif
  
  static void send_logout(void );
! static BOOL reopen_connection(char *inbuf,char *outbuf);
  static int do_long_dir(char *inbuf,char *outbuf,char *Mask,int attribute,void (*fn)(),BOOL recurse_dir);
  static int do_short_dir(char *inbuf,char *outbuf,char *Mask,int attribute,void (*fn)(),BOOL recurse_dir);
  static BOOL call_api(int prcnt,int drcnt,int mprcnt,int mdrcnt,
--- 126,132 ----
  #endif
  
  static void send_logout(void );
! BOOL reopen_connection(char *inbuf,char *outbuf);
  static int do_long_dir(char *inbuf,char *outbuf,char *Mask,int attribute,void (*fn)(),BOOL recurse_dir);
  static int do_short_dir(char *inbuf,char *outbuf,char *Mask,int attribute,void (*fn)(),BOOL recurse_dir);
  static BOOL call_api(int prcnt,int drcnt,int mprcnt,int mdrcnt,
***************
*** 128,134 ****
  /****************************************************************************
  setup basics in a outgoing packet
  ****************************************************************************/
! static void setup_pkt(char *outbuf)
  {
    SSVAL(outbuf,smb_pid,pid);
    SSVAL(outbuf,smb_uid,uid);
--- 137,143 ----
  /****************************************************************************
  setup basics in a outgoing packet
  ****************************************************************************/
! void setup_pkt(char *outbuf)
  {
    SSVAL(outbuf,smb_pid,pid);
    SSVAL(outbuf,smb_uid,uid);
***************
*** 441,447 ****
  /****************************************************************************
  do a directory listing, calling fn on each file found
  ****************************************************************************/
! static void do_dir(char *inbuf,char *outbuf,char *Mask,int attribute,void (*fn)(),BOOL recurse_dir)
  {
    if (Protocol >= PROTOCOL_LANMAN2)
      {
--- 450,456 ----
  /****************************************************************************
  do a directory listing, calling fn on each file found
  ****************************************************************************/
! void do_dir(char *inbuf,char *outbuf,char *Mask,int attribute,void (*fn)(),BOOL recurse_dir)
  {
    if (Protocol >= PROTOCOL_LANMAN2)
      {
***************
*** 3277,3282 ****
--- 3286,3298 ----
    {"quit",send_logout,"logoff the server"},
    {"exit",send_logout,"logoff the server"},
    {"newer",cmd_newer,"<file> only mget files newer than the specified local file"},
+ /* clitar bit insert */
+   {"tar",cmd_tar,"tar current directory to <file name>" },
+   {"blocksize",cmd_block,"blocksize <number> (default 20)" },
+   {"tarmode",cmd_tarmode,
+    "<mode=full|inc|reset|noreset> tar's behaviour towards archive bits" },
+   {"setmode",cmd_setmode,"filename <setmode string> change modes of file"},
+    /* clitar bit end */
    {"help",cmd_help,"[command] give help on a command"},
    {"?",cmd_help,"[command] give help on a command"},
    {"!",NULL,"run a shell command on the local system"},
***************
*** 3451,3457 ****
  /****************************************************************************
  close and open the connection again
  ****************************************************************************/
! static BOOL reopen_connection(char *inbuf,char *outbuf)
  {
    static int open_count=0;
  
--- 3467,3473 ----
  /****************************************************************************
  close and open the connection again
  ****************************************************************************/
! BOOL reopen_connection(char *inbuf,char *outbuf)
  {
    static int open_count=0;
  
