summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sbin/init/init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/init/init.c b/sbin/init/init.c
index 9a1cd68..2ad5d95 100644
--- a/sbin/init/init.c
+++ b/sbin/init/init.c
@@ -939,7 +939,7 @@ new_session(session_t *sprev, int session_index, struct ttyent *typ)
* then don't add the device to the session list.
*/
if ((fd = open(sp->se_device, O_RDONLY | O_NONBLOCK, 0)) < 0) {
- if (errno == ENXIO) {
+ if (errno == ENXIO || errno == ENOENT) {
free_session(sp);
return (0);
}
OpenPOWER on IntegriCloud