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 4ea7d32..b431cb7 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;