From 8c5ffc0fbb0096c1f791a6cde954ea05d659f741 Mon Sep 17 00:00:00 2001 From: wiz Date: Sun, 18 Feb 2024 22:33:15 +0000 Subject: [PATCH] ftp: bump FTPBUFLEN from 4kB to 16kB sourceforge.net returns a 5kB content-security-policy. Analyzed by mlelstv@ who reports usual limits are between 4kB and 48kB. --- usr.bin/ftp/ftp_var.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/ftp/ftp_var.h b/usr.bin/ftp/ftp_var.h index 0e93f6ce539c..1c7448dc0a75 100644 --- a/usr.bin/ftp/ftp_var.h +++ b/usr.bin/ftp/ftp_var.h @@ -1,4 +1,4 @@ -/* $NetBSD: ftp_var.h,v 1.87 2024/02/18 22:29:56 christos Exp $ */ +/* $NetBSD: ftp_var.h,v 1.88 2024/02/18 22:33:15 wiz Exp $ */ /*- * Copyright (c) 1996-2009 The NetBSD Foundation, Inc. @@ -169,7 +169,7 @@ enum { /* * Global defines */ -#define FTPBUFLEN (4 * MAXPATHLEN) +#define FTPBUFLEN (16 * 1024) #define MAX_IN_PORT_T 0xffffU #define HASHBYTES 1024 /* default mark for `hash' command */