summaryrefslogtreecommitdiffhomepage
path: root/scpmisc.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2017-06-02 22:57:09 +0800
committerGitHub <noreply@github.com>2017-06-02 22:57:09 +0800
commit33e28fb96ba885767bf9033a50cb7a0cdb9514cc (patch)
treeaec0bffd36acaa80dc38bd383f562b9a08965c44 /scpmisc.c
parentea984cfb953fbc75f4287cbce7d5d988c6ccbe37 (diff)
parent100cbc5f3f41bebc03bf6838569845863c4c6649 (diff)
Merge pull request #31 from bengardner/PATH_DEVNULL
Use DROPBEAR_PATH_DEVNULL instead of undefined _PATH_DEVNULL
Diffstat (limited to 'scpmisc.c')
-rw-r--r--scpmisc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scpmisc.c b/scpmisc.c
index d99e358..33e1891 100644
--- a/scpmisc.c
+++ b/scpmisc.c
@@ -235,7 +235,7 @@ sanitise_stdfd(void)
{
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);
}