=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/compress/main.c,v retrieving revision 1.75 retrieving revision 1.76 diff -u -r1.75 -r1.76 --- src/usr.bin/compress/main.c 2009/04/18 18:21:54 1.75 +++ src/usr.bin/compress/main.c 2010/07/28 23:52:01 1.76 @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.75 2009/04/18 18:21:54 naddy Exp $ */ +/* $OpenBSD: main.c,v 1.76 2010/07/28 23:52:01 millert Exp $ */ #ifndef SMALL static const char copyright[] = @@ -36,7 +36,7 @@ #endif /* SMALL */ #ifndef SMALL -static const char main_rcsid[] = "$OpenBSD: main.c,v 1.75 2009/04/18 18:21:54 naddy Exp $"; +static const char main_rcsid[] = "$OpenBSD: main.c,v 1.76 2010/07/28 23:52:01 millert Exp $"; #endif #include @@ -482,7 +482,7 @@ return (WARNING); } } - ofd = open(out, O_WRONLY|O_CREAT, S_IWUSR); + ofd = open(out, O_WRONLY|O_CREAT|O_TRUNC, S_IWUSR); } if (ofd < 0) { if (verbose >= 0)