Changeset 601 in openpam for trunk/lib


Ignore:
Timestamp:
Apr 14, 2012, 8:37:45 PM (9 years ago)
Author:
Dag-Erling Smørgrav
Message:

umm, it's usually a good idea to test before committing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/openpam_configure.c

    r600 r601  
    379379        size_t len;
    380380        openpam_style_t style;
    381         FILE *f;
    382         int ret, serrno;
     381        int ret;
    383382
    384383        ENTERS(facility < 0 ? "any" : pam_facility_name[facility]);
     
    386385        /* either absolute or relative to cwd */
    387386        if (strchr(service, '/') != NULL) {
    388                 if (p = strrchr(service, '.') && strcmp(p, ".conf") == 0)
     387                if ((p = strrchr(service, '.')) != NULL && strcmp(p, ".conf") == 0)
    389388                        style = pam_conf_style;
    390389                else
Note: See TracChangeset for help on using the changeset viewer.