4 post_process(const struct FileInfo * i)
8 if ( i->destination == 0 || *i->destination == 0 )
11 if ( status == 0 && i->changeMode ) {
12 mode_t mode = i->stat.st_mode & 07777;
13 mode &= i->andWithMode;
14 mode |= i->orWithMode;
15 status = chmod(i->destination, mode);
17 if ( status != 0 && i->complainInPostProcess && !i->force ) {
18 name_and_error(i->destination);
23 if ( i->changeUserID || i->changeGroupID ) {
24 uid_t uid = i->stat.st_uid;
25 gid_t gid = i->stat.st_gid;
27 if ( i->changeUserID )
29 if ( i->changeGroupID )
32 status = chown(i->destination, uid, gid);
34 if ( status != 0 && i->complainInPostProcess && !i->force ) {
35 name_and_error(i->destination);