diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2022-04-26 07:10:56 +0200 |
---|---|---|
committer | Jule Anger <janger@samba.org> | 2022-04-28 08:00:14 +0000 |
commit | 80d3e7d45c8b3b3402bf778070cadc3325ddc441 (patch) | |
tree | ca292361c350bee207f54b94b5dddf3fcf174b11 | |
parent | b444d0f7feef430dbcbbcbc626bf988ab867c2b8 (diff) | |
download | samba-80d3e7d45c8b3b3402bf778070cadc3325ddc441.tar.gz |
s3:passdb: Remove trailing spaces in lookup_sid.c
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15054
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit 756cd0eed30322ae6dbd5402ec11441387475884)
-rw-r--r-- | source3/passdb/lookup_sid.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/source3/passdb/lookup_sid.c b/source3/passdb/lookup_sid.c index a551bcfd24a..3a28cdc68a6 100644 --- a/source3/passdb/lookup_sid.c +++ b/source3/passdb/lookup_sid.c @@ -1,4 +1,4 @@ -/* +/* Unix SMB/CIFS implementation. uid/user handling Copyright (C) Andrew Tridgell 1992-1998 @@ -72,7 +72,7 @@ static bool lookup_unix_group_name(const char *name, struct dom_sid *sid) If an explicit domain name was given in the form domain\user, it has to try that. If no explicit domain name was given, we have to do guesswork. -*****************************************************************/ +*****************************************************************/ bool lookup_name(TALLOC_CTX *mem_ctx, const char *full_name, int flags, @@ -300,7 +300,7 @@ bool lookup_name(TALLOC_CTX *mem_ctx, goto ok; } - /* 6. Builtin aliases */ + /* 6. Builtin aliases */ if ((flags & LOOKUP_NAME_BUILTIN) && lookup_builtin_name(name, &rid)) @@ -882,7 +882,7 @@ NTSTATUS lookup_sids(TALLOC_CTX *mem_ctx, int num_sids, } /* First build up the data structures: - * + * * dom_infos is a list of domains referenced in the list of * SIDs. Later we will walk the list of domains and look up the RIDs * in bulk. @@ -1070,7 +1070,7 @@ NTSTATUS lookup_sids(TALLOC_CTX *mem_ctx, int num_sids, /***************************************************************** *THE CANONICAL* convert SID to name function. -*****************************************************************/ +*****************************************************************/ bool lookup_sid(TALLOC_CTX *mem_ctx, const struct dom_sid *sid, const char **ret_domain, const char **ret_name, @@ -1104,7 +1104,7 @@ bool lookup_sid(TALLOC_CTX *mem_ctx, const struct dom_sid *sid, goto done; } - if ((ret_name != NULL) && + if ((ret_name != NULL) && !(*ret_name = talloc_strdup(mem_ctx, name->name))) { goto done; } @@ -1130,7 +1130,7 @@ bool lookup_sid(TALLOC_CTX *mem_ctx, const struct dom_sid *sid, /***************************************************************** *THE LEGACY* convert SID to id function. -*****************************************************************/ +*****************************************************************/ static bool legacy_sid_to_unixid(const struct dom_sid *psid, struct unixid *id) { @@ -1465,7 +1465,7 @@ fail: /***************************************************************** *THE CANONICAL* convert SID to uid function. -*****************************************************************/ +*****************************************************************/ bool sid_to_uid(const struct dom_sid *psid, uid_t *puid) { @@ -1527,7 +1527,7 @@ bool sid_to_uid(const struct dom_sid *psid, uid_t *puid) /***************************************************************** *THE CANONICAL* convert SID to gid function. Group mapping is used for gids that maps to Wellknown SIDs -*****************************************************************/ +*****************************************************************/ bool sid_to_gid(const struct dom_sid *psid, gid_t *pgid) { |