Skip to content
This repository was archived by the owner on Dec 13, 2018. It is now read-only.

Conversation

@cyphar
Copy link
Contributor

@cyphar cyphar commented Dec 16, 2014

As @crosbymichael pointed out in this discussion, the functions in the user package (specifically the lookup API) are not correctly named. This patchset fixes this.

Specifically, the following function names were changed to make the API more intuitive:

  • GetGroupFile => GetGroupPath
  • GetPasswdFile => GetPasswdPath
  • GetExecUserFile => GetExecUserPath
  • and several unexposed internal functions were renamed in a similar fashion.

Signed-off-by: Aleksa Sarai [email protected] (github: cyphar)

This patch changes the incorrectly named functions GetPasswdFile,
GetGroupFile, GetExecUserFile and several internal components to
GetPasswdPath, GetGroupPath, etc -- as these are far more appropriate
names and more clearly convey to users what the arguments represent.

Signed-off-by: Aleksa Sarai <[email protected]> (github: cyphar)
This patch switches libcontainer's usage of the user/ API to the new
version.

Signed-off-by: Aleksa Sarai <[email protected]> (github: cyphar)
@cyphar
Copy link
Contributor Author

cyphar commented Dec 16, 2014

LGTM
/cc @tianon @crosbymichael

@cyphar cyphar changed the title user: fix function signatures user: fix function signatures Dec 16, 2014
@vmarmol
Copy link
Contributor

vmarmol commented Dec 16, 2014

LGTM

vmarmol added a commit that referenced this pull request Dec 16, 2014
user: fix function signatures
@vmarmol vmarmol merged commit ef1c1c4 into docker-archive:master Dec 16, 2014
@tianon
Copy link
Contributor

tianon commented Dec 16, 2014

posthumous LGTM too 👍

@cyphar cyphar deleted the user-fix-names branch December 17, 2014 00:50
ColinHuang pushed a commit to fcwu/docker that referenced this pull request Jan 5, 2015
This commit contains changes for docker:
* user.GetGroupFile to user.GetGroupPath docker-archive/libcontainer#301
* Add systemd support for OOM docker-archive/libcontainer#307
* Support for custom namespaces docker-archive/libcontainer#279, docker-archive/libcontainer#312
* Fixes moby#9699 docker-archive/libcontainer#308

Signed-off-by: Alexander Morozov <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants