diff options
author | Sami Kerola | 2016-05-08 00:44:17 +0200 |
---|---|---|
committer | Sami Kerola | 2016-07-04 00:35:09 +0200 |
commit | 50e417c8ad08e6a5d3c15adc39c16b6085b3cab6 (patch) | |
tree | f2630eeb3b1c64b80faf70fa799a393c23645204 /Makefile.am | |
parent | write: improve coding style (diff) | |
download | kernel-qcow2-util-linux-50e417c8ad08e6a5d3c15adc39c16b6085b3cab6.tar.gz kernel-qcow2-util-linux-50e417c8ad08e6a5d3c15adc39c16b6085b3cab6.tar.xz kernel-qcow2-util-linux-50e417c8ad08e6a5d3c15adc39c16b6085b3cab6.zip |
write: tell when effective gid and tty path group mismatch
Most commonly this error happens when write(1) executable does not have
correct group ownership and setgid bit. The earlier message was unclear
what exactly was wrong.
$ mesg
is y
$ write testuser
write: you have write permission turned off
Alternatively the 'getegid() == s.st_gid' could be considered unnecessary.
Afterall if to write to destination tty is denied that does not go unnoticed
at thet time when tty is opened.
Reviewed-by: Benno Schulenberg <bensberg@justemail.net>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'Makefile.am')
0 files changed, 0 insertions, 0 deletions