From e9ae9c6de82d77ca95c792b3c5c27d3a6307a8fe Mon Sep 17 00:00:00 2001 From: Giovanni Simoni Date: Fri, 3 Jan 2025 12:47:04 +0100 Subject: [PATCH] fixup cfg: rename function --- cfg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cfg.c b/cfg.c index 2d9b134..a77d9c2 100644 --- a/cfg.c +++ b/cfg.c @@ -100,7 +100,7 @@ static int slurp(int fd, size_t to_read, char **dst) { // // We want to ensure the following properties: // ... -static int open_safe(int *outfd, size_t *outsize, const char *path) { +static int open_safely(int *outfd, size_t *outsize, const char *path) { char *copy, *saveptr = NULL; int fd = -1, parent_fd, r = PAM_SERVICE_ERR; const char *p, *c; @@ -273,7 +273,7 @@ static int cfg_load_defaults(cfg_t *cfg, const char *config_path) { size_t fsize; char *buffer = NULL; - r = open_safe(&fd, &fsize, config_path ? config_path : CFG_DEFAULT_PATH); + r = open_safely(&fd, &fsize, config_path ? config_path : CFG_DEFAULT_PATH); if (r) return r;