aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/wall
Commit message (Collapse)AuthorAgeFilesLines
* Fix some bugs in wall(1):David Schultz2008-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) Notes: svn path=/head/; revision=175346
* In wall and who, check that the utmp entry isn't stalled, as it is done in w.Olivier Houchard2006-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> Notes: svn path=/head/; revision=155875
* make wall(1) work with pts.Hajimu UMEMOTO2006-01-271-2/+6
| | | | Notes: svn path=/head/; revision=154898
* Mention in the BUGS section that write and wall bogusly use the sender'sTim J. Robbins2004-07-171-0/+7
| | | | | | | | LC_CTYPE setting instead of the receiver's when determining which characters are printable. Notes: svn path=/head/; revision=132278
* Document incorrect handling of multibyte characters.Tim J. Robbins2004-07-171-1/+5
| | | | Notes: svn path=/head/; revision=132277
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-021-1/+2
| | | | Notes: svn path=/head/; revision=131491
* Remove "sleeper" nonsense.Tim J. Robbins2003-02-211-4/+1
| | | | Notes: svn path=/head/; revision=111209
* Change iov_base's type from `char *' to the standard `void *'. AllMike Barcroft2002-10-111-1/+1
| | | | | | | | uses of iov_base which assume its type is `char *' (in order to do pointer arithmetic) have been updated to cast iov_base to `char *'. Notes: svn path=/head/; revision=104908
* Note that this appeared at least as early as PWB UNIX.Juli Mallett2002-06-101-2/+1
| | | | | | | Use the literal string 'PWB UNIX', as we still have no .At macro for it. Notes: svn path=/head/; revision=98107
* Use `The .Nm utility'Philippe Charnier2002-04-201-2/+3
| | | | Notes: svn path=/head/; revision=95124
* WARNS=2 fix, use __FBSDID().Mark Murray2001-12-112-14/+15
| | | | | | | 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-093-7/+15
| | | | | | | | | | | | | 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
* mdoc(7) police: removed HISTORY info from the .Os call.Ruslan Ermilov2001-07-101-1/+1
| | | | Notes: svn path=/head/; revision=79535
* 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
* Fix ttynames generation broken with strlcatAndrey A. Chernov2001-03-051-1/+1
| | | | | | | | PR: 25541 Submitted by: Nickolay Dudorov <nnd@mail.nsk.ru> Notes: svn path=/head/; revision=73752
* 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-013-27/+71
| | | | | | | | | | 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
* mdoc(7) police: use the new features of the Nm macro.Ruslan Ermilov2000-11-201-1/+1
| | | | Notes: svn path=/head/; revision=68963
* 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
* O_NONBLOCK was used as a command with a bogus arg to fcntl(2).Guy Helmer2000-06-091-2/+2
| | | | | | | | | | | Change it to F_SETFD with an arg of 0 to clear O_NONBLOCK. PR: bin/8681 Submitted by: koyama takahiro <tah@d1.dion.ne.jp> Prompted by: Nathan Ahlstrom <nrahlstr@winternet.com> Notes: svn path=/head/; revision=61464
* 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-283-3/+3
| | | | Notes: svn path=/head/; revision=50477
* Add $Id$, to make it simpler for members of the translation teams toNik Clayton1999-07-121-0/+1
| | | | | | | | | | | | | | | | | | | | track. The $Id$ line is normally at the bottom of the main comment block in the man page, separated from the rest of the manpage by an empty comment, like so; .\" $Id$ .\" If the immediately preceding comment is a @(#) format ID marker than the the $Id$ will line up underneath it with no intervening blank lines. Otherwise, an additional blank line is inserted. Approved by: bde Notes: svn path=/head/; revision=48792
* 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
* A bit of PR7278 which belongs here.Poul-Henning Kamp1998-07-221-2/+2
| | | | | | | | | PR: 7278 Reviewed by: phk Submitted by: Harlan.Stenn@pfcs.com Notes: svn path=/head/; revision=37846
* Add rcsid. Sort #includes.Philippe Charnier1998-03-231-3/+7
| | | | Notes: svn path=/head/; revision=34800
* 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-274-0/+435
Notes: svn path=/cvs2svn/branches/CHRISTOS/; revision=1590