authme-unix/src/cnffile.c
authme_err_t
authme_load_system_cnf(authme_service_config_t * psc, int flags)
{
    authme_err_t ret;

    /* Naughty - but for now on *nix default to /etc/authme/authme.cnf */

#if !defined W32
    FILE *in = fopen("/etc/authme/authme.cnf", "rt");
#endif
    if (in == NULL)
        return AUTHME_ERR_FILE_OPEN;    /* This is not really an error */

    ret = authme_load_cnf(psc, in, flags);

    fclose(in);

    return ret;
}
/* Find the file for the system configuration */
Find the file for the system configuration
Find the file for the system configuration
authme_err_t
authme_load_system_cnf(authme_service_config_t * psc, int flags)
{
    authme_err_t ret;
#if !defined W32
    FILE *in = fopen("/etc/authme/authme.cnf", "rt");
#endif
    if (in == NULL)
        return AUTHME_ERR_FILE_OPEN;    
    ret = authme_load_cnf(psc, in, flags);
    fclose(in);
    return ret;
}
authme_err_t authme_load_system_cnf ( authme_service_config_t * psc , int flags ) { authme_err_t ret ; #if ! defined W32 FILE * in = fopen ( " " , " " ) ; #endif if ( in == NULL ) return AUTHME_ERR_FILE_OPEN ; ret = authme_load_cnf ( psc , in , flags ) ; fclose ( in ) ; return ret ; }
Find the file for the system configuration
Find the file for the system configuration
/* Naughty - but for now on *nix default to /etc/authme/authme.cnf */ /* This is not really an error */