(kcm_ccache_new_client): make root be able to pass the name
authorLove Hörnquist Åstrand <lha@kth.se>
Sat, 21 Apr 2007 06:25:06 +0000 (06:25 +0000)
committerLove Hörnquist Åstrand <lha@kth.se>
Sat, 21 Apr 2007 06:25:06 +0000 (06:25 +0000)
constraints, not the opposite. From Bryan Jacobs.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20487 ec53bebd-3082-4978-b11e-865c3cabbd6b

kcm/client.c

index d61c849e1de639a491ffb4de6a75a059786427dd..fdc752cf64488f764ae82a411738a3f9008bd16b 100644 (file)
@@ -118,7 +118,7 @@ kcm_ccache_new_client(krb5_context context,
        }
 
        /* Allow root to create badly-named ccaches */
-       if (bad && CLIENT_IS_ROOT(client))
+       if (bad && !CLIENT_IS_ROOT(client))
            return KRB5_CC_BADNAME;
     }