]> arthur.barton.de Git - netatalk.git/blobdiff - etc/afpd/file.c
Fix fce merge conflict
[netatalk.git] / etc / afpd / file.c
index f7df604982f3b966f102d96125479c358f5952a4..8257d18b5fa115ecafea861bb11dbf855ee6bd6b 100644 (file)
@@ -47,6 +47,7 @@ char *strchr (), *strrchr ();
 #include "filedir.h"
 #include "globals.h"
 #include "unix.h"
 #include "filedir.h"
 #include "globals.h"
 #include "unix.h"
+#include "fce_api.h"
 
 /* the format for the finderinfo fields (from IM: Toolbox Essentials):
  * field         bytes        subfield    bytes
 
 /* the format for the finderinfo fields (from IM: Toolbox Essentials):
  * field         bytes        subfield    bytes
@@ -762,6 +763,9 @@ int afp_createfile(AFPObj *obj, char *ibuf, size_t ibuflen _U_, char *rbuf _U_,
     (void)get_id(vol, adp, &st, dir->d_did, upath, strlen(upath));
 
     ad_flush( adp);
     (void)get_id(vol, adp, &st, dir->d_did, upath, strlen(upath));
 
     ad_flush( adp);
+
+    fce_register_new_file(s_path);
+
     ad_close( adp, ADFLAGS_DF|ADFLAGS_HF );
 
 createfile_done:
     ad_close( adp, ADFLAGS_DF|ADFLAGS_HF );
 
 createfile_done: