- fixed file time bug
authorAndrew Tridgell <tridge@samba.org>
Wed, 3 Jul 1996 06:24:34 +0000 (06:24 +0000)
committerAndrew Tridgell <tridge@samba.org>
Wed, 3 Jul 1996 06:24:34 +0000 (06:24 +0000)
- doc updates

README
flist.c
io.c
main.c
version.h

diff --git a/README b/README
index 6c15798..ff93c02 100644 (file)
--- a/README
+++ b/README
@@ -44,10 +44,10 @@ Here is a brief description of available options:
 -C, --cvs-exclude        auto ignore files in the same way CVS does
     --delete             delete files that don't exist on the sending side
 -I, --ignore-times       don't exclude files that match length and time
+-z, --compress           compress file data
     --exclude FILE       exclude file FILE
     --exclude-from FILE  exclude files listed in FILE
     --suffix SUFFIX      override backup suffix
-    --csum-length LENGTH set the checksum length
     --version            print version number
 
 
@@ -57,8 +57,8 @@ SETUP
 Rsync uses rsh or ssh for communication. It does not need to be setuid
 and requires no special privilages for installation. It does not
 require a inetd entry or a daemon. You must, however, have a working
-rsh or ssh system. Using ssh is recommended for its security and
-compression features.
+rsh or ssh system. Using ssh is recommended for its security
+features. 
 
 To install rsync, first run the "configure" script. This will create a
 Makefile and config.h appropriate for your system. Then type
diff --git a/flist.c b/flist.c
index 38569aa..ed001a2 100644 (file)
--- a/flist.c
+++ b/flist.c
@@ -110,7 +110,7 @@ void send_file_entry_v11(struct file_struct *file,int f)
 
   if (l1 > 0) flags |= SAME_NAME;
   if (l2 > 255) flags |= LONG_NAME;
-    
+
   write_byte(f,flags);  
   if (flags & SAME_NAME)
     write_byte(f,l1);
@@ -165,7 +165,7 @@ void send_file_entry_v11(struct file_struct *file,int f)
 void receive_file_entry_v11(struct file_struct *file,
                            unsigned char flags,int f)
 {
-  static mode_t last_time=0;
+  static time_t last_time=0;
   static mode_t last_mode=0;
   static dev_t last_rdev=0;
   static uid_t last_uid=0;
diff --git a/io.c b/io.c
index b25225e..e7292df 100644 (file)
--- a/io.c
+++ b/io.c
@@ -151,9 +151,9 @@ void read_buf(int f,char *buf,int len)
 
 unsigned char read_byte(int f)
 {
-  char c;
-  read_buf(f,&c,1);
-  return (unsigned char)c;
+  unsigned char c;
+  read_buf(f,(char *)&c,1);
+  return c;
 }
 
 
diff --git a/main.c b/main.c
index 7cef434..44ad964 100644 (file)
--- a/main.c
+++ b/main.c
@@ -405,7 +405,6 @@ static void usage(FILE *f)
   fprintf(f,"    --exclude FILE       exclude file FILE\n");
   fprintf(f,"    --exclude-from FILE  exclude files listed in FILE\n");
   fprintf(f,"    --suffix SUFFIX      override backup suffix\n");  
-  fprintf(f,"    --csum-length LENGTH set the checksum length\n");  
   fprintf(f,"    --version            print version number\n");  
 
   fprintf(f,"\n");
index ebb734f..2ed1b2c 100644 (file)
--- a/version.h
+++ b/version.h
@@ -1 +1 @@
-#define VERSION "1.4.5"
+#define VERSION "1.5.0"