]> arthur.barton.de Git - netatalk.git/blobdiff - etc/afpd/dircache.c
Fix data corruption bug
[netatalk.git] / etc / afpd / dircache.c
index d3b8b6fc5fea30c64fefe9da4ec7d259fa9c15c4..7cd08f6f4ec5182a356447306d5ddfa8baa4f173 100644 (file)
@@ -557,7 +557,7 @@ void dircache_remove(const struct vol *vol _U_, struct dir *dir, int flags)
  * - a DID/name index on the main dircache
  * - a queue index on the dircache
  *
- * @param size   (r) requested maximum size from afpd.conf
+ * @param size   (r) requested maximum size from afp.conf
  *
  * @return 0 on success, -1 on error
  */
@@ -693,5 +693,6 @@ void dircache_dump(void)
 
     fprintf(dump, "\n");
     fflush(dump);
+    fclose(dump);
     return;
 }