summaryrefslogtreecommitdiff
path: root/namedev.c
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2004-10-07 00:17:11 -0700
committerGreg KH <gregkh@suse.de>2005-04-26 21:37:03 -0700
commit1059b07a143fac796a4ae8a7235cab9665a7622e (patch)
tree48551f0cd63c974317a857aa1889251eb70cfca7 /namedev.c
parente284ecba7646562da9ad4c3c22871f6c341960d4 (diff)
[PATCH] fix problems with dev.d and udevstart
Here is the correction for the dev.d/ scripts too. We should pass the right argv[0] here too. A script may depend on the right value, as udev does with udev/udevstart. Here is the old version: [pid 4692] execve("/etc/dev.d/default/log.dev", ["./udev", "block"], [/* 41 vars */]) = 0 this the new one: [pid 9832] execve("/etc/dev.d/default/log.dev", ["/etc/dev.d/default/log.dev", "block"], [/* 41 vars */]) = 0
Diffstat (limited to 'namedev.c')
-rw-r--r--namedev.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/namedev.c b/namedev.c
index 3843d02869..695fb55413 100644
--- a/namedev.c
+++ b/namedev.c
@@ -450,11 +450,6 @@ static int execute_program(const char *path, char *value, int len)
dbg("execute '%s' with subsystem '%s' argument", arg, argv[1]);
}
- /* set basename() only */
- pos = strrchr(argv[0], '/');
- if (pos != NULL)
- argv[0] = &pos[1];
-
retval = pipe(fds);
if (retval != 0) {
dbg("pipe failed");