1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00

idmap: Fix whitespace

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke 2023-01-24 11:03:28 +01:00 committed by Jeremy Allison
parent 2bea8a80e5
commit 0c6ac3218d
2 changed files with 8 additions and 8 deletions

View File

@ -1,4 +1,4 @@
/*
/*
Unix SMB/CIFS implementation.
idmap TDB backend
@ -376,7 +376,7 @@ done:
**********************************************************************/
/*****************************
Initialise idmap database.
Initialise idmap database.
*****************************/
static NTSTATUS idmap_tdb_db_init(struct idmap_domain *dom)

View File

@ -1,4 +1,4 @@
/*
/*
Unix SMB/CIFS implementation.
idmap TDB2 backend, used for clustered Samba setups.
@ -263,7 +263,7 @@ static NTSTATUS idmap_tdb2_script(struct idmap_tdb2_context *ctx, struct id_map
unsigned long v;
cmd = talloc_asprintf(ctx, "%s ", ctx->script);
NT_STATUS_HAVE_NO_MEMORY(cmd);
NT_STATUS_HAVE_NO_MEMORY(cmd);
va_start(ap, fmt);
cmd = talloc_vasprintf_append(cmd, fmt, ap);
@ -289,12 +289,12 @@ static NTSTATUS idmap_tdb2_script(struct idmap_tdb2_context *ctx, struct id_map
map->xid.type = ID_TYPE_UID;
} else if (sscanf(line, "GID:%lu", &v) == 1) {
map->xid.id = v;
map->xid.type = ID_TYPE_GID;
map->xid.type = ID_TYPE_GID;
} else if (strncmp(line, "SID:S-", 6) == 0) {
if (!string_to_sid(map->sid, &line[4])) {
DEBUG(0,("Bad SID in '%s' from idmap script %s\n",
line, ctx->script));
return NT_STATUS_NONE_MAPPED;
return NT_STATUS_NONE_MAPPED;
}
} else {
DEBUG(0,("Bad reply '%s' from idmap script %s\n",
@ -308,7 +308,7 @@ static NTSTATUS idmap_tdb2_script(struct idmap_tdb2_context *ctx, struct id_map
/*
Single id to sid lookup function.
Single id to sid lookup function.
*/
static NTSTATUS idmap_tdb2_id_to_sid(struct idmap_domain *dom, struct id_map *map)
{
@ -407,7 +407,7 @@ done:
/*
Single sid to id lookup function.
Single sid to id lookup function.
*/
static NTSTATUS idmap_tdb2_sid_to_id(struct idmap_domain *dom, struct id_map *map)
{