test
修订版 | 2ea4ee4270921c9bdf254b43951199af32f352b2 (tree) |
---|---|
时间 | 2010-09-07 11:37:17 |
作者 | TATEISHI Katsuyuki <kt@whee...> |
Commiter | TATEISHI Katsuyuki |
Merge branch 'master' of http://github.com/ktateish/sandbox
@@ -51,8 +51,10 @@ main(int argc, char **argv) { | ||
51 | 51 | mbox = fopen(path_mbox, "r"); |
52 | 52 | } |
53 | 53 | |
54 | - if (mbox == NULL) | |
55 | - err(1, "fopen():", getprogname()); | |
54 | + if (mbox == NULL) { | |
55 | + fprintf(stderr, "%s: can't read %s\n", getprogname(), path_mbox); | |
56 | + return 1; | |
57 | + } | |
56 | 58 | |
57 | 59 | search_mail(mbox, sender, count_mode); |
58 | 60 |