Blame SOURCES/cups-kerberos.patch

0f9b4c
diff --git a/backend/ipp.c b/backend/ipp.c
0f9b4c
index f8bf7e1..8440d2f 100644
0f9b4c
--- a/backend/ipp.c
0f9b4c
+++ b/backend/ipp.c
0f9b4c
@@ -422,8 +422,7 @@ main(int  argc,				/* I - Number of command-line args */
0f9b4c
   * that way.
0f9b4c
   */
0f9b4c
 
0f9b4c
-  if (!getuid() && (value = getenv("AUTH_UID")) != NULL &&
0f9b4c
-      !getenv("AUTH_PASSWORD"))
0f9b4c
+  if (!getuid() && (value = getenv("AUTH_UID")) != NULL)
0f9b4c
   {
0f9b4c
     uid_t	uid = (uid_t)atoi(value);
0f9b4c
 					/* User ID */
0f9b4c
@@ -457,7 +456,7 @@ main(int  argc,				/* I - Number of command-line args */
0f9b4c
 
0f9b4c
 #  else /* No XPC, just try to run as the user ID */
0f9b4c
     if (uid > 0)
0f9b4c
-      seteuid(uid);
0f9b4c
+      setuid(uid);
0f9b4c
 #  endif /* HAVE_XPC */
0f9b4c
   }
0f9b4c
 #endif /* HAVE_GSSAPI */