summaryrefslogtreecommitdiffhomepage
path: root/compat.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 /compat.c
parente0c6e819c28a5c866cd3437599b8e979b23f0627 (diff)
Use DROPBEAR_PATH_DEVNULL instead of undefined _PATH_DEVNULL
Diffstat (limited to 'compat.c')
-rw-r--r--compat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compat.c b/compat.c
index 71558a5..f3e9a52 100644
--- a/compat.c
+++ b/compat.c
@@ -177,7 +177,7 @@ int daemon(int nochdir, int noclose) {
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);