]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mountpoint-util: replace our last use of FILENAME_MAX by PATH_MAX
authorLennart Poettering <lennart@poettering.net>
Mon, 8 Mar 2021 21:44:35 +0000 (22:44 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 8 Mar 2021 21:47:55 +0000 (22:47 +0100)
src/basic/mountpoint-util.c

index ed7457f8b76aca89634b203c223696a070c88739..adf10a454813b447d9f4d1a8b747f4e409503af6 100644 (file)
@@ -148,7 +148,7 @@ static bool filename_possibly_with_slash_suffix(const char *s) {
         if (!slash)
                 return filename_is_valid(s);
 
-        if (slash - s > FILENAME_MAX) /* We want to allocate on the stack below, hence do a size check first */
+        if (slash - s > PATH_MAX) /* We want to allocate on the stack below, hence do a size check first */
                 return false;
 
         if (slash[strspn(slash, "/")] != 0) /* Check that the suffix consist only of one or more slashes */