Improve snapshot fallback warning messages to inform users of reduced recovery capability if files changed since the last sync

This commit is contained in:
Andrea Mazzoleni 2026-08-25 22:39:56 +02:00
parent 31fc380609
commit abcdd688dd
2 changed files with 9 additions and 5 deletions

View file

@ -434,7 +434,7 @@ static int windows_rebuild_link(const struct fssnapshot_struct* fss, const char*
/* if no device path, assume snapshot absent */
if (device_path[0] == 0) {
log_error(0, "WARNING! Snapshot '%s' DeviceObject lost or removed externally.\n", name);
log_error(ENOENT, "WARNING! Snapshot '%s' DeviceObject lost or removed externally.\n", name);
/* remove stale links */
windows_rmdir(guid_link);
windows_rmdir(link_path);