aboutsummaryrefslogtreecommitdiff
path: root/net/cgi-io/Makefile
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-02-22 00:13:32 +0100
committerJohn Crispin <john@phrozen.org>2020-02-22 18:17:33 +0100
commit4f4a7e9532e55a16336b79b74b5fb0236e365279 (patch)
tree1a9d7ab384520f87873c886f448f6aeb05656d58 /net/cgi-io/Makefile
parentc971724874fce3d9f28e23074405c03eb1303364 (diff)
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 <jo@mein.io>
Diffstat (limited to 'net/cgi-io/Makefile')
-rw-r--r--net/cgi-io/Makefile2
1 files changed, 1 insertions, 1 deletions
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