Mercurial > hg-old > index.cgi
changeset 45:be459d69f481
Fixed stupid error in opening list file
author | lost |
---|---|
date | Sun, 04 Jan 2009 06:54:58 +0000 |
parents | 2330b88f9600 |
children | b962cee20bf4 |
files | src/list.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/list.c Sun Jan 04 06:52:18 2009 +0000 +++ b/src/list.c Sun Jan 04 06:54:58 2009 +0000 @@ -56,10 +56,11 @@ lf = stdout; else { - lf = fopen(as -> listfile, "o"); + lf = fopen(as -> listfile, "w"); if (!lf) { - fprintf(stderr, "Unable to open list file. No listing will be generated!\n"); + fprintf(stderr, "Unable to open list file '%s'. No listing will be generated: ", as -> listfile); + perror(""); goto showerr; } }