mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 10:51:54 -04:00
Document why invalid GUID validation in fssnapshot_create returns immediately without WMI cleanup
This commit is contained in:
parent
e44fb81da2
commit
4defb748e8
1 changed files with 1 additions and 0 deletions
|
|
@ -541,6 +541,7 @@ int fssnapshot_create(const struct fssnapshot_struct* fss, const char* name)
|
|||
|
||||
const char* guid = out + 3;
|
||||
|
||||
/* do not jump to bail_and_delete if GUID is invalid because an unvalidated GUID cannot be safely used in a WMI query */
|
||||
if (windows_guid_is_valid(guid, strlen(guid)) != 0) {
|
||||
errno = EINVAL;
|
||||
log_error(errno, "Invalid GUID received from VSS shadow copy creation: '%s'\n", guid);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue