chiark
/
gitweb
/
~mdw
/
preload-hacks
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Debianize.
[preload-hacks]
/
withlib.in
diff --git a/withlib.in
b/withlib.in
new file mode 100644
(file)
index 0000000..
47e19d1
--- /dev/null
+++ b/
withlib.in
@@ -0,0
+1,6
@@
+#! /bin/sh
+
+set -e
+export LD_PRELOAD=$LD_PRELOAD${LD_PRELOAD+ }@lib@.so
+[ $# -eq 0 ] && set -- "${SHELL-/bin/sh}"
+exec "$@"