Mercurial > dropbear
diff compat.c @ 1388:271c57aa3da5
Merge pull request #31 from bengardner/PATH_DEVNULL
Use DROPBEAR_PATH_DEVNULL instead of undefined _PATH_DEVNULL
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Fri, 02 Jun 2017 22:57:09 +0800 |
parents | 826a3293fe5a e7f11ed5fe28 |
children |
line wrap: on
line diff
--- a/compat.c Sat May 20 10:27:29 2017 +0800 +++ b/compat.c Fri Jun 02 22:57:09 2017 +0800 @@ -174,7 +174,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);