When setting an flist entry's flags, mask it with LIVE_FLAGS.
authorWayne Davison <wayned@samba.org>
Thu, 22 Jan 2004 18:39:32 +0000 (18:39 +0000)
committerWayne Davison <wayned@samba.org>
Thu, 22 Jan 2004 18:39:32 +0000 (18:39 +0000)
flist.c

diff --git a/flist.c b/flist.c
index 1ef1617..9f86521 100644 (file)
--- a/flist.c
+++ b/flist.c
@@ -603,7 +603,7 @@ void receive_file_entry(struct file_struct **fptr, unsigned short flags, int f)
        if (!file->basename)
                out_of_memory("receive_file_entry 1");
 
-       file->flags = flags;
+       file->flags = flags & LIVE_FLAGS;
        file->length = read_longint(f);
        if (!(flags & SAME_TIME))
                modtime = (time_t)read_int(f);