test
Revisão | 18a6c2602b7b042c0f76f6d68c851ed890c666ea (tree) |
---|---|
Hora | 2010-04-03 18:11:42 |
Autor | ![]() |
Commiter | TATEISHI Katsuyuki |
Change error message.
@@ -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 |