]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
don't split text too much
authorAlan T. DeKok <aland@freeradius.org>
Thu, 8 Apr 2021 12:42:12 +0000 (08:42 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 8 Apr 2021 12:42:12 +0000 (08:42 -0400)
if the static text is split across multiple lines, that makes
it much harder to grep the source code for error messages.

src/lib/util/file.c

index 456d0481e2794385f56791106871ef7706fe299b..0f8227c81ffd8713a0f842001afb2cbcfff8b8c1 100644 (file)
@@ -64,8 +64,8 @@ static ssize_t _fr_mkdir(int *fd_out, char const *path, mode_t mode, fr_mkdir_fu
                }
 
                if (fchmod(fd, mode) < 0) {
-                       fr_strerror_printf("Failed setting permissions on "
-                                          "directory we created: %s", fr_syserror(errno));
+                       fr_strerror_printf("Failed setting permissions on directory "
+                                          "we created: %s", fr_syserror(errno));
                        close(fd);
                        goto mkdir_error;
                }
@@ -80,8 +80,8 @@ static ssize_t _fr_mkdir(int *fd_out, char const *path, mode_t mode, fr_mkdir_fu
         *      fr_mkdir before calling this function.
         */
        if (errno != ENOENT) {
-               fr_strerror_printf("Unexpected error creating "
-                                  "directory: %s", fr_syserror(errno));
+               fr_strerror_printf("Unexpected error creating directory: %s",
+                                  fr_syserror(errno));
                goto mkdir_error;
        }