mirror of
https://github.com/samba-team/samba.git
synced 2025-10-18 19:33:16 +03:00
s3:registry: make reg_delete_path() delete the path recursively.
Pair-Programmed-With: Gregor Beck <gbeck@sernet.de> (cherry picked from commit a56992ab71032b54d9879834c12f6b88e6174cb4)
This commit is contained in:
@@ -138,8 +138,8 @@ WERROR reg_create_path(TALLOC_CTX *mem_ctx, const char *orig_path,
|
||||
}
|
||||
|
||||
/*
|
||||
* Utility function to create a registry key without opening the hive
|
||||
* before. Will not delete a hive.
|
||||
* Utility function to recursively delete a registry key without opening the
|
||||
* hive before. Will not delete a hive.
|
||||
*/
|
||||
|
||||
WERROR reg_delete_path(const struct security_token *token,
|
||||
@@ -171,7 +171,7 @@ WERROR reg_delete_path(const struct security_token *token,
|
||||
return err;
|
||||
}
|
||||
|
||||
err = reg_deletekey(hive, p+1);
|
||||
err = reg_deletekey_recursive(hive, p+1);
|
||||
SAFE_FREE(path);
|
||||
TALLOC_FREE(hive);
|
||||
return err;
|
||||
|
Reference in New Issue
Block a user