From: Frank Lahm Date: Mon, 2 Apr 2012 14:30:13 +0000 (+0200) Subject: ignore ._ appledouble files X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=netatalk.git;a=commitdiff_plain;h=b668f73bf257e8a088f901e5212e000039273ea2 ignore ._ appledouble files --- diff --git a/NEWS b/NEWS index f1fe7915..c6f50991 100644 --- a/NEWS +++ b/NEWS @@ -15,6 +15,7 @@ Changes in 3.0 alpha2 should be set properly to pick that up * UPD: Run ldconfig on Linux at the end of make install * FIX: afpd: ad cp on appledouble = ea volumes +* FIX: dbd: ignore ._ appledouble files * REM: Volumes options "use dots" and "hex encoding" Changes in 3.0 alpha1 diff --git a/etc/cnid_dbd/cmd_dbd_scanvol.c b/etc/cnid_dbd/cmd_dbd_scanvol.c index cad6a944..dcbd4c74 100644 --- a/etc/cnid_dbd/cmd_dbd_scanvol.c +++ b/etc/cnid_dbd/cmd_dbd_scanvol.c @@ -879,6 +879,11 @@ static int dbd_readdir(int volroot, cnid_t did) if (STRCMP(ep->d_name, == , ADv2_DIRNAME)) continue; + if (!myvol->vfs->vfs_validupath(myvol, ep->d_name)) { + dbd_log(LOGDEBUG, "Ignoring \"%s\"", ep->d_name); + continue; + } + if ((ret = lstat(ep->d_name, &st)) < 0) { dbd_log( LOGSTD, "Lost file while reading dir '%s/%s', probably removed: %s", cwdbuf, ep->d_name, strerror(errno));