From: Arran Cudbard-Bell Date: Thu, 17 Jul 2025 15:55:05 +0000 (-0600) Subject: Fix typos and bad docs X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=08cde2fb8080b5a48694cd2432fb0560b8ea3b20;p=thirdparty%2Ffreeradius-server.git Fix typos and bad docs --- diff --git a/src/lib/server/cf_file.c b/src/lib/server/cf_file.c index ddfe121a4b4..0f25481ff1a 100644 --- a/src/lib/server/cf_file.c +++ b/src/lib/server/cf_file.c @@ -729,11 +729,11 @@ cf_file_check_err_t cf_file_check_effective(char const *filename, * @param[in] filename CONF_PAIR for the unix socket path * @param[in] uctx user context, not used * @return - * - CF_FILE_OK if the socket exists and is accessible. - * - -1 if we couldn't create a new file descriptor. - * - -2 if the file doesn't exist. - * - -3 if the file exists but is not accessible. - * - -4 any other error. + * - CF_FILE_OK if the socket exists and is a socket. + * - CF_FILE_NO_EXIST if the file doesn't exist. + * - CF_FILE_NO_PERMISSION if the file exists but is not accessible. + * - CF_FILE_NO_UNIX_SOCKET if the file exists but is not a socket. + * - CF_FILE_OTHER_ERROR any other error. */ cf_file_check_err_t cf_file_check_unix_connect(char const *filename, UNUSED void *uctx) { @@ -828,7 +828,7 @@ cf_file_check_err_t cf_file_check_unix_perm(char const *filename, UNUSED void *u return CF_FILE_NO_PERMISSION; default: - fr_strerror_printf("Unable to state socket \"%s\": %s", filename, fr_syserror(errno)); + fr_strerror_printf("Unable to stat socket \"%s\": %s", filename, fr_syserror(errno)); return CF_FILE_OTHER_ERROR; } }