return NULL; /* (1b) */
}
- if (lstat(cfrombstr(cdir->d_fullpath), &st) != 0) {
+ if (ostat(cfrombstr(cdir->d_fullpath), &st, vol_syml_opt(vol)) != 0) {
LOG(log_debug, logtype_afpd, "dircache(cnid:%u): {missing:\"%s\"}",
ntohl(cnid), cfrombstr(cdir->d_fullpath));
(void)dir_remove(vol, cdir);
}
if (cdir) {
- if (lstat(cfrombstr(cdir->d_fullpath), &st) != 0) {
+ if (ostat(cfrombstr(cdir->d_fullpath), &st, vol_syml_opt(vol)) != 0) {
LOG(log_debug, logtype_afpd, "dircache(did:%u,\"%s\"): {missing:\"%s\"}",
ntohl(dir->d_did), name, cfrombstr(cdir->d_fullpath));
(void)dir_remove(vol, cdir);