Make it a error when the file cannot be created

Mark it a an error when the file cannot be created because the folder
cannot be created.

Should display errors on windows if the file is too long
This commit is contained in:
Olivier Goffart 2012-12-19 15:08:32 +01:00
parent 97e0e75ae2
commit de87ed2d31

View file

@ -265,8 +265,7 @@ static int _csync_push_file(CSYNC *ctx, csync_file_stat_t *st) {
/* we're looping */
CSYNC_LOG(CSYNC_LOG_PRIORITY_WARN,
"dir: %s, loop in mkdir detected!", tdir);
rc = 0;
st->instruction = CSYNC_INSTRUCTION_IGNORE;
rc = 1;
goto out;
}
SAFE_FREE(prev_tdir);