SecBSD's official ports repository

This commit is contained in:
purplerain 2023-08-16 22:26:55 +00:00
commit 2c0afcbbf3
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
64331 changed files with 5339189 additions and 0 deletions

View file

@ -0,0 +1,14 @@
If somebody wants to use shell scripts in a chrooted /var/www, use a shell
builtin instead, to avoid forcing them to copy in ld.so, libc and printf.
--- src/h_bash.c.orig Sat Dec 31 22:11:19 2011
+++ src/h_bash.c Sat Dec 31 22:13:56 2011
@@ -138,7 +138,7 @@ bash_echo (buffer_t * buf, char *str, size_t len)
* we will take the (ancient) POSIX1 standard of 4K, subtract 1K from it and use that
* as the maxmimum. The Linux limit appears to be 128K, so 3K will fit. */
- static char echo_start[] = "printf '%s' '";
+ static char echo_start[] = "echo -n '";
static char echo_quote[] = "'\\''";
static char echo_end[] = "'\n";
const size_t maxlen = 3096;