From c8dd0685acbdc8c30765d0c5a5caf419459e0f7f Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Wed, 25 May 1994 00:23:08 +0000 Subject: [PATCH] calls to Exit now pass an arg --- visudo.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/visudo.c b/visudo.c index b9f7743a6..fefdd79b0 100644 --- a/visudo.c +++ b/visudo.c @@ -130,7 +130,7 @@ main(argc, argv) if ((sudoers_fp = fopen(sudoers, "r")) == NULL) { (void) fprintf(stderr, "%s: ", *argv); perror(sudoers); - Exit(); + Exit(0); } /* @@ -152,7 +152,7 @@ main(argc, argv) if ((sudoers_tmp_fp = fdopen(fd, "w")) == NULL) { (void) fprintf(stderr, "%s: ", *argv); perror(sudoers_tmp_file); - Exit(); + Exit(0); } /* @@ -184,21 +184,21 @@ main(argc, argv) if (stat(sudoers_tmp_file, &sbuf) < 0) { (void) fprintf(stderr, "%s: can't stat temporary file, %s unchanged\n", sudoers, *argv); - Exit(); + Exit(0); } /* file has size == 0 */ if (sbuf.st_size == 0) { (void) fprintf(stderr, "%s: bad temporary file, %s unchanged\n", sudoers, *argv); - Exit(); + Exit(0); } /* re-open the sudoers file for parsing */ if ((sudoers_tmp_fp = fopen(sudoers_tmp_file, "r")) == NULL) { (void) fprintf(stderr, "%s: can't re-open temporary file, %s unchanged\n", sudoers, *argv); - Exit(); + Exit(0); } yyin = sudoers_tmp_fp; yyout = stdout; @@ -206,7 +206,7 @@ main(argc, argv) /* parse the file */ if (yyparse()) { (void) fprintf(stderr, "yyparse() failed\n"); - Exit(); + Exit(0); } /* -- 2.40.0