chiark / gitweb /
Debianize.
[preload-hacks] / withlib.in
diff --git a/withlib.in b/withlib.in
new file mode 100644 (file)
index 0000000..47e19d1
--- /dev/null
@@ -0,0 +1,6 @@
+#! /bin/sh
+
+set -e
+export LD_PRELOAD=$LD_PRELOAD${LD_PRELOAD+ }@lib@.so
+[ $# -eq 0 ] && set -- "${SHELL-/bin/sh}"
+exec "$@"