X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/1564cd5a873fbb86e7a8230a4c09b20709a48723..858d45f1601354a91913c201ecd15e1bbcb28ba6:/flist.c diff --git a/flist.c b/flist.c index ce91092a..3fda8383 100644 --- a/flist.c +++ b/flist.c @@ -412,7 +412,7 @@ static void send_file_entry(int f, struct file_struct *file, int ndx) } else if (protocol_version < 28) rdev = MAKEDEV(0, 0); if (preserve_uid) { - if (F_OWNER(file) == uid && *lastname) + if ((uid_t)F_OWNER(file) == uid && *lastname) flags |= XMIT_SAME_UID; else { uid = F_OWNER(file); @@ -424,7 +424,7 @@ static void send_file_entry(int f, struct file_struct *file, int ndx) } } if (preserve_gid) { - if (F_GROUP(file) == gid && *lastname) + if ((gid_t)F_GROUP(file) == gid && *lastname) flags |= XMIT_SAME_GID; else { gid = F_GROUP(file);