X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=utils%2Fgssd%2Fsvcgssd_proc.c;h=79813990c518c2dca579aaceded088e15ee08106;hp=4ab4b2e48a261c01f797ae7687559963e5ce3c10;hb=7194d7d6320736c14f40d31c3738d40f3119ead5;hpb=acae444246635ec2ca8990d53e685c9062d73091 diff --git a/utils/gssd/svcgssd_proc.c b/utils/gssd/svcgssd_proc.c index 4ab4b2e..7981399 100644 --- a/utils/gssd/svcgssd_proc.c +++ b/utils/gssd/svcgssd_proc.c @@ -224,12 +224,14 @@ get_ids(gss_name_t client_name, gss_OID mech, struct svc_cred *cred) * -ENOENT means there was no mapping, any other error * value means there was an error trying to do the * mapping. + * If there was no mapping, we send down the value -1 + * to indicate that the anonuid/anongid for the export + * should be used. */ if (res == -ENOENT) { - cred->cr_uid = -2; /* XXX */ - cred->cr_gid = -2; /* XXX */ - cred->cr_groups[0] = -2;/* XXX */ - cred->cr_ngroups = 1; + cred->cr_uid = -1; + cred->cr_gid = -1; + cred->cr_ngroups = 0; res = 0; goto out_free; }