]> arthur.barton.de Git - netatalk.git/commitdiff
Fork locking
authorFrank Lahm <franklahm@googlemail.com>
Sun, 22 Jan 2012 07:52:59 +0000 (08:52 +0100)
committerFrank Lahm <franklahm@googlemail.com>
Sun, 22 Jan 2012 07:52:59 +0000 (08:52 +0100)
etc/afpd/fork.c

index df6a2d8a4781208a53c6a26cb00606cdf6ea2f1c..bb760cc474739ec84f980770187365e922a12325 100644 (file)
@@ -443,9 +443,7 @@ int afp_openfork(AFPObj *obj _U_, char *ibuf, size_t ibuflen _U_, char *rbuf, si
      */
 
     /* don't try to lock non-existent rforks. */
-    if ((eid == ADEID_DFORK)
-        || (ad_meta_fileno(ofork->of_ad) != -1)
-        || (vol->v_adouble & AD_VERSION_EA)) { /* META */
+    if ((eid == ADEID_DFORK) || (ad_reso_fileno(ofork->of_ad) != -1)) {
 
         ret = fork_setmode(ofork->of_ad, eid, access, ofrefnum);
         /* can we access the fork? */