1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-03 13:47:25 +03:00

r23507: Split one general function normalize_dbkey from reg_db.c into util_reg.c

(To be used in other place in subsequent commit.)

Michael
(This used to be commit 6fd71140499e30b8fd0f083301512db7b8c2f236)
This commit is contained in:
Michael Adam 2007-06-15 15:51:45 +00:00 committed by Gerald (Jerry) Carter
parent 9bb19474d7
commit 43d59b7d42
2 changed files with 7 additions and 7 deletions

View File

@ -110,3 +110,10 @@ WERROR reg_pull_multi_sz(TALLOC_CTX *mem_ctx, const void *buf, size_t len,
return WERR_OK;
}
void normalize_dbkey(char *key)
{
size_t len = strlen(key);
string_sub(key, "\\", "/", len+1);
strupper_m(key);
}

View File

@ -697,13 +697,6 @@ BOOL regdb_store_values( const char *key, REGVAL_CTR *values )
return ret != -1 ;
}
void normalize_dbkey(char *key)
{
size_t len = strlen(key);
string_sub(key, "\\", "/", len+1);
strupper_m(key);
}
static WERROR regdb_get_secdesc(TALLOC_CTX *mem_ctx, const char *key,
struct security_descriptor **psecdesc)
{