aboutsummaryrefslogtreecommitdiff
path: root/net/cgi-io
Commit message (Collapse)AuthorAge
* cgi-io: support SHA256 checksums for file uploadsJo-Philipp Wich2017-11-13
| | | | | | | | | | | | Report SHA256 checksums in addition to the MD5 ones to make cgi-io suitable for sysupgrade image verification. Also allow stat(), md5sum and/or sha256sum to fail and respond with a JSON null value instead, leaving it to the frontend to handle errors as needed. Fixes #4790. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* cgi-io: fix stray semicolonJo-Philipp Wich2017-08-18
| | | | | | | | | | | | | | | | | Remove an improperly placed semicolon in order to solve the following compiler error: .../main.c:144:3: error: this 'if' clause does not guard... [-Werror=misleading-indentation] if (execl("/bin/busybox", "/bin/busybox", "md5sum", file, NULL)); ^~ .../main.c:145:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' return NULL; ^~~~~~ cc1: all warnings being treated as errors Fixes #4723. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* cgi-io: merge changes from luci2-io-helperDaniel Golle2017-06-19
| | | | | | | | | | | | | luci2-io-helper: bugfix buckup script read timeout Reading files from stdin will block for ever. The uhttpd is killing the backup process after script_timeout. Switching read to non blocking mode and add a waitpid for the slave process does not end in a script_timeout anymore. Signed-off-by: Florian Eckert <Eckert.Florian@googlemail.com> Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* cgi-io: Find and search for libubus.hFlorian Fainelli2017-06-18
| | | | | | | | | | | | | Fixes build errors with external toolchains: [ 33%] Building C object CMakeFiles/cgi-io.dir/main.c.o /home/florian/dev/openwrt/trunk/build_dir/target-mipsel-unknown-linux-gnu_glibc/cgi-io/main.c:30:21: fatal error: libubus.h: No such file or directory #include <libubus.h> ^ compilation terminated. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
* treewide: replace my defunct email addressJo-Philipp Wich2016-06-07
| | | | Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* cgi-io: add a small helper cgi that can be used by RPCD based UIsJohn Crispin2015-10-02
Signed-off-by: John Crispin <blogic@openwrt.org>