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 7c39e5389f8393e68b476fc1d8150be2df4f7948..35bbed1f292d86e9c9130ef79f7e8f2441b85277 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);