Changeset 914 in openpam for trunk/lib/libpam/openpam_findenv.c


Ignore:
Timestamp:
Jan 21, 2017, 3:15:29 PM (4 years ago)
Author:
Dag-Erling Smørgrav
Message:

In pam_*env(3), set errno as the corresponding POSIX functions would.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/libpam/openpam_findenv.c

    r913 r914  
    4040#endif
    4141
     42#include <errno.h>
    4243#include <string.h>
    4344
     
    6465                    pamh->env[i][len] == '=')
    6566                        RETURNN(i);
     67        errno = ENOENT;
    6668        RETURNN(-1);
    6769}
Note: See TracChangeset for help on using the changeset viewer.