If there is no lchown(), don't try to set the user & group of a symlink.
[rsync/rsync.git] / t_stub.c
index 008e6b8..c72eb07 100644 (file)
--- a/t_stub.c
+++ b/t_stub.c
@@ -28,6 +28,7 @@
 
 int modify_window = 0;
 int module_id = -1;
+char *partial_dir;
 struct exclude_list_struct server_exclude_list;
 
  void rprintf(UNUSED(enum logcode code), const char *format, ...)
@@ -38,6 +39,16 @@ struct exclude_list_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",