Coda File System

Re: Authentication problems

From: Jan Harkes <jaharkes_at_cs.cmu.edu>
Date: Tue, 3 Oct 2000 11:10:04 -0400
On Tue, Oct 03, 2000 at 01:49:48PM +1100, Herbert Xu wrote:
> I've just run into the "RPC2_Bind() --> RPC2_NOBINDING (F)" problem with
> the Debian coda packages.  I got around it with the following patch.  Is
> this the correct fix?

No, the following is, (cut & paste job, whitespace might be wrong)
I caught the bug about a week ago when "boris" from germany suprised me
with the rpc2 debug output of clog while the problem hit.

Jan

===================================================================
RCS file: /afs/cs/project/coda-src/cvs/rpc2/rpc2-src/sl.c,v
retrieving revision 4.17
retrieving revision 4.20
diff -u -u -r4.17 -r4.20
--- sl.c        2000/01/31 22:23:21     4.17
+++ sl.c        2000/10/02 15:42:04     4.20
@@ -177,7 +177,9 @@
                ce = FindOrNak(pb);
                if (ce == NULL) 
                        return;
-               if (!TestState(ce, SERVER, S_AWAITINIT3))
+               if (!TestState(ce, CLIENT, C_AWAITINIT2) &&
+                   !TestState(ce, SERVER, S_AWAITINIT3) &&
+                   !TestState(ce, CLIENT, C_AWAITINIT4))
                        rpc2_ApplyD(pb,  ce);
        }
 
Received on 2000-10-03 11:11:53