Displaying 4 results from an estimated 4 matches for "flag_missing_dir".
2008 Mar 19
0
[PATCH] Unsnarl missing_below/dry_run logic.
...nt increments in
dry_run; this caused at least three bugs.
Now recv_generator has separate variables for the two scenarios, called skip_dir
and dry_missing_dir, respectively. For simplicity, we take the F_DEPTH instead
of having separate *_below variables. We mark both kinds of missing dirs with
FLAG_MISSING_DIR. (dry_run > 1) iff the *root* of the destination does not
exist; it is no longer incremented for missing subdirs. I added tests for the
three fixed bugs in missing.test.
---
generator.c | 79 +++++++++++++++++++++++++-----------------------
testsuite/missing.test | 28 +++++++++...
2015 Nov 28
0
[PATCH] ignore-non-existing-directory: add variant of ignore-non-existing
...t_errno == ENOENT) {
+ if ((ignore_non_existing > 0 || ignore_non_existing_dirs > 0) && statret == -1 && stat_errno == ENOENT) {
+ int actually_ignore = 0;
if (is_dir) {
if (is_dir < 0)
return;
+ actually_ignore = 1;
skip_dir = file;
file->flags |= FLAG_MISSING_DIR;
}
#ifdef SUPPORT_HARD_LINKS
- else if (F_IS_HLINKED(file))
+ else if (ignore_non_existing > 0 && F_IS_HLINKED(file)) {
+ actually_ignore = 1;
handle_skipped_hlink(file, itemizing, code, f_out);
+ }
#endif
- if (INFO_GTE(SKIP, 1)) {
- rprintf(FINFO, "not creating ne...
2016 Jan 16
0
[PATCH v2, resend] ignore-non-existing-directory: add variant of ignore-non-existing
...t_errno == ENOENT) {
+ if ((ignore_non_existing > 0 || ignore_non_existing_dirs > 0) && statret == -1 && stat_errno == ENOENT) {
+ int actually_ignore = 0;
if (is_dir) {
if (is_dir < 0)
return;
+ actually_ignore = 1;
skip_dir = file;
file->flags |= FLAG_MISSING_DIR;
}
#ifdef SUPPORT_HARD_LINKS
- else if (F_IS_HLINKED(file))
+ else if (ignore_non_existing > 0 && F_IS_HLINKED(file)) {
+ actually_ignore = 1;
handle_skipped_hlink(file, itemizing, code, f_out);
+ }
#endif
- if (INFO_GTE(SKIP, 1)) {
- rprintf(FINFO, "not creating ne...
2015 Nov 28
0
[PATCH v2] ignore-non-existing-directory: add variant of ignore-non-existing
...t_errno == ENOENT) {
+ if ((ignore_non_existing > 0 || ignore_non_existing_dirs > 0) && statret == -1 && stat_errno == ENOENT) {
+ int actually_ignore = 0;
if (is_dir) {
if (is_dir < 0)
return;
+ actually_ignore = 1;
skip_dir = file;
file->flags |= FLAG_MISSING_DIR;
}
#ifdef SUPPORT_HARD_LINKS
- else if (F_IS_HLINKED(file))
+ else if (ignore_non_existing > 0 && F_IS_HLINKED(file)) {
+ actually_ignore = 1;
handle_skipped_hlink(file, itemizing, code, f_out);
+ }
#endif
- if (INFO_GTE(SKIP, 1)) {
- rprintf(FINFO, "not creating ne...