-/* $OpenBSD: rsync.c,v 1.28 2021/10/23 20:01:16 claudio Exp $ */
+/* $OpenBSD: rsync.c,v 1.29 2021/10/28 13:50:29 job Exp $ */
/*
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
*
#include "extern.h"
+#define __STRINGIFY(x) #x
+#define STRINGIFY(x) __STRINGIFY(x)
+
/*
* A running rsync process.
* We can have multiple of these simultaneously and need to keep track
args[i++] = (char *)prog;
args[i++] = "-rt";
args[i++] = "--no-motd";
+ args[i++] = "--max-size=" STRINGIFY(MAX_FILE_SIZE);
args[i++] = "--timeout=180";
args[i++] = "--include=*/";
args[i++] = "--include=*.cer";