diff options
| author | cgd <cgd@NetBSD.org> | 1993-12-01 22:31:06 +0000 |
|---|---|---|
| committer | cgd <cgd@NetBSD.org> | 1993-12-01 22:31:06 +0000 |
| commit | fedc5faddbe2292ce23b13dd67cb8e37dd959e7f (patch) | |
| tree | 38496d0c8cef22c5758f98ded0b2b1f1b5dae9d2 | |
| parent | 102c96c45ab4107106f786b8955ec29ca6b7298e (diff) | |
fix from Frank van der Linden <vdlinden@fwi.uva.nl> to DTRT when given a
filename on the command line.
| -rw-r--r-- | usr.bin/tsort/tsort.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tsort/tsort.c b/usr.bin/tsort/tsort.c index fe40ad93036..f635ba8f810 100644 --- a/usr.bin/tsort/tsort.c +++ b/usr.bin/tsort/tsort.c @@ -42,7 +42,7 @@ char copyright[] = #ifndef lint /*static char sccsid[] = "from: @(#)tsort.c 5.3 (Berkeley) 6/1/90";*/ -static char rcsid[] = "$Id: tsort.c,v 1.5 1993/12/01 05:34:16 cgd Exp $"; +static char rcsid[] = "$Id: tsort.c,v 1.6 1993/12/01 22:31:06 cgd Exp $"; #endif /* not lint */ #include <sys/types.h> @@ -113,7 +113,7 @@ main(argc, argv) if (argc < 2) fp = stdin; - else if (argc == 2) { + else if (argc > 2) { (void)fprintf(stderr, "usage: tsort [ inputfile ]\n"); exit(1); } else if (!(fp = fopen(argv[1], "r"))) { |
