summaryrefslogtreecommitdiff
path: root/term/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'term/main.c')
-rw-r--r--term/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/term/main.c b/term/main.c
index 8947b335..d0702e83 100644
--- a/term/main.c
+++ b/term/main.c
@@ -178,7 +178,7 @@ main (int argc, char **argv)
mutex_init (&global_lock);
term_owner = term_group = 0;
- term_mode = bottom == &ptyio_bottom ? 0666 : 0600;
+ term_mode = (bottom == &ptyio_bottom ? 0666 : 0600) | S_IFCHR;
inputq = create_queue (256, 100, 300);
rawq = create_queue (256, 100, 300);