char *basedir;
char *mount_point;
char *rel_connectpath; /* share root, relative to the basedir */
+ char *snapshot_basepath; /* the absolute version of snapdir */
};
static bool shadow_copy2_find_slashes(TALLOC_CTX *mem_ctx, const char *str,
"Disabling it.\n"));
config->crossmountpoints = false;
}
+
+ config->snapshot_basepath = config->snapdir;
+ } else {
+ config->snapshot_basepath = talloc_asprintf(config, "%s/%s",
+ config->mount_point, config->snapdir);
+ if (config->snapshot_basepath == NULL) {
+ DEBUG(0, ("talloc_asprintf() failed\n"));
+ errno = ENOMEM;
+ return -1;
+ }
}
SMB_VFS_HANDLE_SET_DATA(handle, config,