]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Output the name of the file were reading
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 22 Aug 2012 22:51:12 +0000 (23:51 +0100)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 22 Aug 2012 22:52:03 +0000 (23:52 +0100)
src/main/files.c

index a0ee24997cfe006097fd82711d8da7e746befd86..547ccec6c107cd7fc51e61c07953fedb9aaaaf40 100644 (file)
@@ -74,6 +74,8 @@ int pairlist_read(const char *file, PAIR_LIST **list, int complain)
        FR_TOKEN parsecode;
        char newfile[8192];
 
+       DEBUG2("reading pairlist file %s", file);
+       
        /*
         *      Open the file.  The error message should be a little
         *      more useful...
@@ -132,7 +134,7 @@ parse_again:
                         *      Include another file if we see
                         *      $INCLUDE filename
                         */
-                       if (strcasecmp(entry, "$include") == 0) {
+                       if (strcasecmp(entry, "$INCLUDE") == 0) {
                                while(isspace((int) *ptr))
                                        ptr++;
 
@@ -162,6 +164,7 @@ parse_again:
                                }
 
                                t = NULL;
+                               
                                if (pairlist_read(newfile, &t, 0) != 0) {
                                        pairlist_free(&pl);
                                        radlog(L_ERR|L_CONS,