# HG changeset patch # User Timo Sirainen # Date 1186413930 -10800 # Node ID 0f6d4f8dd587fb1439b7b6799e16e235faf6a504 # Parent 6c3788e03f7e25ea2fae4f568e006e824ba85687 Use authunix_create_default() with rquota. Patch by Steven Luo. diff -r 6c3788e03f7e -r 0f6d4f8dd587 src/plugins/quota/quota-fs.c --- 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) {