diff options
author | harald@redhat.com <harald@redhat.com> | 2004-09-14 06:50:38 -0700 |
---|---|---|
committer | Greg KH <gregkh@suse.de> | 2005-04-26 21:37:00 -0700 |
commit | a75e2c14f9bc098966f39f26358e6de4dc167192 (patch) | |
tree | 364d3fbc07a123cf37a43ae860dc3f27191b6fea /namedev.c | |
parent | 6d74f9967b54104895e49c05549121026515fa58 (diff) |
[PATCH] udev parse bug
There is a bug parsing PROGRAMs after apostrophes. Try PROGRAM="/bin/echo 'test test".
Diffstat (limited to 'namedev.c')
-rw-r--r-- | namedev.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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]); |