chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[PATCH] add the error number to the error message in wait_for_sysfs to help out in...
[elogind.git]
/
namedev.c
diff --git
a/namedev.c
b/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]);
}
- /* set basename() only */
- pos = strrchr(argv[0], '/');
- if (pos != NULL)
- argv[0] = &pos[1];
-
retval = pipe(fds);
if (retval != 0) {
dbg("pipe failed");