summaryrefslogtreecommitdiffstats
path: root/usr.bin/wall/wall.c
Commit message (Collapse)AuthorAgeFilesLines
* Perform all trivial ports to utmpx for usr.bin/.ed2010-01-131-2/+1
| | | | | They were already converted to use libulog, so it's easy to convert them to utmpx.
* Add missing `void' keyword.ed2009-12-291-1/+1
|
* Let wall(1) use utmpx.ed2009-12-051-18/+11
| | | | | | | | Because our implementation guarantees the strings inside struct utmpx to be null terminated, we don't need to copy everything out, which makes the code nicer to read. Also set WARNS to 6 and add $FreeBSD$ to keep SVN silent.
* Fix some bugs in wall(1):das2008-01-151-6/+13
| | | | | | | | | | - Handle wrapping correctly when \r appears in the input, and don't remove the \r from the output. - For lines longer than 79 characters, don't drop every 80th character. - Style: Braces around compound while statement. PR: 114498 Submitted by: Niclas Zeising <niclas.zeising@gmail.com> (earlier version)
* In wall and who, check that the utmp entry isn't stalled, as it is done in w.cognet2006-02-211-0/+15
| | | | | | | Apparently with the new pts code stalled entries are printed, when they are not with the BSD ptys. Submitted by: Michal Mertl <mime at traveller dot cz>
* Remove "sleeper" nonsense.tjr2003-02-211-4/+1
|
* WARNS=2 fix, use __FBSDID().markm2001-12-111-9/+10
| | | | Not added to Makefile as WARNS=2 will be made default.
* - Move the prototype of ttymsg() into ttymsg.h. syslogd and talkddd2001-09-091-2/+4
| | | | | | | | | | also use this, and they shouldn't have to have their own prototypes. - Silence warnings about constness and signedness in ttymsg(). This includes changing the return value to a `const char *', and changing the types of `left' and `wret' (both byte counts) to ssize_t. Reviewed by: bde
* Make ``wall -g'' really DTRT.ru2001-09-051-8/+11
| | | | Reviewed by: imp, markm
* When opening the file to broadcast, do it with the user's gid, not thekris2001-05-081-2/+8
| | | | | | | | egid (tty). Obtained from: OpenBSD Submitted by: Maxime Henrion <mux@qualys.com> Reviewed by: imp
* Add -g group to usage message.imp2001-03-021-2/+4
| | | | | | | Don't treat pointer as a boolean, but instead test it against NULL. Add warning for groups that don't exist Submitted by: ru
* o Add support for wall -g. This will send a message to all members ofimp2001-03-011-13/+53
| | | | | | | a given group. o Minor code style cleanups while I'm here Reviewed by: bde, kris, markm, audit@
* Cleanup this code a bit by attempting to sync it up with NetBSD andkris2000-11-261-14/+15
| | | | | | with each other. Reviewed by: markm, dwmalone
* Instead of printing '(null)' if there is no tty, print 'no tty'.n_hibma2000-10-021-1/+5
| | | | | In the case where the program is executed by a daemon running in the background the terminal might not have a tty. The '(null)' is confusing.
* Let wall report the local timezone as well on output.asmodai2000-07-271-2/+2
| | | | | | PR: 17867 Submitted by: Joel Ray Holveck <joelh@gnu.org> Nagged by: nrahlstr
* column counter (cnt) not reset to 0 on display of '\r' which could causedbaker1999-09-011-1/+4
| | | | | | unnecessary forced linewraps on some terminals. Submitted by: David McNett <nugget@slacker.com>
* Corrected apparent omission in program logic which was causing thedbaker1999-09-011-1/+2
| | | | | | | insertion of redundant crlf's. Eliminated the venetian-blind effect in walled text. Submitted by: David McNett <nugget@slacker.com>
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* PR: bin/8680dillon1998-12-131-6/+8
| | | | | | Increase the size of a number of buffers and replace strcpy/strcat/sprintf with snprintf(). There was a minor and possibly not exploitable security hole related to one sprintf().
* Change manual declarations of some functions to proper includesache1997-09-151-15/+30
| | | | | | Rewrote allowed character test to be more efficient Fix screen position calculations: control and 8bit characters was not counted properly
* Use err(3). Add usage().charnier1997-08-251-31/+30
|
* Add locale-independent control checks for security reasonache1997-05-141-2/+4
|
* Localize itache1997-05-131-0/+3
|
* Fix 8bit chars handlingache1997-04-081-2/+11
|
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-291-1/+1
| | | | posix standard on the topic.
* Fix some improperly wrapped lines in the code.alex1996-08-111-4/+2
|
* The talkd security hole can ealso be exploited by wall (and thus rwall).guido1994-10-231-0/+5
| | | | | write and talk are not affected. Now print out escape sequences in the same way as is done by write(1).
* BSD 4.4 Lite Usr.bin Sourcesrgrimes1994-05-271-0/+201
OpenPOWER on IntegriCloud