diff cli-session.c @ 1400:238a439670f5 coverity

merge
author Matt Johnston <matt@ucc.asn.au>
date Sat, 03 Jun 2017 00:10:58 +0800
parents e7f11ed5fe28
children e8f67918fdc9
line wrap: on
line diff
--- a/cli-session.c	Thu May 18 23:02:39 2017 +0800
+++ b/cli-session.c	Sat Jun 03 00:10:58 2017 +0800
@@ -287,7 +287,7 @@
 				int devnull;
 				/* keeping stdin open steals input from the terminal and
 				   is confusing, though stdout/stderr could be useful. */
-				devnull = open(_PATH_DEVNULL, O_RDONLY);
+				devnull = open(DROPBEAR_PATH_DEVNULL, O_RDONLY);
 				if (devnull < 0) {
 					dropbear_exit("Opening /dev/null: %d %s",
 							errno, strerror(errno));