mirror of
https://github.com/clearml/dropbear
synced 2025-06-26 18:17:32 +00:00
Use DROPBEAR_PATH_DEVNULL instead of undefined _PATH_DEVNULL
This commit is contained in:
@@ -287,7 +287,7 @@ static void cli_sessionloop() {
|
||||
int devnull;
|
||||
/* keeping stdin open steals input from the terminal and
|
||||
is confusing, though stdout/stderr could be useful. */
|
||||
devnull = open(_PATH_DEVNULL, O_RDONLY);
|
||||
devnull = open(DROPBEAR_PATH_DEVNULL, O_RDONLY);
|
||||
if (devnull < 0) {
|
||||
dropbear_exit("Opening /dev/null: %d %s",
|
||||
errno, strerror(errno));
|
||||
|
||||
Reference in New Issue
Block a user