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 4ab4b2e..bf40bc9 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;
                }