summaryrefslogtreecommitdiffstats
path: root/lib/time-util.c
diff options
context:
space:
mode:
authorSami Kerola2013-08-18 11:44:13 +0200
committerSami Kerola2013-08-29 19:14:07 +0200
commit0233a8ea18bec17dd59cfe1fec8281d2b9c26d22 (patch)
tree52020d578fc07ebfd17ec3ae7073aaa80fbdf3ff /lib/time-util.c
parentdocs: add note to wall(1) about sessions which will not get message (diff)
downloadkernel-qcow2-util-linux-0233a8ea18bec17dd59cfe1fec8281d2b9c26d22.tar.gz
kernel-qcow2-util-linux-0233a8ea18bec17dd59cfe1fec8281d2b9c26d22.tar.xz
kernel-qcow2-util-linux-0233a8ea18bec17dd59cfe1fec8281d2b9c26d22.zip
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