aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/wall/wall.c
Commit message (Collapse)AuthorAgeFilesLines
* WARNS=2 fix, use __FBSDID().Mark Murray2001-12-111-9/+10
| | | | | | | Not added to Makefile as WARNS=2 will be made default. Notes: svn path=/head/; revision=87675
* - Move the prototype of ttymsg() into ttymsg.h. syslogd and talkdDima Dorfman2001-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 Notes: svn path=/head/; revision=83242
* Make ``wall -g'' really DTRT.Ruslan Ermilov2001-09-051-8/+11
| | | | | | | Reviewed by: imp, markm Notes: svn path=/head/; revision=83082
* When opening the file to broadcast, do it with the user's gid, not theKris Kennaway2001-05-081-2/+8
| | | | | | | | | | | egid (tty). Obtained from: OpenBSD Submitted by: Maxime Henrion <mux@qualys.com> Reviewed by: imp Notes: svn path=/head/; revision=76367
* Add -g group to usage message.Warner Losh2001-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 Notes: svn path=/head/; revision=73320
* o Add support for wall -g. This will send a message to all members ofWarner Losh2001-03-011-13/+53
| | | | | | | | | | a given group. o Minor code style cleanups while I'm here Reviewed by: bde, kris, markm, audit@ Notes: svn path=/head/; revision=73255
* Cleanup this code a bit by attempting to sync it up with NetBSD andKris Kennaway2000-11-261-14/+15
| | | | | | | | | with each other. Reviewed by: markm, dwmalone Notes: svn path=/head/; revision=69231
* Instead of printing '(null)' if there is no tty, print 'no tty'.Nick 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. Notes: svn path=/head/; revision=66557
* Let wall report the local timezone as well on output.Jeroen Ruigrok van der Werven2000-07-271-2/+2
| | | | | | | | | PR: 17867 Submitted by: Joel Ray Holveck <joelh@gnu.org> Nagged by: nrahlstr Notes: svn path=/head/; revision=63909
* column counter (cnt) not reset to 0 on display of '\r' which could causeDaniel Baker1999-09-011-1/+4
| | | | | | | | | unnecessary forced linewraps on some terminals. Submitted by: David McNett <nugget@slacker.com> Notes: svn path=/head/; revision=50776
* Corrected apparent omission in program logic which was causing theDaniel Baker1999-09-011-1/+2
| | | | | | | | | | insertion of redundant crlf's. Eliminated the venetian-blind effect in walled text. Submitted by: David McNett <nugget@slacker.com> Notes: svn path=/head/; revision=50772
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50477
* PR: bin/8680Matthew Dillon1998-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(). Notes: svn path=/head/; revision=41717
* Change manual declarations of some functions to proper includesAndrey A. Chernov1997-09-151-15/+30
| | | | | | | | | Rewrote allowed character test to be more efficient Fix screen position calculations: control and 8bit characters was not counted properly Notes: svn path=/head/; revision=29434
* Use err(3). Add usage().Philippe Charnier1997-08-251-31/+30
| | | | Notes: svn path=/head/; revision=28695
* Add locale-independent control checks for security reasonAndrey A. Chernov1997-05-141-2/+4
| | | | Notes: svn path=/head/; revision=25812
* Localize itAndrey A. Chernov1997-05-131-0/+3
| | | | Notes: svn path=/head/; revision=25777
* Fix 8bit chars handlingAndrey A. Chernov1997-04-081-2/+11
| | | | Notes: svn path=/head/; revision=24729
* compare return value from getopt against -1 rather than EOF, per the finalWarner Losh1997-03-291-1/+1
| | | | | | | posix standard on the topic. Notes: svn path=/head/; revision=24360
* Fix some improperly wrapped lines in the code.Alexander Langer1996-08-111-4/+2
| | | | Notes: svn path=/head/; revision=17505
* The talkd security hole can ealso be exploited by wall (and thus rwall).Guido van Rooij1994-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). Notes: svn path=/head/; revision=3809
* BSD 4.4 Lite Usr.bin SourcesRodney W. Grimes1994-05-271-0/+201
Notes: svn path=/cvs2svn/branches/CHRISTOS/; revision=1590