浏览代码

Do not recurse into ignored directory

Fix mirall issue 1260
Olivier Goffart 12 年之前
父节点
当前提交
7300f10f87
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/csync_update.c

+ 2 - 1
src/csync_update.c

@@ -601,7 +601,8 @@ int csync_ftw(CSYNC *ctx, const char *uri, csync_walker_fn fn,
       goto done;
     }
 
-    if (flag == CSYNC_FTW_FLAG_DIR && depth) {
+    if (flag == CSYNC_FTW_FLAG_DIR && depth
+        && (!ctx->current_fs || ctx->current_fs->instruction != CSYNC_INSTRUCTION_IGNORE)) {
       rc = csync_ftw(ctx, filename, fn, depth - 1);
       if (rc < 0) {
         ctx->current_fs = previous_fs;