X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=etc%2Fafpd%2Fofork.c;h=5d3c48bc05c6479724788f324040e1c0448ec19e;hb=33f44ea7f93b30678659d7e50b23c5056991dfd0;hp=49c014ccef9befec7be7f15068e5c7039e757139;hpb=28a45cbdf751264d881cd17e54f810f8d1a68b68;p=netatalk.git diff --git a/etc/afpd/ofork.c b/etc/afpd/ofork.c index 49c014cc..5d3c48bc 100644 --- a/etc/afpd/ofork.c +++ b/etc/afpd/ofork.c @@ -26,6 +26,7 @@ #include "volume.h" #include "directory.h" #include "fork.h" +#include "fce_api.h" /* we need to have a hashed list of oforks (by dev inode). just hash * by first letter. */ @@ -454,6 +455,12 @@ int of_closefork(struct ofork *ofork) } } } + + /* Somone has used write_fork, we assume file was changed, register it to file change event api */ + if (ofork->of_flags & AFPFORK_MODIFIED) { + fce_register_file_modification(ofork); + } + ret = 0; if ( ad_close( ofork->of_ad, adflags ) < 0 ) { ret = -1;