From 4f4a7e9532e55a16336b79b74b5fb0236e365279 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sat, 22 Feb 2020 00:13:32 +0100 Subject: cgi-io: use O_TMPFILE for uploads and attempt to directly link target file Create an anonymous inode in /tmp using O_TMPFILE and attempt to link the file in place using linkat(). Only fall back to the old file copy when linking the tempfile fails. Avoids double memory use if both the temporary upload file and the destination file are located in /tmp. Ref: https://github.com/openwrt/luci/issues/3654 Signed-off-by: Jo-Philipp Wich --- net/cgi-io/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'net/cgi-io/Makefile') diff --git a/net/cgi-io/Makefile b/net/cgi-io/Makefile index c8e4164ef..32498bc8e 100644 --- a/net/cgi-io/Makefile +++ b/net/cgi-io/Makefile @@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=cgi-io -PKG_RELEASE:=17 +PKG_RELEASE:=18 PKG_LICENSE:=GPL-2.0-or-later -- cgit v1.2.3