Use DROPBEAR_PATH_DEVNULL instead of undefined _PATH_DEVNULL

This commit is contained in:
Ben Gardner
2016-05-24 17:34:10 -05:00
parent e0c6e819c2
commit 100cbc5f3f
3 changed files with 3 additions and 3 deletions

View File

@@ -287,7 +287,7 @@ static void cli_sessionloop() {
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));