mirror of
https://github.com/systemd/systemd.git
synced 2024-12-25 01:34:28 +03:00
[PATCH] udev parse bug
There is a bug parsing PROGRAMs after apostrophes. Try PROGRAM="/bin/echo 'test test".
This commit is contained in:
parent
6d74f9967b
commit
a75e2c14f9
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user