Lines Matching refs:preserve
44 "\b--preserve\b \b--recursive\b.]"
52 "[p:preserve?Preserve file owner, group, permissions and timestamps.]"
148 #define PRESERVE_IDS 0x1 /* preserve uid gid */
149 #define PRESERVE_PERM 0x2 /* preserve permissions */
150 #define PRESERVE_TIME 0x4 /* preserve times */
165 int hierarchy; /* preserve hierarchy */
170 int perm; /* permissions to preserve */
173 int preserve; /* preserve { ids perms times } */
202 * preserve support
206 preserve(State_t* state, const char* path, struct stat* ns, struct stat* os)
210 if ((state->preserve & PRESERVE_TIME) && tmxtouch(path, tmxgetatime(os), tmxgetmtime(os), TMX_NOTIME, 0))
212 if (state->preserve & PRESERVE_IDS)
327 if (state->preserve && state->op != LN || ent->fts_level > 0 && (ent->fts_statp->st_mode & S_IRWXU) != S_IRWXU)
339 if (state->preserve & (PRESERVE_IDS|PRESERVE_TIME))
340 preserve(state, state->path, &st, ent->fts_statp);
649 if (state->preserve)
657 if ((state->preserve & PRESERVE_PERM) && (ent->fts_statp->st_mode & state->perm) != (st.st_mode & state->perm) && chmod(state->path, ent->fts_statp->st_mode & state->perm))
659 if (state->preserve & (PRESERVE_IDS|PRESERVE_TIME))
660 preserve(state, state->path, &st, ent->fts_statp);
736 state->preserve = PRESERVE_IDS|PRESERVE_PERM|PRESERVE_TIME;
754 state->preserve = PRESERVE_IDS|PRESERVE_PERM|PRESERVE_TIME;
767 state->preserve |= PRESERVE_IDS|PRESERVE_PERM|PRESERVE_TIME;
770 state->preserve |= PRESERVE_IDS;
773 state->preserve |= PRESERVE_PERM;
776 state->preserve |= PRESERVE_TIME;
807 state->preserve = PRESERVE_IDS|PRESERVE_PERM|PRESERVE_TIME;