A slight refinement to my last patch.
authorWayne Davison <wayned@samba.org>
Mon, 3 May 2004 01:24:10 +0000 (01:24 +0000)
committerWayne Davison <wayned@samba.org>
Mon, 3 May 2004 01:24:10 +0000 (01:24 +0000)
flist.c

diff --git a/flist.c b/flist.c
index 7c39e53..35bbed1 100644 (file)
--- a/flist.c
+++ b/flist.c
@@ -539,12 +539,10 @@ void receive_file_entry(struct file_struct **fptr, unsigned short flags,
                rdev_major = 0;
                uid = 0, gid = 0;
                *lastname = '\0';
+               lastdir_len = -1;
                return;
        }
 
-       if (!flist || !flist->count)    /* Ignore lastdir when invalid. */
-               lastdir_len = -1;
-
        if (flags & XMIT_SAME_NAME)
                l1 = read_byte(f);