diff scpmisc.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 5dde22e8a189
children 9579377b5f8b
line wrap: on
line diff
--- a/scpmisc.c	Thu May 12 23:47:35 2016 +0800
+++ b/scpmisc.c	Tue May 24 17:34:10 2016 -0500
@@ -235,7 +235,7 @@
 {
 	int nullfd, dupfd;
 
-	if ((nullfd = dupfd = open(_PATH_DEVNULL, O_RDWR)) == -1) {
+	if ((nullfd = dupfd = open(DROPBEAR_PATH_DEVNULL, O_RDWR)) == -1) {
 		fprintf(stderr, "Couldn't open /dev/null: %s", strerror(errno));
 		exit(1);
 	}