| 427 | } |
| 428 | |
| 429 | static 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 |
| 441 | static inline int acls_differ(const char *fname, struct file_struct *file, stat_x *sxp) |