--- a/dav/sync.c Tue Sep 17 21:06:03 2019 +0200 +++ b/dav/sync.c Tue Sep 17 21:21:36 2019 +0200 @@ -2683,8 +2683,8 @@ if(!sys_stat(file_path, &targetstat)) { res->isdirectory = S_ISDIR(targetstat.st_mode); - int nofollowextern = (dir->symlink & SYNC_SYMLINK_EXTERN_NOFOLLOW) == SYNC_SYMLINK_EXTERN_NOFOLLOW; - int nofollowintern = (dir->symlink & SYNC_SYMLINK_INTERN_NOFOLLOW) == SYNC_SYMLINK_INTERN_NOFOLLOW; + int nofollowextern = (dir->symlink & SYNC_SYMLINK_IGNORE_EXTERN) == SYNC_SYMLINK_IGNORE_EXTERN; + int nofollowintern = (dir->symlink & SYNC_SYMLINK_IGNORE_INTERN) == SYNC_SYMLINK_IGNORE_INTERN; if(isintern && nofollowintern) { skip_file = TRUE; } else if(!isintern && nofollowextern) {