X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/31b4d25d103c1b9b8621d49becc7ee6c65446eda..5454d22ad8b63f00aa0b64d8568f2781e31a382b:/flist.c diff --git a/flist.c b/flist.c index bd114323..5fcd54dd 100644 --- a/flist.c +++ b/flist.c @@ -531,7 +531,7 @@ void receive_file_entry(struct file_struct **fptr, unsigned short flags, static gid_t gid; static char lastname[MAXPATHLEN], *lastdir; static int lastdir_depth, lastdir_len = -1; - static unsigned int del_heir_name_len = -1; + static unsigned int del_heir_name_len = 0; static int in_del_hier = 0; char thisname[MAXPATHLEN]; unsigned int l1 = 0, l2 = 0; @@ -546,7 +546,7 @@ void receive_file_entry(struct file_struct **fptr, unsigned short flags, rdev_major = 0; uid = 0, gid = 0; *lastname = '\0'; - del_heir_name_len = lastdir_len = -1; + lastdir_len = -1; in_del_hier = 0; return; } @@ -925,7 +925,7 @@ skip_filters: memcpy(bp, basename, basename_len); bp += basename_len; -#ifdef HAVE_STRUCT_STAT_ST_RDEV +#if HAVE_STRUCT_STAT_ST_RDEV if (preserve_devices && IS_DEVICE(st.st_mode)) file->u.rdev = st.st_rdev; #endif