Make get_xattr_names() even safer at fetching the list of attr names.
[rsync/rsync.git] / compat.c
index c958135..1717a3f 100644 (file)
--- a/compat.c
+++ b/compat.c
@@ -171,6 +171,8 @@ void setup_protocol(int f_out,int f_in)
                        PROTOCOL_VERSION, am_server? "Server" : "Client");
                exit_cleanup(RERR_PROTOCOL);
        }
+       if (read_batch)
+               check_batch_flags();
 
        if (protocol_version < 30) {
                if (append_mode == 1)