diff options
-rw-r--r-- | term/users.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/term/users.c b/term/users.c index b17209b9..4ed20299 100644 --- a/term/users.c +++ b/term/users.c @@ -545,6 +545,8 @@ trivfs_S_io_readable (struct trivfs_protid *cred, if ((cred->po->openmodes & O_READ) == 0) return EBADF; *amt = qsize (inputq); + if (remote_input_mode && *amt) + *amt--; mutex_unlock (&global_lock); return 0; |