diff options
author | Michael I. Bushnell <mib@gnu.org> | 1995-12-01 22:14:48 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1995-12-01 22:14:48 +0000 |
commit | 035ffc8f0379b1237adced1263999a3543aab6a1 (patch) | |
tree | 5fdb44905df5bc7b3efc4c3f35f4ce2e5f06edf5 /term/users.c | |
parent | 4e96149e37ad7f3d95b418e4ae58f3312593f80a (diff) |
(trivfs_S_io_readable): If remote_input_mode, then don't include extra
final character as input.
Diffstat (limited to 'term/users.c')
-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; |