Lines Matching defs:chmod
40 #define chmod(a,b) (error(-1,"%s#%d: chmod(%s,%05o)",__FILE__,__LINE__,a,b),chmod(a,b))
290 f->chmod = f->perm != (st.st_mode & (S_IRWXU|S_IRWXG|S_IRWXO)) &&
291 (state.chmod || state.update || S_ISDIR(st.st_mode));
385 f->chmod = state.chmod || state.update;
461 if (!exists || f->chmod || state.update && ((c = tvcmp(tvmtime(&t1, f->st), tvmtime(&t2, &st))) > 0 || state.update == OPT_different && c))
630 * <chmod u+w><remove><missdir>
658 if (chmod(f->name, perm | S_IWUSR))
681 f->chmod = 1;
682 else if ((exists & 0200) && chmod(f->name, f->perm))
741 if (chmod(f->name, f->perm))
1181 if (f->chmod)
1187 error(1, "%s: cannot chmod to %s", f->name, fmtmode(f->perm & state.modemask, 0) + 1);
1200 if (f->chmod || state.acctime || state.modtime || state.owner || (f->perm & S_IRWXU) != S_IRWXU)
1211 p->chmod = 1;
1212 if (chmod(f->name, f->perm|S_IRWXU))
1213 error(1, "%s: cannot chmod to %s", f->name, fmtmode(f->st->st_mode|X_IRWXU, 1) + 1);
1216 p->chmod = f->chmod;
1231 p->chmod = f->chmod;
1270 if (p->chmod)
1272 if (chmod(name, p->mode & state.modemask))
1273 error(1, "%s: cannot chmod to %s", name, fmtmode(p->mode & state.modemask, 0) + 1);