summaryrefslogtreecommitdiff
path: root/usr.bin/compress
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1997-07-08 10:06:32 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1997-07-08 10:06:32 +0000
commit667b313d2eaabb1397bfc732d8d981d5bfe19b78 (patch)
tree425065ee1348f882348945c1749874f98c7a7693 /usr.bin/compress
parent79d374b03716d4bb1eca2dab09e1127809d1df48 (diff)
one tiny change
Diffstat (limited to 'usr.bin/compress')
-rw-r--r--usr.bin/compress/main.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/compress/main.c b/usr.bin/compress/main.c
index dafb705a561..41e81c8d3d6 100644
--- a/usr.bin/compress/main.c
+++ b/usr.bin/compress/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.4 1997/07/08 03:13:19 mickey Exp $ */
+/* $OpenBSD: main.c,v 1.5 1997/07/08 10:06:31 mickey Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -41,7 +41,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)compress.c 8.2 (Berkeley) 1/7/94";
#else
-static char rcsid[] = "$OpenBSD: main.c,v 1.4 1997/07/08 03:13:19 mickey Exp $";
+static char rcsid[] = "$OpenBSD: main.c,v 1.5 1997/07/08 10:06:31 mickey Exp $";
#endif
#endif /* not lint */
@@ -278,7 +278,8 @@ main(argc, argv)
}
}
- if (error && oreg && unlink(outfile) && verbose >= 0)
+ if (error && oreg && unlink(outfile) && errno != ENOENT &&
+ verbose >= 0)
warn("%s", outfile);
else if (!error && verbose > 0)
fputs("OK\n", stderr);