#include <arpa/inet.h>
#include <netdb.h>
-#include <netatalk/at.h>
-
#include <atalk/adouble.h>
#include <atalk/vfs.h>
#include <atalk/logger.h>
int fce_register_file_modification( struct ofork *ofork )
{
- char *u_name = NULL;
- struct vol *vol;
int ret = AFP_OK;
- if (ofork == NULL || ofork->of_vol == NULL)
+ if (ofork == NULL)
return AFPERR_PARAM;
if (!(fce_ev_enabled & (1 << FCE_FILE_MODIFY)))
return ret;
- vol = ofork->of_vol;
-
- if (NULL == (u_name = mtoupath(vol, of_name(ofork), ofork->of_did, utf8_encoding())))
- {
- return AFPERR_MISC;
- }
-
- ret = register_fce( u_name, false, FCE_FILE_MODIFY );
+ ret = register_fce(of_name(ofork), false, FCE_FILE_MODIFY );
return ret;
}
fce_ev_enabled = 0;
- for (p = strtok(e, ","); p; p = strtok(NULL, ",")) {
+ for (p = strtok(e, ", "); p; p = strtok(NULL, ", ")) {
if (strcmp(p, "fmod") == 0) {
fce_ev_enabled |= (1 << FCE_FILE_MODIFY);
} else if (strcmp(p, "fdel") == 0) {
}
free(e);
+
+ return AFP_OK;
}
#ifdef FCE_TEST_MAIN