commit: 10de44241d6e3acd30e8e579f7f119510391651f
Author: Sam Besselink <sambesselink <AT> planet <DOT> nl>
AuthorDate: Thu Feb 14 15:32:27 2019 +0000
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Sat Feb 23 15:22:08 2019 +0000
URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=10de4424
In qtegrity.c make check_file use _Q_PATH_MAX when checking filename len
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>
qtegrity.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/qtegrity.c b/qtegrity.c
index 0b30fb8..db139f1 100644
--- a/qtegrity.c
+++ b/qtegrity.c
@@ -245,9 +245,7 @@ static int get_size_digest(char * line)
static int check_file(char * filename)
{
- /* TODO, this is 4096 too low, because this variable also holds
- * path; for linux path is max 4096 chars */
- if (strlen(filename) > 255)
+ if (strlen(filename) > _Q_PATH_MAX)
err("Filename too long");
if (filename[0] != '/') {