}
+#ifdef SUPPORT_HFS_COMPRESSION
-+static void hfs_receiver_check(const char *dest_path)
++static void hfs_receiver_check(void)
+{
+ struct statfs fsb;
+ struct attrlist attrs;
+ if (preserve_hfs_compression != 1)
+ return; /* Nothing to check if --hfs-compression option isn't enabled. */
+
-+ if (statfs(dest_path, &fsb) < 0) {
-+ rsyserr(FERROR, errno, "statfs %s failed", full_fname(dest_path));
++ if (statfs(".", &fsb) < 0) {
++ rsyserr(FERROR, errno, "statfs %s failed", curr_dir);
+ exit_cleanup(RERR_FILESELECT);
+ }
+
+ attrData.len = sizeof attrData;
+
+ if (getattrlist(fsb.f_mntonname, &attrs, &attrData, sizeof attrData, 0) < 0) {
-+ rsyserr(FERROR, errno, "getattrlist %s failed", full_fname(dest_path));
++ rsyserr(FERROR, errno, "getattrlist %s failed", curr_dir);
+ exit_cleanup(RERR_FILESELECT);
+ }
+
}
filesystem_dev = st.st_dev; /* ensures --force works right w/-x */
+#ifdef SUPPORT_HFS_COMPRESSION
-+ hfs_receiver_check(dest_path);
++ hfs_receiver_check();
+#endif
return NULL;
}
}
-
+#ifdef SUPPORT_HFS_COMPRESSION
-+ hfs_receiver_check(dest_path);
++ hfs_receiver_check();
+#endif
return NULL;
}
exit_cleanup(RERR_FILESELECT);
}
+#ifdef SUPPORT_HFS_COMPRESSION
-+ hfs_receiver_check(dest_path);
++ hfs_receiver_check();
+#endif
*cp = '/';