Moved the read_batch abort check below the code that handles the
authorWayne Davison <wayned@samba.org>
Sat, 17 Jul 2004 16:29:10 +0000 (16:29 +0000)
committerWayne Davison <wayned@samba.org>
Sat, 17 Jul 2004 16:29:10 +0000 (16:29 +0000)
symlinks and devices.

generator.c

index 4ea7d32f63cab1536c1c08a23e61cbe14f0b46a7..b431cb743db634ee0be1c6f91261d4658cb18ae9 100644 (file)
@@ -330,9 +330,6 @@ static void recv_generator(char *fname, struct file_struct *file, int i,
                return;
        }
 
-       if (read_batch)
-               return;
-
        if (preserve_links && S_ISLNK(file->mode)) {
 #if SUPPORT_LINKS
                char lnk[MAXPATHLEN];
@@ -401,6 +398,9 @@ static void recv_generator(char *fname, struct file_struct *file, int i,
        }
 #endif
 
+       if (read_batch)
+               return;
+
        if (preserve_hard_links && hard_link_check(file, HL_CHECK_MASTER))
                return;