chiark / gitweb /
[PATCH] fix problems with dev.d and udevstart
[elogind.git] / namedev.c
index 3843d028693c305b4bf0e15ae93f14e4b3589815..695fb55413910e7507b408425529875f1db4c759 100644 (file)
--- 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]);
        }
 
                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");
        retval = pipe(fds);
        if (retval != 0) {
                dbg("pipe failed");