From 7ddfa79950d76316b4914daf7636b098f6c10a8d Mon Sep 17 00:00:00 2001 From: Klaas Freitag Date: Wed, 27 Jan 2016 14:10:52 +0100 Subject: [PATCH] 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 bd0a4c73b..1a30c81aa 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; } -- 2.30.2