diff options
author | Ben Gardner <bgardner@wabtec.com> | 2016-05-24 17:34:10 -0500 |
---|---|---|
committer | Ben Gardner <bgardner@wabtec.com> | 2016-05-25 09:52:23 -0500 |
commit | 100cbc5f3f41bebc03bf6838569845863c4c6649 (patch) | |
tree | f6b64e85c45eb3b1956d9ede17a5994ecf6e2ba4 /scpmisc.c | |
parent | e0c6e819c28a5c866cd3437599b8e979b23f0627 (diff) |
Use DROPBEAR_PATH_DEVNULL instead of undefined _PATH_DEVNULL
Diffstat (limited to 'scpmisc.c')
-rw-r--r-- | scpmisc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |