Check if the file id method exists in the vio plugin.

This commit is contained in:
Klaas Freitag 2012-08-29 13:34:21 +03:00
parent 3950b18dc7
commit ae94ce7430

View file

@ -550,9 +550,12 @@ int csync_vio_rmdir(CSYNC *ctx, const char *uri) {
const char *csync_vio_file_id(CSYNC *ctx, const char *path)
{
const char *re;
const char *re = NULL;
/* We always use the remote method here. */
if(ctx->module.method &&
VIO_METHOD_HAS_FUNC(ctx->module.method, get_file_id)) {
re = ctx->module.method->get_file_id(path);
}
return re;
}