Ver código fonte

Set the symlink error message only for links.

Klaas Freitag 12 anos atrás
pai
commit
d99f5c5ddb
1 arquivos alterados com 4 adições e 2 exclusões
  1. 4 2
      src/csync_update.c

+ 4 - 2
src/csync_update.c

@@ -193,8 +193,10 @@ static int _csync_detect_update(CSYNC *ctx, const char *file,
     goto out;
   }
   if (excluded > CSYNC_NOT_EXCLUDED || type == CSYNC_FTW_TYPE_SLINK) {
-      st->error_status = CSYNC_STATUS_INDIVIDUAL_IS_SYMLINK; /* Symbolic links are ignored. */
-    st->instruction = CSYNC_INSTRUCTION_IGNORE;
+      if( type == CSYNC_FTW_TYPE_SLINK ) {
+          st->error_status = CSYNC_STATUS_INDIVIDUAL_IS_SYMLINK; /* Symbolic links are ignored. */
+      }
+      st->instruction = CSYNC_INSTRUCTION_IGNORE;
     goto out;
   }