]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
more error messages
authorAlan T. DeKok <aland@freeradius.org>
Fri, 23 Feb 2018 13:17:11 +0000 (08:17 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 23 Feb 2018 13:17:11 +0000 (08:17 -0500)
src/modules/rlm_passwd/rlm_passwd.c

index b6b9ba01c1049061b53daca94159f9f33bc6fd41..5a011fed765e24eb79202af39ea1bb3a17376945 100644 (file)
@@ -190,6 +190,7 @@ static struct hashtable * build_hash_table (char const * file, int nfields,
        else ht->delimiter = ':';
        if(!tablesize) return ht;
        if(!(ht->fp = fopen(file,"r"))) {
+               ERROR("Failed opening %s - %s", file, fr_strerror());
                free(ht->filename);
                free(ht);
                return NULL;
@@ -459,7 +460,7 @@ static int mod_instantiate(CONF_SECTION *conf, void *instance)
                return -1;
        }
        if (! (inst->ht = build_hash_table (inst->filename, nfields, keyfield, listable, inst->hash_size, inst->ignore_nislike, *inst->delimiter)) ){
-               ERROR("rlm_passwd: can't build hashtable from passwd file");
+               ERROR("rlm_passwd: failed reading file.");
                return -1;
        }
        if (! (inst->pwdfmt = mypasswd_malloc(inst->format, nfields, &len)) ){