[PATCH v2 09/20] insert: prevent writes outside Maildir hierarchy

2012-11-25 Thread Peter Wang
Don't accept a --folder name that contains a ".." component, in order to prevent writing outside of the Maildir hierarchy. --- notmuch-insert.c | 21 + 1 file changed, 21 insertions(+) diff --git a/notmuch-insert.c b/notmuch-insert.c index a50eacc..022f7cd 100644 --- a/notmuch

[PATCH v2 09/20] insert: prevent writes outside Maildir hierarchy

2012-11-24 Thread Peter Wang
Don't accept a --folder name that contains a ".." component, in order to prevent writing outside of the Maildir hierarchy. --- notmuch-insert.c | 21 + 1 file changed, 21 insertions(+) diff --git a/notmuch-insert.c b/notmuch-insert.c index a50eacc..022f7cd 100644 --- a/notmuch