Mercurial > dovecot > original-hg > dovecot-1.2
changeset 6176:0f6d4f8dd587 HEAD
Use authunix_create_default() with rquota. Patch by Steven Luo.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 06 Aug 2007 18:25:30 +0300 |
parents | 6c3788e03f7e |
children | abec53314897 |
files | src/plugins/quota/quota-fs.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/plugins/quota/quota-fs.c Mon Aug 06 18:24:11 2007 +0300 +++ b/src/plugins/quota/quota-fs.c Mon Aug 06 18:25:30 2007 +0300 @@ -231,6 +231,10 @@ return -1; } + /* Establish some RPC credentials */ + auth_destroy(cl->cl_auth); + cl->cl_auth = authunix_create_default(); + /* make the rquota call on the remote host */ args.gqa_pathp = path; args.gqa_uid = root->uid; @@ -243,6 +247,7 @@ timeout); /* the result has been deserialized, let the client go */ + auth_destroy(cl->cl_auth); clnt_destroy(cl); if (call_status != RPC_SUCCESS) {