]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
multiple-local-realms-20070105
authorDerrick Brashear <shadow@dementia.org>
Fri, 5 Jan 2007 23:05:13 +0000 (23:05 +0000)
committerDerrick Brashear <shadow@dementia.org>
Fri, 5 Jan 2007 23:05:13 +0000 (23:05 +0000)
FIXES 51104

do the correct check

src/audit/audit.c
src/auth/userok.c
src/viced/host.c

index c0f767baa69b766b9a15aad18953e562d85be65f..2dfd5d2696f4781f4055377c3b0bd4442e3f90df 100644 (file)
@@ -457,7 +457,7 @@ osi_auditU(struct rx_call *call, char *audEvent, int errCode, ...)
                                    break;
                            }
 
-                           if (i=0)
+                           if (i == 0)
                                strncpy(local_realms[0], "UNKNOWN.LOCAL.REALM", AFS_REALM_SZ);
                            num_lrealms = i;
                         }
index b37385f0aac7aaa557eb57e3b35e337efeb5f107..5b4a1ed3fa2075d7af9520fb79bff9cfadbd2d63 100644 (file)
@@ -448,7 +448,7 @@ afsconf_SuperUser(adir, acall, namep)
                    break;
            }
 
-           if (i=0) {
+           if (i == 0) {
                strncpy(lrealms[0], lcell, AFS_REALM_SZ);
                num_lrealms = 1;
            } else {
index 80f8e8212954f3d9f1479981d72da94f04bc49da..d156f7bca48dc65608f95162cea3621ebc29e769 100644 (file)
@@ -1698,7 +1698,7 @@ h_InitHostPackage()
                break;
        }
 
-       if (i=0) {
+       if (i == 0) {
            ViceLog(0,
                    ("afs_krb_get_lrealm failed, using %s.\n",
                     localcellname));