Misc fixes, mostly for FreeBSD (#1536)
Some checks are pending
CodeQL / Analyze (push) Waiting to run
mkdocs / deploy (push) Waiting to run

This commit is contained in:
trapexit 2025-09-29 00:17:51 -04:00 • committed by GitHub
parent 7a9c3b7eb2
commit 46f85c0f6d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
27 changed files with 146 additions and 140 deletions

View file

@ -57,20 +57,20 @@ _readdir(const Branches::Ptr &branches_,
int namelen;
fs::dirent64 *d = reinterpret_cast<fs::dirent64*>(&buf->mem[pos]);
pos += d->d_reclen;
pos += d->reclen;
namelen = d->d_namelen();
namelen = d->namelen();
rv = names.put(d->d_name,namelen);
rv = names.put(d->name,namelen);
if(rv == 0)
continue;
rel_filepath.replace_filename(d->d_name);
rel_filepath.replace_filename(d->name);
d->d_ino = fs::inode::calc(branch.path,
rel_filepath,
DTTOIF(d->d_type),
d->d_ino);
d->ino = fs::inode::calc(branch.path,
rel_filepath,
DTTOIF(d->type),
d->ino);
fuse_dirents_add(dirents_,d,namelen);
}