diff compat.c @ 1387:e7f11ed5fe28

Use DROPBEAR_PATH_DEVNULL instead of undefined _PATH_DEVNULL
author Ben Gardner <bgardner@wabtec.com>
date Tue, 24 May 2016 17:34:10 -0500
parents a0062a354a80
children 271c57aa3da5
line wrap: on
line diff
--- a/compat.c	Thu May 12 23:47:35 2016 +0800
+++ b/compat.c	Tue May 24 17:34:10 2016 -0500
@@ -177,7 +177,7 @@
 	if (!nochdir)
 		(void)chdir("/");
 
-	if (!noclose && (fd = open(_PATH_DEVNULL, O_RDWR, 0)) != -1) {
+	if (!noclose && (fd = open(DROPBEAR_PATH_DEVNULL, O_RDWR, 0)) != -1) {
 		(void)dup2(fd, STDIN_FILENO);
 		(void)dup2(fd, STDOUT_FILENO);
 		(void)dup2(fd, STDERR_FILENO);