[Pkg-owncloud-commits] [owncloud-client] 190/484: Hidden files: Consider .* hidden everywhere #4023

Sandro Knauß hefee-guest at moszumanska.debian.org
Wed Dec 16 00:37:41 UTC 2015


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit d9f8edd2590a7347510970c9d68099dff8d73723
Author: Christian Kamm <mail at ckamm.de>
Date:   Thu Oct 29 11:59:11 2015 +0100

    Hidden files: Consider .* hidden everywhere #4023
    
    This seems to be the only place where we did this only on
    non-windows OSes.
---
 csync/src/csync_update.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/csync/src/csync_update.c b/csync/src/csync_update.c
index e25af51..0bda664 100644
--- a/csync/src/csync_update.c
+++ b/csync/src/csync_update.c
@@ -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) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list