Module Name: src
Committed By: maxv
Date: Sun Feb 9 13:41:00 UTC 2014
Modified Files:
src/sbin/veriexecctl: veriexecctl.c
Log Message:
Fix error message; argv[1] could be NULL
To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.36 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.35 src/sbin/veriexecctl/veriexecctl.c:1.36
--- src/sbin/veriexecctl/veriexecctl.c:1.35 Mon Aug 29 14:35:04 2011
+++ src/sbin/veriexecctl/veriexecctl.c Sun Feb 9 13:40:59 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: veriexecctl.c,v 1.35 2011/08/29 14:35:04 joerg Exp $ */
+/* $NetBSD: veriexecctl.c,v 1.36 2014/02/09 13:40:59 maxv Exp $ */
/*-
* Copyright 2005 Elad Efrat <[email protected]>
@@ -245,7 +245,7 @@ main(int argc, char **argv)
lfd = open(file, O_RDONLY|O_EXLOCK, 0);
if (lfd == -1)
- err(1, "Cannot open `%s'", argv[1]);
+ err(1, "Cannot open `%s'", file);
yyin = fdopen(lfd, "r");