chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d74f99
)
[PATCH] udev parse bug
author
harald@redhat.com
<harald@redhat.com>
Tue, 14 Sep 2004 13:50:38 +0000
(06:50 -0700)
committer
Greg KH
<gregkh@suse.de>
Wed, 27 Apr 2005 04:37:00 +0000
(21:37 -0700)
There is a bug parsing PROGRAMs after apostrophes. Try PROGRAM="/bin/echo 'test test".
namedev.c
patch
|
blob
|
history
diff --git
a/namedev.c
b/namedev.c
index e86f88f43340300b926f4f654d6e599bf2647cfc..c8217024c87070e20a953269105440bf1853d07a 100644
(file)
--- a/
namedev.c
+++ b/
namedev.c
@@
-433,9
+433,9
@@
static int execute_program(char *path, char *value, int len)
/* don't separate if in apostrophes */
pos++;
argv[i] = strsep(&pos, "\'");
- while (pos[0] == ' ')
+ while (pos
&& pos
[0] == ' ')
pos++;
- } else {
+
} else {
argv[i] = strsep(&pos, " ");
}
dbg("arg[%i] '%s'", i, argv[i]);