Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x/sys/unix: missing xattr symlink xattr syscall functions #14116

Closed
mildred opened this issue Jan 27, 2016 · 4 comments
Closed

x/sys/unix: missing xattr symlink xattr syscall functions #14116

mildred opened this issue Jan 27, 2016 · 4 comments

Comments

@mildred
Copy link

mildred commented Jan 27, 2016

The following syscall functions are not implemented, but are necessary if you need to copy symlinks while preserving xattrs:

  • llistxattr
  • lgetxattr
  • lsetxattr
  • lremovexattr

Are they going to be implemented? How can we implement them in a separate package?

@ianlancetaylor ianlancetaylor changed the title Missing xattr symlink xattr syscall functions x/sys/unix: missing xattr symlink xattr syscall functions Jan 27, 2016
@ianlancetaylor ianlancetaylor added this to the Unreleased milestone Jan 27, 2016
@ianlancetaylor
Copy link
Contributor

The syscall package is more or less frozen, and new system calls are added to the golang.org/x/sys package instead.

@mildred
Copy link
Author

mildred commented Jan 28, 2016

I learned that. Is there a specific bugtracker for the sys package?

@minux
Copy link
Member

minux commented Jan 28, 2016 via email

tklauser added a commit to tklauser/sys that referenced this issue May 29, 2017
Add support for the lgetxattr, llistxattr, lremovexattr and lsetxattr on
Linux, akin to the already existing getxattr, listxattr, removexattr and
setxattr syscalls.

These variants are identical to the already existing variants. except in
the case of a symbolic link where the extended attribute operation is
applied to the link itself rather than to the file that it refers to.
See:

  http://man7.org/linux/man-pages/man2/getxattr.2.html
  http://man7.org/linux/man-pages/man2/listxattr.2.html
  http://man7.org/linux/man-pages/man2/removexattr.2.html
  http://man7.org/linux/man-pages/man2/setxattr.2.html

Fixes golang/go#14116

Change-Id: I786953db8bf862566f54bdd745cc1feca5031be7
@gopherbot
Copy link

CL https://golang.org/cl/44374 mentions this issue.

@golang golang locked and limited conversation to collaborators May 29, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants