Module Name:    src
Committed By:   christos
Date:           Wed Nov 27 17:58:59 UTC 2013

Modified Files:
        src/external/bsd/nvi/dist/ipc: ip_run.c

Log Message:
CID 113277: Add toctou annotation


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/external/bsd/nvi/dist/ipc/ip_run.c

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

Modified files:

Index: src/external/bsd/nvi/dist/ipc/ip_run.c
diff -u src/external/bsd/nvi/dist/ipc/ip_run.c:1.4 src/external/bsd/nvi/dist/ipc/ip_run.c:1.5
--- src/external/bsd/nvi/dist/ipc/ip_run.c:1.4	Tue Nov 26 14:12:46 2013
+++ src/external/bsd/nvi/dist/ipc/ip_run.c	Wed Nov 27 12:58:59 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: ip_run.c,v 1.4 2013/11/26 19:12:46 joerg Exp $	*/
+/*	$NetBSD: ip_run.c,v 1.5 2013/11/27 17:58:59 christos Exp $	*/
 /*-
  * Copyright (c) 1996
  *	Rob Zimmermann.  All rights reserved.
@@ -143,6 +143,7 @@ vi_run(ipvi, argc, argv)
 		 * (debugging) nvi, run it, otherwise run the user's path,
 		 * if specified, else run the compiled in path.
 		 */
+		/* coverity[+toctou] */
 		if (!pflag && stat("vi-ipc", &sb) == 0)
 			execvp("vi-ipc", argv);
 		execvp(execp, argv);

Reply via email to