freebsd-ports/devel/ElectricFence/files/patch-ef.sh
Dag-Erling Smørgrav 3e7a932731 Preserve whitespace in the argument list. This can be tested by running
"ef.sh /bin/echo a\ \ b"; the correct output is "a  b\n", but before this
commit it would print "a b\n" instead.
2007-04-22 12:25:43 +00:00

15 lines
289 B
Bash

--- ef.sh.orig Wed May 2 21:17:33 2001
+++ ef.sh Wed May 2 21:17:40 2001
@@ -1,3 +1,3 @@
-#!/bin/bash
+#!/bin/sh
#
@@ -16,5 +16,5 @@
# Set the environment to load eletric fence.
(\
-export LD_PRELOAD=libefence.so.0.0;\
-exec $*;\
+export LD_PRELOAD=libefence.so.0;\
+exec "$@";\
)