diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-07-06 20:47:33 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-07-06 20:47:33 +0000 |
commit | 0f6fdbe5ce64bb79cc7d344d095a8e0f1427b7ff (patch) | |
tree | 31884af52e835d633b4a4743e18c184c3fab2c5b /usr.bin/compress | |
parent | 6c408b3f0b4a2279216a74137a3de8f3c2f37890 (diff) |
correct program name decoding
Diffstat (limited to 'usr.bin/compress')
-rw-r--r-- | usr.bin/compress/main.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/compress/main.c b/usr.bin/compress/main.c index b0abd89a1a3..56166cdda2f 100644 --- a/usr.bin/compress/main.c +++ b/usr.bin/compress/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.1 1997/07/06 20:22:58 mickey Exp $ */ +/* $OpenBSD: main.c,v 1.2 1997/07/06 20:47:32 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.1 1997/07/06 20:22:58 mickey Exp $"; +static char rcsid[] = "$OpenBSD: main.c,v 1.2 1997/07/06 20:47:32 mickey Exp $"; #endif #endif /* not lint */ @@ -119,8 +119,8 @@ main(argc, argv) decomp++; } - if (strcmp(__progname, "zip") && - strcmp(__progname, "compress")) + if (strcmp(p, "zip") && + strcmp(p, "compress")) errx(1, "unknown program name"); } |