X-Git-Url: https://arthur.barton.de/gitweb/?a=blobdiff_plain;f=etc%2Fafpd%2Ffile.c;h=e48afe213896e67c0595bad9027b2d647b688c6e;hb=f0d8ae7e26bbc6eb0bfc55748aa8ef83c1bc54dc;hp=f62e05eeb7f52bd6cc5b10e787559aedf8e152e1;hpb=3a43b6ca05ec2b8f0494f8619a82d25204b7b457;p=netatalk.git diff --git a/etc/afpd/file.c b/etc/afpd/file.c index f62e05ee..e48afe21 100644 --- a/etc/afpd/file.c +++ b/etc/afpd/file.c @@ -92,6 +92,7 @@ void *get_finderinfo(const struct vol *vol, const char *upath, struct adouble *a } else { memcpy(data, ufinderi, ADEDLEN_FINDERI); + chk_ext = 1; if (vol_inv_dots(vol) && *upath == '.') { /* make it invisible */ uint16_t ashort; @@ -334,6 +335,7 @@ int getmetadata(const AFPObj *obj, || (bconchar(fullpath, '/') != BSTR_OK) || (bcatcstr(fullpath, upath)) != BSTR_OK) { LOG(log_error, logtype_afpd, "getmetadata: fullpath: %s", strerror(errno)); + bdestroy(fullpath); return AFPERR_MISC; }