Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Sep 22, 2025

Bumps xattr from 1.5.0 to 1.6.1.

Release notes

Sourced from xattr's releases.

Release v1.6.1

What's Changed

This release fixes a long-standing bug where we didn't correctly handle the return value of the FreeBSD and NetBSD xattr syscalls.

On Linux (and macOS), the xattr API returns ERANGE if the result doesn't fit in the provided buffer. On FreeBSD (and NetBSD), it returns the number of bytes read even if the syscall fails to read the entire value. This library assumed FreeBSD behaved the same as Linux.

In releases prior to 1.6.0, this issue was unlikely to be encountered in practice (except at scale) because we always checked the size before we read the attribute. It was still incorrect (TOCTOU issue), but it would have required a race with someone changing the extended attributes to trigger the bug.

In 1.6.0 this issue started showing up in testing because we try reading once with a 4KiB buffer before checking the size.

Full Changelog: Stebalien/xattr@v1.6.0...v1.6.1

Release v1.6.0

What's Changed

Xattr can now read extended attribute values, list extended attributes, etc. in a single syscall instead of 2 as long as the total size is at most 4096 bytes. The downside of this change is that, e.g., if a file has more than 4KiB of extended attributes, listing extended attributes on the file will require 3 syscalls (because the first "optimistic" one will fail).

Full Changelog: Stebalien/xattr@v1.5.1...v1.6.0

Commits
  • 3e1914f chore: release 1.6.1
  • 8b183b3 test: test listing more than 4096 bytes of extended attributes
  • df9ee49 fix: freebsd's xattr returns the number of bytes read
  • 99b48d8 chore: fix unused imports
  • bb2d06e chore: release 1.6.0
  • 0e2bc6e refactor: remove manual clone impl (#82)
  • eca400b refactor: cleanup bsd code (#81)
  • 03d129a feat: use a larger buffer when reading attributes (#80)
  • 1ec2f59 feat: guess the max xattr size once (#77)
  • 3ce078e ci: run tests on android (#78)
  • Additional commits viewable in compare view

Dependabot compatibility score

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

Bumps [xattr](https://github.com/Stebalien/xattr) from 1.5.0 to 1.6.1.
- [Release notes](https://github.com/Stebalien/xattr/releases)
- [Commits](Stebalien/xattr@v1.5.0...v1.6.1)

---
updated-dependencies:
- dependency-name: xattr
  dependency-version: 1.6.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file rust Pull requests that update rust code labels Sep 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file rust Pull requests that update rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant