SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
14
www/haserl/patches/patch-src_h_bash_c
Normal file
14
www/haserl/patches/patch-src_h_bash_c
Normal 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;
|
Loading…
Add table
Add a link
Reference in a new issue