diff options
author | Sami Kerola <kerolasa@iki.fi> | 2013-08-18 10:44:13 +0100 |
---|---|---|
committer | Sami Kerola <kerolasa@iki.fi> | 2013-08-29 18:14:07 +0100 |
commit | 0233a8ea18bec17dd59cfe1fec8281d2b9c26d22 (patch) | |
tree | 52020d578fc07ebfd17ec3ae7073aaa80fbdf3ff /lib/time-util.c | |
parent | f7afb6b6b850c25e09140e0cd75c6c517f5685c4 (diff) | |
download | util-linux-0233a8ea18bec17dd59cfe1fec8281d2b9c26d22.tar.gz |
write: change determination can user write to a terminal
Earlier test failed when user had write permission, but was not in
special group that owns terminal devices, usually tty.
This made write(1) to fail for root, if the root did not happen to be in
tty group. In this commit root is granted ot write to anyone, even if
they have mesg(1) turned off. For an user who is trying to write to own
other session the group write bit is significant only for whether mesg(1)
are enabled.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'lib/time-util.c')
0 files changed, 0 insertions, 0 deletions