From 880ff11350c02ccea432c27842eb6c29578e3d76 Mon Sep 17 00:00:00 2001 From: "Tim J. Robbins" Date: Mon, 27 May 2002 03:54:45 +0000 Subject: [PATCH] Exit non-zero if the tags file cannot be opened. --- usr.bin/ctags/ctags.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/ctags/ctags.c b/usr.bin/ctags/ctags.c index 745156b8c20f..2acf58f8852d 100644 --- a/usr.bin/ctags/ctags.c +++ b/usr.bin/ctags/ctags.c @@ -166,7 +166,7 @@ main(argc, argv) ++aflag; } if (!(outf = fopen(outfile, aflag ? "a" : "w"))) - err(exit_val, "%s", outfile); + err(1, "%s", outfile); put_entries(head); (void)fclose(outf); if (uflag) {