openwrt-mirror/package/base-files/files
Jo-Philipp Wich 6f6406a132 base-files: sysupgrade: fix streaming backup archives to stdout
Due to previous refactoring in sysupgrade, writing backup archives to
stdout became impossible since the hardcoded gzip output redirection
did not account for the `-` special case filename.

Fix this issue by substituting `-` with `/proc/self/fd/1` in the tar
archive output path variable.

Also remove a redundant `rm -f` of the target file path that occurs
before the file could've possibly been written.

Fixes: #14773
Fixes: https://github.com/openwrt/luci/issues/6961
Fixes: e36cc53092 ("base-files: sysupgrade: use tar helper to include installed_packages.txt")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2024-03-04 14:58:10 +01:00
..
bin base-files: ipcalc.sh: Add netmask2prefix function 2023-12-12 12:30:35 -07:00
etc base-files/leds: add setting the LED color via uci 2024-02-07 15:34:43 +01:00
lib base-files: sysupgrade: add tar.sh with helpers for building archives 2024-02-29 16:11:47 +01:00
rom rename default/ to files/ 2006-11-22 23:30:57 +00:00
sbin base-files: sysupgrade: fix streaming backup archives to stdout 2024-03-04 14:58:10 +01:00
usr base-files: validate firmware for compatibility with backup 2019-09-08 09:10:30 +02:00