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

Ignore comment lines in /etc/passwd #920

Merged
merged 1 commit into from
Aug 16, 2016
Merged

Ignore comment lines in /etc/passwd #920

merged 1 commit into from
Aug 16, 2016

Conversation

stevendanna
Copy link
Contributor

Most passwd/shadow implementations treat lines that start with '#' as
comments. For example, the implementation in OS X:

 if (buf[0] == '#') {
      /* skip comments for Rhapsody. */
      continue;
 }

https://opensource.apple.com/source/remote_cmds/remote_cmds-41/rpc_yppasswdd.tproj/passwd.c

Fixes #725

Signed-off-by: Steven Danna steve@chef.io

Most passwd/shadow implementations treat lines that start with '#' as
comments. For example, the implementation in OS X:

     if (buf[0] == '#') {
          /* skip comments for Rhapsody. */
          continue;
     }

https://opensource.apple.com/source/remote_cmds/remote_cmds-41/rpc_yppasswdd.tproj/passwd.c

Fixes #725

Signed-off-by: Steven Danna <steve@chef.io>
@chris-rock chris-rock merged commit c43f3fe into master Aug 16, 2016
@chris-rock chris-rock deleted the ssd/issue-725 branch August 16, 2016 09:06
@chris-rock chris-rock added this to the 0.31.0 milestone Aug 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants