From: Arran Cudbard-Bell Date: Sat, 22 Oct 2022 17:00:29 +0000 (-0400) Subject: *sigh* the real issue is path is not const X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c2f8c4a9189190b3f2e9efcce391cc0fa24d64d5;p=thirdparty%2Ffreeradius-server.git *sigh* the real issue is path is not const --- diff --git a/src/lib/util/file.c b/src/lib/util/file.c index d167aebf1f0..de86c55d6af 100644 --- a/src/lib/util/file.c +++ b/src/lib/util/file.c @@ -33,10 +33,10 @@ RCSID("$Id$") #include #include -static ssize_t _fr_mkdir(int *fd_out, char const *path, mode_t mode, fr_mkdir_func_t func, void *uctx) +static ssize_t _fr_mkdir(int *fd_out, char *path, mode_t mode, fr_mkdir_func_t func, void *uctx) { int ret, fd; - char const *p = path; + char *p = path; /* * Try to make the path. If it exists, chmod it.