X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=netatalk.git;a=blobdiff_plain;f=etc%2Fafpd%2Ffce_api.c;fp=etc%2Fafpd%2Ffce_api.c;h=23991febd0b05dcde8c195abcf1751e8cd25230a;hp=69458f08b490419648a9f1f27ff124173843b424;hb=080aff015fa627cab032d6009ff3b27e7c2a46d6;hpb=7ff88627be9a15a9da5d58279767d953ebf9e124 diff --git a/etc/afpd/fce_api.c b/etc/afpd/fce_api.c index 69458f08..23991feb 100644 --- a/etc/afpd/fce_api.c +++ b/etc/afpd/fce_api.c @@ -513,24 +513,15 @@ int fce_register_new_file( struct path *path ) 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(vol->v_obj)))) - { - return AFPERR_MISC; - } - - ret = register_fce( u_name, false, FCE_FILE_MODIFY ); + ret = register_fce(of_name(ofork), false, FCE_FILE_MODIFY ); return ret; }