Mercurial > dropbear
diff scpmisc.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 | e7f11ed5fe28 |
children | 9579377b5f8b |
line wrap: on
line diff
--- a/scpmisc.c Sat May 20 10:27:29 2017 +0800 +++ b/scpmisc.c Fri Jun 02 22:57:09 2017 +0800 @@ -235,7 +235,7 @@ { 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); }