summaryrefslogtreecommitdiff
path: root/term-utils/write.c
AgeCommit message (Collapse)AuthorFilesLines
2013-08-29last, utmpdump, agetty, wall, write: avoid compatibility hacksSami Kerola1-2/+2
In include/bits/utmp.h the ut_user and ut_time macros are marked with comment they are backwards compatibility hacks. It is probably best to avoid use of these macros where ever possible. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-08-29write: change determination can user write to a terminalSami Kerola1-4/+5
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>
2013-08-23include: carefulput: print determined char when unprintable char is foundSami Kerola1-1/+1
This is done to allow reuse of the functin in last(1). Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-02-06textual: spell and encode the name of Arkadiusz Miƛkiewicz correctlyBenno Schulenberg1-1/+1
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2012-10-19write: stop using MAXHOSTNAMELENKarel Zak1-3/+7
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-05-29write: Don't explicitly include <asm/param.h>.Thomas Schwinge1-1/+0
It doesn't exist on some systems, but will come in via <sys/param.h> on the others. Signed-off-by: Thomas Schwinge <thomas@codesourcery.com>
2012-05-29write: Use PATH_MAX instead of MAXPATHLEN, as elsewhere.Thomas Schwinge1-3/+3
Signed-off-by: Thomas Schwinge <thomas@codesourcery.com>
2012-04-04term-utils: verify writing to streams was successfulSami Kerola1-0/+3
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2011-09-06write: fix path for freopen()Karel Zak1-1/+1
Reported-by: xinglp <xinglp@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2011-08-16write: cleanup usage()Karel Zak1-6/+8
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-08-15write: remove inconsistent periods from two error messagesBenno Schulenberg1-2/+2
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2011-06-25write: maintenance fixesSami Kerola1-103/+90
Use libc error printing facilities, remove void casting, clean up unused headers and alignt coding style with README.devel. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2011-06-25write: long options & new usageSami Kerola1-3/+34
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2011-06-25build-sys: move write to term-utils directorySami Kerola1-0/+359
Signed-off-by: Sami Kerola <kerolasa@iki.fi>