summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLauri Leukkunen <lle@rahina.org>2007-01-10 00:57:04 +0200
committerLauri Leukkunen <lleukkun@leka.rahina.org>2007-01-10 00:57:04 +0200
commita53075d602be75206e0ace99542380d2f5714232 (patch)
tree472772c1bda69e6fed6c83a8fc486c3dabcbed1d
parent66c204fc6a47e2e4969363e3358e303d085f1dc8 (diff)
* remove argv[] mapping hack remains
-rw-r--r--preload/sb_exec.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/preload/sb_exec.c b/preload/sb_exec.c
index 5e75d85..86f759f 100644
--- a/preload/sb_exec.c
+++ b/preload/sb_exec.c
@@ -683,14 +683,7 @@ int do_exec(const char *file, char *const *argv, char *const *envp)
}
for (p = (char **)argv; *p; p++) {
- if (*p[0] == '/' && (
- strcmp(binaryname, "rm") == 0
- || strcmp(binaryname, "ln") == 0)) {
- //my_argv[i++] = scratchbox_path2(binaryname, "execve", *p);
- my_argv[i++] = *p;
- } else {
- my_argv[i++] = *p;
- }
+ my_argv[i++] = *p;
}
my_argv[i] = NULL;