Mercurial > dovecot > core-2.2
comparison src/auth/userinfo-passwd-file.c @ 902:5043e48c022f HEAD
':' -> '@' change was buggy
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 05 Jan 2003 11:23:13 +0200 |
parents | 7f41a4b33975 |
children | fd8888f6f037 |
comparison
equal
deleted
inserted
replaced
901:a225abf5f479 | 902:5043e48c022f |
---|---|
94 if (pu->realm != NULL) { | 94 if (pu->realm != NULL) { |
95 /* @UNSAFE: ':' -> '@' to make it look prettier */ | 95 /* @UNSAFE: ':' -> '@' to make it look prettier */ |
96 size_t pos; | 96 size_t pos; |
97 | 97 |
98 pos = (size_t) (pu->realm - (const char *) pu->user_realm); | 98 pos = (size_t) (pu->realm - (const char *) pu->user_realm); |
99 reply->virtual_user[pos] = '@'; | 99 reply->virtual_user[pos-1] = '@'; |
100 } | 100 } |
101 | 101 |
102 reply->chroot = pu->chroot; | 102 reply->chroot = pu->chroot; |
103 return TRUE; | 103 return TRUE; |
104 } | 104 } |