Small update to clitar.c to omit warnings about servers not
authorRichard Sharpe <sharpe@samba.org>
Sat, 26 Sep 1998 00:41:20 +0000 (00:41 +0000)
committerRichard Sharpe <sharpe@samba.org>
Sat, 26 Sep 1998 00:41:20 +0000 (00:41 +0000)
letting us change the date unless tar_real_noisy is True.

Also updated a few places where variables are declared but not set.

source/client/clitar.c
source/rpc_server/srv_samr.c
source/smbd/blocking.c

index 4d7a2cf043b264f8f8cf4b515fbb3e78eaa66130..afcd4b9f1d6f875972f5c9f1808df2f4e4f21b0f 100644 (file)
@@ -106,7 +106,7 @@ BOOL tar_system=True;
 BOOL tar_hidden=True;
 /* Be noisy - make a catalogue */
 BOOL tar_noisy=True;
-BOOL tar_real_noisy=True;
+BOOL tar_real_noisy=False;  /* Don't want to be really noisy by default */
 
 char tar_type='\0';
 static char **cliplist=NULL;
@@ -1723,9 +1723,10 @@ static int get_file(file_info2 finfo, char * inbuf, char * outbuf)
 
   if (!do_setrtime(finfo.name, finfo.mtime, True)) {
 
-    DEBUG(0, ("Could not set time on file: %s\n", finfo.name));
-    /*return(False); */ /* Ignore, as Win95 does not allow changes */
-
+    if (tar_real_noisy) {
+      DEBUG(0, ("Could not set time on file: %s\n", finfo.name));
+      /*return(False); */ /* Ignore, as Win95 does not allow changes */
+    }
   }
 
   ntarf++;
index 2c6e34801a9f34b26a67c261aba19cd04e3a7984..a5684c8d86f0b52aab8ec2b084bf8f8bdbfb66ee 100644 (file)
@@ -954,7 +954,7 @@ static void samr_reply_query_userinfo(SAMR_Q_QUERY_USERINFO *q_u,
        void *info = NULL;
 
        uint32 status = 0x0;
-       uint32 rid;
+       uint32 rid = 0x0;
        int obj_idx;
 
        DEBUG(5,("samr_reply_query_userinfo: %d\n", __LINE__));
index 27a51839529a37139de7025c165d94e923411120..32b6d010a4f2a850f59ba3eb2db9a5a679800d44 100644 (file)
@@ -195,7 +195,7 @@ static void reply_lockingX_error(blocking_lock_record *blr, int eclass, int32 ec
   files_struct *fsp = blr->fsp;
   connection_struct *conn = conn_find(SVAL(inbuf,smb_tid));
   uint16 num_ulocks = SVAL(inbuf,smb_vwv6);
-  SMB_OFF_T count, offset;
+  SMB_OFF_T count = (SMB_OFF_T) 0, offset = (SMB_OFF_T) 0;
   unsigned char locktype = CVAL(inbuf,smb_vwv3);
   BOOL large_file_format = (locktype & LOCKING_ANDX_LARGE_FILES);
   char *data;
@@ -329,7 +329,7 @@ static BOOL process_lock(blocking_lock_record *blr)
   char *outbuf = OutBuffer;
   char *inbuf = blr->inbuf;
   int outsize;
-  SMB_OFF_T count,offset;
+  SMB_OFF_T count = 0, offset = 0;
   int eclass;
   uint32 ecode;
   connection_struct *conn = conn_find(SVAL(inbuf,smb_tid));
@@ -387,7 +387,7 @@ static BOOL process_lockingX(blocking_lock_record *blr)
   connection_struct *conn = conn_find(SVAL(inbuf,smb_tid));
   uint16 num_ulocks = SVAL(inbuf,smb_vwv6);
   uint16 num_locks = SVAL(inbuf,smb_vwv7);
-  SMB_OFF_T count, offset;
+  SMB_OFF_T count = 0, offset = 0;
   BOOL large_file_format = (locktype & LOCKING_ANDX_LARGE_FILES);
   char *data;
   int eclass=0;