[Pkg-owncloud-commits] [owncloud-client] 143/171: csync_update: Use the csync defines rather than plain numbers.
Sandro Knauß
hefee-guest at moszumanska.debian.org
Wed Feb 17 09:37:01 UTC 2016
This is an automated email from the git hooks/post-receive script.
hefee-guest pushed a commit to annotated tag upstream/2.1.1+dfsg
in repository owncloud-client.
commit 7ddfa79950d76316b4914daf7636b098f6c10a8d
Author: Klaas Freitag <freitag at owncloud.com>
Date: Wed Jan 27 14:10:52 2016 +0100
csync_update: Use the csync defines rather than plain numbers.
---
csync/src/csync_update.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/csync/src/csync_update.c b/csync/src/csync_update.c
index bd0a4c7..1a30c81 100644
--- a/csync/src/csync_update.c
+++ b/csync/src/csync_update.c
@@ -353,10 +353,12 @@ static int _csync_detect_update(CSYNC *ctx, const char *file,
}
/* translate the file type between the two stat types csync has. */
- if( tmp && tmp->type == 0 ) {
+ if( tmp && tmp->type == CSYNC_FTW_TYPE_FILE ) {
tmp_vio_type = CSYNC_VIO_FILE_TYPE_REGULAR;
- } else if( tmp && tmp->type == 2 ) {
+ } else if( tmp && tmp->type == CSYNC_FTW_TYPE_DIR) {
tmp_vio_type = CSYNC_VIO_FILE_TYPE_DIRECTORY;
+ } else if( tmp && tmp->type == CSYNC_FTW_TYPE_SLINK ) {
+ tmp_vio_type = CSYNC_VIO_FILE_TYPE_SYMBOLIC_LINK;
} else {
tmp_vio_type = CSYNC_VIO_FILE_TYPE_UNKNOWN;
}
--
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