]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
Use 65534 instead of -2 in svcgssd_proc.c
authorNeil Brown <neilb@suse.de>
Thu, 6 Jul 2006 02:28:33 +0000 (12:28 +1000)
committerNeil Brown <neilb@suse.de>
Thu, 6 Jul 2006 02:28:33 +0000 (12:28 +1000)
as this is more consistant across achitectures.

utils/gssd/svcgssd_proc.c

index 4ab4b2e48a261c01f797ae7687559963e5ce3c10..bf40bc98bbb03004e8d91dee33264fdcf8f0f227 100644 (file)
@@ -226,10 +226,9 @@ get_ids(gss_name_t client_name, gss_OID mech, struct svc_cred *cred)
                 * mapping.
                 */
                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 = 65534;   /* XXX */
+                       cred->cr_gid = 65534;   /* XXX */
+                       cred->cr_ngroups = 0;
                        res = 0;
                        goto out_free;
                }