summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2006-09-12 18:02:33 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:51:23 -0500
commitbad8c0d6f15990b8de6e9ff6dc79628c67eba187 (patch)
tree1d212f1dd960feacf3713a0cb811b55a934d7503
parent59e5149d8f7972654b17f4eafd8d664fe2bffcde (diff)
downloadsamba-bad8c0d6f15990b8de6e9ff6dc79628c67eba187.tar.gz
samba-bad8c0d6f15990b8de6e9ff6dc79628c67eba187.tar.bz2
samba-bad8c0d6f15990b8de6e9ff6dc79628c67eba187.zip
r18429: fix a regression renaming local group introduced by trying to handle renames to the same name
(This used to be commit 4faa5004fb7e5814bf8a97cfe8d0b443f0acdb8d)
-rw-r--r--source3/rpc_server/srv_samr_nt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/rpc_server/srv_samr_nt.c b/source3/rpc_server/srv_samr_nt.c
index a0b6d4763a..822a6a2ab7 100644
--- a/source3/rpc_server/srv_samr_nt.c
+++ b/source3/rpc_server/srv_samr_nt.c
@@ -4638,6 +4638,8 @@ NTSTATUS _samr_set_aliasinfo(pipes_struct *p, SAMR_Q_SET_ALIASINFO *q_u, SAMR_R_
if ( strequal( acct_name, info.acct_name ) )
return NT_STATUS_OK;
+ fstrcpy( info.acct_name, acct_name );
+
/* make sure the name doesn't already exist as a user
or local group */