# HG changeset patch # User lost # Date 1231052098 0 # Node ID be459d69f4817355fe52af8f6cc3981ab80ddd9b # Parent 2330b88f9600d145a1421fc674b121adf348cdf8 Fixed stupid error in opening list file diff -r 2330b88f9600 -r be459d69f481 src/list.c --- 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; } }