summaryrefslogtreecommitdiffhomepage
path: root/cli-session.c
diff options
context:
space:
mode:
authorBen Gardner <bgardner@wabtec.com>2016-05-24 17:34:10 -0500
committerBen Gardner <bgardner@wabtec.com>2016-05-25 09:52:23 -0500
commit100cbc5f3f41bebc03bf6838569845863c4c6649 (patch)
treef6b64e85c45eb3b1956d9ede17a5994ecf6e2ba4 /cli-session.c
parente0c6e819c28a5c866cd3437599b8e979b23f0627 (diff)
Use DROPBEAR_PATH_DEVNULL instead of undefined _PATH_DEVNULL
Diffstat (limited to 'cli-session.c')
-rw-r--r--cli-session.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli-session.c b/cli-session.c
index d89416f..d8525ae 100644
--- a/cli-session.c
+++ b/cli-session.c
@@ -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));