You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's a lot of subtleties to these APIs. First,
unlike the `xattrs` crate, we operate on cap-std `Dir`
objects. As part of that, we also explicitly error
out on absolute paths, as well as paths containing
any uplinks (`../`) at all.
- Always use `/proc/self/fd` with `lgetxattr`
because this is the only way to get/set xattrs on
symlinks.
- Return a `Result<Option<>>` with getxattr for
consistency with our other APIs to handle the
common case of looking for a nonexistent xattr.
- The `getxattr` and `listxattr` APIs are also higher level than
what Rustix offers to be maximally convenient;
we always return an owned buffer, and handle
resizing it.
Signed-off-by: Colin Walters <[email protected]>
0 commit comments