]> arthur.barton.de Git - netatalk.git/commitdiff
Update did for moved stuff
authorFrank Lahm <franklahm@googlemail.com>
Fri, 25 Mar 2011 12:47:23 +0000 (13:47 +0100)
committerFrank Lahm <franklahm@googlemail.com>
Fri, 25 Mar 2011 12:47:23 +0000 (13:47 +0100)
etc/afpd/filedir.c

index c16ba484e34cf3c17e470c08af057a450d4878d5..c38864e4ec24b2eff9fc0ebd1cbed3380cc4d3ed 100644 (file)
@@ -472,6 +472,13 @@ static int moveandrename(const struct vol *vol,
             (void)dir_remove(vol, cacheddir);
         }
 
+        /* Fixup adouble info */
+        if (!ad_metadata(oldunixname, adflags, adp)) {
+            ad_setid(adp, st->st_dev, st->st_ino, id, curdir->d_did, vol->v_stamp);
+            ad_flush(adp);
+            ad_close_metadata( adp);
+        }
+
         /* fix up the catalog entry */
         cnid_update(vol->v_cdb, id, st, curdir->d_did, upath, strlen(upath));
     }