]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
print out error message if we're unable to open the file 1458/head
authorJorge Pereira <jpereiran@gmail.com>
Thu, 17 Dec 2015 17:58:17 +0000 (15:58 -0200)
committerJorge Pereira <jpereiran@gmail.com>
Thu, 17 Dec 2015 17:58:17 +0000 (15:58 -0200)
src/main/detail.c

index 65f1324148fcd7180acacd8f0d6efaa01cb3c085..0d31e388b76b7e32ff8fa71716f5d8b5f8a50f60 100644 (file)
@@ -271,7 +271,11 @@ static int detail_open(rad_listen_t *this)
                 *      And try to open the filename.
                 */
                data->work_fd = open(data->filename_work, O_RDWR);
-               if (data->work_fd < 0) return 0;
+               if (data->work_fd < 0) {
+                       ERROR("Failed opening detail file %s: %s",
+                                       data->filename_work, fr_syserror(errno));
+                       return 0;
+               }
 #endif
        } /* else detail.work existed, and we opened it */