summaryrefslogtreecommitdiff
path: root/libds/common/flag_mapping.h
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2013-04-05 14:07:37 +0200
committerGünther Deschner <gd@samba.org>2013-04-09 14:34:38 +0200
commitb7c0330b7429ce1b9cda8b1c2446b3a21cbd29db (patch)
tree068616f2662f60c59f41c15db2c9011e080ab6e7 /libds/common/flag_mapping.h
parent243278a2c5ec29c153fa7d66678452a97e6edbc0 (diff)
downloadsamba-b7c0330b7429ce1b9cda8b1c2446b3a21cbd29db.tar.gz
samba-b7c0330b7429ce1b9cda8b1c2446b3a21cbd29db.tar.bz2
samba-b7c0330b7429ce1b9cda8b1c2446b3a21cbd29db.zip
BUG 9139: Fix the username map optimization.
If we successfully map a user. We call set_last_from_to(user_in, unixname); in the while loop reading the map file. After a successfull map we don't stop and continue the loop to check all other mappings in the username mapfile. But when we hit the end of the file and leave the loop we call: set_last_from_to(user_in, user_in); This overwrites the successful mapping, and the next time we call map_username() we skip the username and no mapping is done. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Günther Deschner <gd@samba.org>
Diffstat (limited to 'libds/common/flag_mapping.h')
0 files changed, 0 insertions, 0 deletions