Mention the EEXIST fix.
[rsync.git] / t_stub.c
index 50ca4e191a74ee9bd000a54f5fb30466decbd983..055bd7efa572320d671c6f9dc7e3d6fc458a610d 100644 (file)
--- a/t_stub.c
+++ b/t_stub.c
  **/
 
 int modify_window = 0;
-struct exclude_struct **server_exclude_list;
+int module_id = -1;
+char *partial_dir;
+struct filter_list_struct server_filter_list;
 
- void rprintf(enum logcode UNUSED(code), const char *format, ...)
+ void rprintf(UNUSED(enum logcode code), const char *format, ...)
 {
        va_list ap;
        va_start(ap, format);
@@ -37,6 +39,16 @@ struct exclude_struct **server_exclude_list;
        va_end(ap);
 }
 
+ void rsyserr(UNUSED(enum logcode code), int errcode, const char *format, ...)
+{
+       va_list ap;
+       fputs(RSYNC_NAME ": ", stderr);
+       va_start(ap, format);
+       vfprintf(stderr, format, ap);
+       va_end(ap);
+       fprintf(stderr, ": %s (%d)\n", strerror(errcode), errcode);
+}
+
  void _exit_cleanup(int code, const char *file, int line)
 {
        fprintf(stderr, "exit(%d): %s(%d)\n",
@@ -44,9 +56,26 @@ struct exclude_struct **server_exclude_list;
        exit(code);
 }
 
- int check_exclude(struct exclude_struct **list, char *name, int name_is_dir)
+ int check_filter(UNUSED(struct filter_list_struct *listp), UNUSED(char *name),
+                  UNUSED(int name_is_dir))
 {
-       /* This function doesn't really get called in a test context, so
-        * just reference our parameters to avoid compiler warnings. */
-       return 0 && list && name && name_is_dir;
+       /* This function doesn't really get called in this test context, so
+        * just return 0. */
+       return 0;
 }
+
+ char *lp_name(UNUSED(int mod))
+{
+    return NULL;
+}
+
+ BOOL lp_use_chroot(UNUSED(int mod))
+{
+    return 0;
+}
+
+ char *lp_path(UNUSED(int mod))
+{
+    return NULL;
+}
+