]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
bitwise-or-20051005
authorJose Nazario <jose@monkey.org>
Thu, 5 Oct 2006 16:34:29 +0000 (16:34 +0000)
committerJim Rees <rees@umich.edu>
Thu, 5 Oct 2006 16:34:29 +0000 (16:34 +0000)
bitwise and, not logical for p->flags in vnode_stop
reported by Jose Nazario

src/tests/pathname.c

index dafc48ebd76c11f1824fd9b21a3b9d4c466bff6a..9238f1277764f0fa8c5947a51408628420fa4ca8 100644 (file)
@@ -122,7 +122,7 @@ vnode_stop(afs_vnode * v, XFILE * X, void *refcon)
     int r;
 
     /* If the file is seekable, try to position so we can pick up later... */
-    if (phi->p->flags && DSFLAG_SEEK)
+    if (phi->p->flags & DSFLAG_SEEK)
        if (r = xfseek(X, &v->offset))
            return r;
     return DSERR_DONE;