]> andersk Git - moira.git/commitdiff
Fix a bug where having USER:foo and KERBEROS:foo@ATHENA.MIT.EDU on the same
authordanw <danw>
Wed, 17 Sep 1997 16:59:52 +0000 (16:59 +0000)
committerdanw <danw>
Wed, 17 Sep 1997 16:59:52 +0000 (16:59 +0000)
ACL would cause internal errors and `permission denied' to the user.

server/qrtn.pc

index c5fc6765b457373ea7c63b29e70315760829e4db..0f1a8b8913584767d8d182b0e88b9520f69327db 100644 (file)
@@ -577,7 +577,8 @@ int find_member(list_type, list_id, cl)
     flag = 0;
     users_id = cl->users_id;
     client_id = -cl->client_id;
-    EXEC SQL SELECT member_id INTO :flag FROM imembers WHERE list_id = :list_id
+    EXEC SQL SELECT COUNT(member_id) INTO :flag FROM imembers
+       WHERE list_id = :list_id
        AND ( ( member_type = 'USER' AND member_id = :users_id )
              OR (member_type = 'KERBEROS' AND member_id = :client_id ) );
     if (sqlca.sqlcode == 0)
This page took 0.044572 seconds and 5 git commands to generate.