Module Name:    src
Committed By:   maxv
Date:           Sun Apr 26 09:20:10 UTC 2015

Modified Files:
        src/sbin/veriexecctl: veriexecctl.c

Log Message:
Be a bit more verbose if the kernel rejects a file


To generate a diff of this commit:
cvs rdiff -u -r1.37 -r1.38 src/sbin/veriexecctl/veriexecctl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sbin/veriexecctl/veriexecctl.c
diff -u src/sbin/veriexecctl/veriexecctl.c:1.37 src/sbin/veriexecctl/veriexecctl.c:1.38
--- src/sbin/veriexecctl/veriexecctl.c:1.37	Sun Jul 27 04:23:44 2014
+++ src/sbin/veriexecctl/veriexecctl.c	Sun Apr 26 09:20:09 2015
@@ -1,4 +1,4 @@
-/*	$NetBSD: veriexecctl.c,v 1.37 2014/07/27 04:23:44 dholland Exp $	*/
+/*	$NetBSD: veriexecctl.c,v 1.38 2015/04/26 09:20:09 maxv Exp $	*/
 
 /*-
  * Copyright 2005 Elad Efrat <e...@netbsd.org>
@@ -248,10 +248,11 @@ main(int argc, char **argv)
 			err(1, "Cannot open `%s'", file);
 
 		yyin = fdopen(lfd, "r");
-
 		yyparse();
+		fclose(yyin);
 
-		(void)fclose(yyin);
+		if (error != EXIT_SUCCESS)
+			errx(1, "Cannot load '%s'", file);
 	} else if (argc == 2 && strcasecmp(argv[0], "delete") == 0) {
 		prop_dictionary_t dp;
 		struct stat sb;

Reply via email to