Diff between ee2520cb3d18aad93525919e03451ec85e3cc64b and a085d8c88bd45474d3f9d9a0d3d20ebf7de858f6
Changed Files
| File | Additions | Deletions | Status |
| src/shared/shell.c | +2 | -2 | modified |
Full Patch
diff --git a/src/shared/shell.c b/src/shared/shell.c
index 9395598..e7f17e0 100644
--- a/src/shared/shell.c
+++ b/src/shared/shell.c
@@ -279,8 +279,8 @@ static int parse_args(char *arg, wordexp_t *w, char *del, int flags)
return -EINVAL;
}
- /* If argument ends with ,,, set we_offs bypass strict checks */
- if (w->we_wordc && strsuffix(w->we_wordv[w->we_wordc -1], "..."))
+ /* If argument ends with ... set we_offs bypass strict checks */
+ if (w->we_wordc && !strsuffix(w->we_wordv[w->we_wordc -1], "..."))
w->we_offs = 1;
free(str);