MCPcopy Create free account
hub / github.com/RsyncProject/rsync / ownership_differs

Function ownership_differs

generator.c:429–438  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

427}
428
429static inline int ownership_differs(struct file_struct *file, stat_x *sxp)
430{
431 if (am_root && uid_ndx && sxp->st.st_uid != (uid_t)F_OWNER(file))
432 return 1;
433
434 if (gid_ndx && !(file->flags & FLAG_SKIP_GROUP) && sxp->st.st_gid != (gid_t)F_GROUP(file))
435 return 1;
436
437 return 0;
438}
439
440#ifdef SUPPORT_ACLS
441static inline int acls_differ(const char *fname, struct file_struct *file, stat_x *sxp)

Callers 1

unchanged_attrsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected