Hidden files: Consider .* hidden everywhere #4023
authorChristian Kamm <mail@ckamm.de>
Thu, 29 Oct 2015 10:59:11 +0000 (11:59 +0100)
committerChristian Kamm <mail@ckamm.de>
Thu, 29 Oct 2015 10:59:46 +0000 (11:59 +0100)
This seems to be the only place where we did this only on
non-windows OSes.

csync/src/csync_update.c

index e25af5168ce92eda886a4953e524670098aeff30..0bda6646aeb65eb3ebfea894808335eb31ff01da 100644 (file)
@@ -741,15 +741,13 @@ int csync_ftw(CSYNC *ctx, const char *uri, csync_walker_fn fn,
         res = 0;
     }
 
-    /* for non windows platforms, detect if the filename starts with a .
-     * and if so, it's a hidden file. For windows, the hidden state is
-     * discovered within the vio local stat function.
+    /* if the filename starts with a . we consider it a hidden file
+     * For windows, the hidden state is also discovered within the vio
+     * local stat function.
      */
-#ifndef _WIN32
     if( d_name[0] == '.' ) {
         dirent->flags |= CSYNC_VIO_FILE_FLAGS_HIDDEN;
     }
-#endif
 
     if( res == 0) {
       switch (dirent->type) {