summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2008-01-18 08:39:47 +0100
committerStefan Metzmacher <metze@samba.org>2008-01-21 13:15:10 +0100
commit2b9ed4700ad42e627919dc372adcb5b5188e9fa0 (patch)
tree8251bf5dcbd567b16d7c7014c9f269d5b0837b75 /source3
parent99dfd664881f92dd1972f872c7471c5665869b86 (diff)
downloadsamba-2b9ed4700ad42e627919dc372adcb5b5188e9fa0.tar.gz
samba-2b9ed4700ad42e627919dc372adcb5b5188e9fa0.tar.bz2
samba-2b9ed4700ad42e627919dc372adcb5b5188e9fa0.zip
winbindd: remove useless strcpy
metze (This used to be commit df08708fc1e8fc8e15b36db29faf35ae5ae64b65)
Diffstat (limited to 'source3')
-rw-r--r--source3/winbindd/winbindd_pam.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/source3/winbindd/winbindd_pam.c b/source3/winbindd/winbindd_pam.c
index 0c75cb17a9..98c9ae2ffe 100644
--- a/source3/winbindd/winbindd_pam.c
+++ b/source3/winbindd/winbindd_pam.c
@@ -31,8 +31,6 @@ static NTSTATUS append_info3_as_txt(TALLOC_CTX *mem_ctx,
struct winbindd_cli_state *state,
NET_USER_INFO_3 *info3)
{
- fstring str_sid;
-
state->response.data.auth.info3.logon_time =
nt_time_to_unix(info3->logon_time);
state->response.data.auth.info3.logoff_time =
@@ -51,8 +49,7 @@ static NTSTATUS append_info3_as_txt(TALLOC_CTX *mem_ctx,
state->response.data.auth.info3.user_rid = info3->user_rid;
state->response.data.auth.info3.group_rid = info3->group_rid;
- sid_to_fstring(str_sid, &(info3->dom_sid.sid));
- fstrcpy(state->response.data.auth.info3.dom_sid, str_sid);
+ sid_to_fstring(state->response.data.auth.info3.dom_sid, &(info3->dom_sid.sid));
state->response.data.auth.info3.num_groups = info3->num_groups;
state->response.data.auth.info3.user_flgs = info3->user_flgs;