]> arthur.barton.de Git - netatalk.git/commitdiff
Remove cachedfile, nor dit from dircache, stupid
authorFrank Lahm <franklahm@googlemail.com>
Sun, 26 Sep 2010 13:29:05 +0000 (15:29 +0200)
committerFrank Lahm <franklahm@googlemail.com>
Sun, 26 Sep 2010 13:29:05 +0000 (15:29 +0200)
etc/afpd/filedir.c

index bf3a8c0681c1fea7b5ab371ef53a923923716998..74bbd2e897b64f364c5bad6e5c7b61fe51b9694e 100644 (file)
@@ -585,7 +585,7 @@ int afp_delete(AFPObj *obj, char *ibuf, size_t ibuflen _U_, char *rbuf _U_, size
 
             struct dir *cachedfile;
             if (cachedfile = dircache_search_by_name(vol, dir, upath, strlen(upath))) {
-                dircache_remove(vol, dir, DIRCACHE | DIDNAME_INDEX | QUEUE_INDEX);
+                dircache_remove(vol, cachedfile, DIRCACHE | DIDNAME_INDEX | QUEUE_INDEX);
                 dir_free(cachedfile);
             }
         }