]> git.notmuchmail.org Git - notmuch/commit
notmuch-new: Check for non-fatal errors from stat()
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 27 Nov 2009 13:50:11 +0000 (13:50 +0000)
committerCarl Worth <cworth@cworth.org>
Sat, 28 Nov 2009 05:36:35 +0000 (21:36 -0800)
commitde064f177202b8e7ec4073eef24b17f91eba11c8
treecbc20648053b70f782459f34ebdc9069536c8d3f
parentf94146bd39f0453b8b31f690e1ebb8f8860468f8
notmuch-new: Check for non-fatal errors from stat()

Currently we assume that all errors on stat() a dname is fatal (but
continue anyway and report the error at the end). However, some errors
reported by stat() such as a missing file or insufficient privilege,
we can simply ignore and skip the file. For the others, such as a fault
(unlikely!) or out-of-memory, we handle like the other fatal errors by
jumping to the end.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
notmuch-new.c