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

Fix getpwuid_r error handling #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Fix getpwuid_r error handling #3

wants to merge 2 commits into from

Commits on Aug 21, 2020

  1. Fix typos in libbutl/path.mxx comments

    Alex Syrnikov committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    36ce474 View commit details
    Browse the repository at this point in the history
  2. Fix getpwuid_r error handling

    from man getpwuid:
    "In case of error, an error number is returned, and NULL is stored in *result."
    Error returned, NOT -1 and errno.
    Example from man:
    if (result == NULL) {
        if (s == 0)
            printf("Not found\n");
        else {
            errno = s;
            perror("getpwnam_r");
        }
        exit(EXIT_FAILURE);
    }
    Alex Syrnikov committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    84be35f View commit details
    Browse the repository at this point in the history