Displaying 1 result from an estimated 1 matches for "make_file_stat".
2004 Jan 24
2
[PATCH] --links-depth for rsync
...xtern int follow_links_depth;
extern int preserve_hard_links;
extern int preserve_perms;
extern int preserve_devices;
@@ -725,6 +726,65 @@
/* IRIX cc cares that the operands to the ternary have the same type. */
#define MALLOC(ap, i) (ap ? (void*) string_area_malloc(ap, i) : malloc(i))
+void make_file_stat(struct file_struct * file, STRUCT_STAT *st)
+{
+ file->modtime = st->st_mtime;
+ file->length = st->st_size;
+ file->mode = st->st_mode;
+ file->uid = st->st_uid;
+ file->gid = st->st_gid;
+ if (preserve_hard_links) {
+ if (protocol_version < 28 ? S_ISREG(st->st...