[OpenAFS-devel] bad call to fakestat in flock

Pavel Semerad semerad@ss1000.ms.mff.cuni.cz
Tue, 9 Apr 2002 17:18:14 +0200


Hi,
afs_EvalFakeStat is called with wrong order of arguments (why there are no
prototypes ?) in afs_vnop_flock.c:

--- src/afs/VNOPS/afs_vnop_flock.c Apr 2002 09:53:22 -0000      1.1.1.14
+++ src/afs/VNOPS/afs_vnop_flock.c Apr 2002 15:10:06 -0000      1.17
@@ -508,7 +515,7 @@ struct AFS_UCRED *acred; {
     AFS_STATCNT(afs_lockctl);
     if (code = afs_InitReq(&treq, acred)) return code;
     afs_InitFakeStat(&fakestate);
-    code = afs_EvalFakeStat(&fakestate, &avc, &treq);
+    code = afs_EvalFakeStat(&avc, &fakestate, &treq);
     if (code) {
        afs_PutFakeStat(&fakestate);
        return code;


Pavel Semerad