summaryrefslogtreecommitdiffstats
path: root/term-utils/write.c
Commit message (Collapse)AuthorAgeFilesLines
* last, utmpdump, agetty, wall, write: avoid compatibility hacksSami Kerola2013-08-291-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>
* write: change determination can user write to a terminalSami Kerola2013-08-291-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>
* include: carefulput: print determined char when unprintable char is foundSami Kerola2013-08-231-1/+1
| | | | | | This is done to allow reuse of the functin in last(1). Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* textual: spell and encode the name of Arkadiusz Miƛkiewicz correctlyBenno Schulenberg2013-02-061-1/+1
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* write: stop using MAXHOSTNAMELENKarel Zak2012-10-191-3/+7
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* write: Don't explicitly include <asm/param.h>.Thomas Schwinge2012-05-291-1/+0Star
| | | | | | | 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>
* write: Use PATH_MAX instead of MAXPATHLEN, as elsewhere.Thomas Schwinge2012-05-291-3/+3
| | | | Signed-off-by: Thomas Schwinge <thomas@codesourcery.com>
* term-utils: verify writing to streams was successfulSami Kerola2012-04-041-0/+3
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* write: fix path for freopen()Karel Zak2011-09-061-1/+1
| | | | | Reported-by: xinglp <xinglp@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* write: cleanup usage()Karel Zak2011-08-161-6/+8
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* write: remove inconsistent periods from two error messagesBenno Schulenberg2011-08-151-2/+2
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* write: maintenance fixesSami Kerola2011-06-251-103/+90Star
| | | | | | | 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>
* write: long options & new usageSami Kerola2011-06-251-3/+34
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* build-sys: move write to term-utils directorySami Kerola2011-06-251-0/+359
Signed-off-by: Sami Kerola <kerolasa@iki.fi>