summaryrefslogtreecommitdiff
path: root/clients/zwrite
Commit message (Collapse)AuthorAge
* add -U to zwrite for UNACKED messagesGravatar Karl Ramm2013-04-07
| | | | Based on a patch by Ray Link <rlink+git@cs.cmu.edu>
* zwrite: Add -S for ZNOAUTH sender spoofingGravatar Ray Link2013-04-07
| | | | zwrite: Manpage update for -S
* Make _sure_ we're not making assumptions about ZNotice_ts on the stackGravatar Karl Ramm2013-02-26
|
* Clean up warningsGravatar Jeffrey Hutzelman2013-02-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Eliminate compiler warnings due to various issues (listed below). This allows Zephyr to build cleanly under GCC versions ranging from 4.1.0 to 4.7.2 with all of the options shown below: -g -O2 -Wall -Werror -Wno-deprecated-declarations -Wmissing-declarations -Wpointer-arith -Wstrict-prototypes -Wshadow -Wextra -Wno-missing-field-initializers -Wno-unused-parameter and, on recent versions, -Wunreachable-code Test builds were done - On Ubuntu 12.10 (Quantal Quetzal) using both MIT Kerberos 1.10.1 and Heimdal 1.6, without krb4 and both with and without C-Ares and Hesiod - On Fedora 14 using Heimdal 0.6, without C-Ares or Hesiod and both with and without krb4 (KTH Kerberos 1.3rc2) - On Fedora Core 3, Fedora Core 5, Fedora 7, and Fedora 10, using Heimdal 0.6 and without C-Ares, Hesiod, or krb4 It also allows clean builds on Solaris 10 under the Sun Studio 12 (9/07) C compiler with the following options: -g -fd -v -errfmt -errhdr=%user -errtags=yes -errwarn=%all -erroff=E_OLD_STYLE_FUNC_DECL,E_ENUM_TYPE_MISMATCH_ARG,E_ARG_INCOMPATIBLE_WITH_ARG ... and under Solaris 9 with the Sun Forte 7 (3/02) C compiler with the above options and -erroff=E_FUNC_HAS_NO_RETURN_STMT. Solaris builds were done with Heimdal 0.6 and without C-Ares, Hesiod, or krb4. The following types of issues are addressed in this change: - Parameters and local variables with the same names as library functions - Parameters and local variables with the same names as globals - Declarations for exported global variables missing from headers - Prototypes for exported functions missing from headers - Missing 'static' on functions that shouldn't be exported - Old-style function declarations - Duplicate declarations - Type mismatches - Unused variables and functions - Uninitialized variables - Forward references to enums - Necessary header files not included - Violations of the aliasing rules, where GCC was able to detect them - Missing braces on if blocks that might be empty - Attempts to do pointer arithmetic on pointers of type void *, which is not permitted in standard C. - An attempt to pass a function pointer via a void * parameter, which is not permitted in standard C. Instead, we now pass a pointer to a structure, which then contains the required function pointer. - Unnecessary inclusion of <krb5_err.h>, which is already included by <krb5.h> when the former exists, and might not be protected against double inclusion, depending on which com_err was used. - Missing include of <com_err.h>, which was masked by the fact that it is included by headers generated by e2fsprogs compile_et - Use of com_err() with a non-constant value in place of the format string, which in every case was a fixed-size buffer in which a message was built using sprintf(!). Both the calls to sprintf and the fixed-size buffers have been removed, in favor of just letting com_err() do the formatting. - Various cases where X library functions expecting a parameter of type wchar_t * were instead passed a parameter of type XChar2b *. The two types look similar, but are not the same and are _not_ interchangeable. - An overly-simplistic configure test which failed to detect existence of <term.h> on Solaris, due to not including <curses.h>. - Using the wrong type for the flags output of krb5_auth_con_getflags() when building against Heimdal. A configure test is added to detect the correct type.
* zwrite: Replace outgoing default format with a small URLGravatar Geoffrey Thomas2012-11-24
| | | | | | We need the bytes, no modern client uses it, and it's inherently a security vulnerability. For those clients that do use it, provide a link to a page on the zephyr wiki that explains the issue.
* Retool our use of configure such that we track it like everyone else doesGravatar Karl Ramm2011-10-23
| | | | | i.e. don't keep generated or foreign stuff in our source tree. As a side effect, this lets us use a libtool, etc. from this century
* Fix typo in zwrite(1)Gravatar Karl Ramm2011-02-21
| | | | Fixes #72
* Have the makefiles support explicit target directories properly, courtesy ↵Gravatar Karl Ramm2010-11-06
| | | | wthrowe@mit.edu
* cleanup a couple of decades old zwrite nitsGravatar Karl Ramm2010-08-22
| | | | | Don't free the incoming notice if we don't know for sure there's one. Drop the message on read error in the tty case.
* Shave the zwrite default formats a touchGravatar Karl Ramm2009-08-08
|
* add defs for datarootdir so configure will Shut UpGravatar Karl Ramm2009-04-13
| | | | | | | | | | Rearrange what libraries get pulled in where, so dpkg-shlibdeps doesn't whine (see a theme here?) (Also so that, say, znol, doesn't have to link with Everything.) This will break platforms that don't do shared-library dependencies.
* fix manpages for new worldsGravatar Karl Ramm2009-03-29
|
* charset in zwrite, incomplete in zwgcGravatar Karl Ramm2009-03-15
|
* passes gcc -Wall with no warnings other than des cryppt C_block sadness and ↵Gravatar Karl Ramm2008-01-21
| | | | getsid problem
* de K&Rify; drop xzwrite, zmailnotify && zpopnotify from MakefileGravatar Karl Ramm2008-01-20
|
* debian patch applied and reconciled, version unfinalizedGravatar Karl Ramm2007-07-20
|
* Document ZEPHYR_VARS functionality.Gravatar andrew m. boardman2006-01-19
|
* Add shared library support for libzephyr.Gravatar Greg Hudson2005-07-14
|
* Fix send_off() loop so that it only runs once when there are noGravatar Greg Hudson2002-05-22
| | | | targets, even if the loop body does a "continue".
* fix things Irix n32 cc complains aboutGravatar Dan Winship1999-08-12
|
* Make it clear at what point the message has been queued by zhm, so peopleGravatar Dan Winship1999-03-22
| | | | | know if ^C'ing might not work. (Based on a patch by Greg.) Also, put more useful information about class/instance in the message.
* gratuitous automatic CC-adding flag for multiple-recipient zephyrsGravatar Dan Winship1999-03-10
|
* Some RCS ID cleanup: delete $Log$ and replace other RCS keywords with $Id$.Gravatar Greg Hudson1999-01-22
|
* Add brief documentation of the realm (-r) flag.Gravatar Greg Hudson1998-03-21
|
* Eliminate crufty reference to DEBUG.Gravatar Greg Hudson1998-02-02
|
* Do CFLAGS the gnu standard way. This means we compile with -g by default.Gravatar Greg Hudson1998-01-31
|
* Nuke leading quote, oops.Gravatar Greg Hudson1997-10-16
|
* confdir became sysconfdir.Gravatar Greg Hudson1997-09-23
| | | | Rip out support for in-tree com_err and ss.
* Pull in sources from zephyr locker. See /mit/zephyr/repository forGravatar Greg Hudson1997-09-14
| | | | detailed change information.
* This file was deleted in the 8.0 source treeGravatar Greg Hudson1996-08-27
|
* Exit status bugfix.Gravatar Craig Fields1995-01-20
| | | | Maybe more.
* Initial revisionGravatar Craig Fields1995-01-20
|
* Fix the bug where notice.z_kind is set to UNACKED when ncrecips == 0Gravatar Greg Hudson1994-11-12
| | | | and class/instance zephyrgrams hang.
* Send broadcast messages as UNACKED messages.Gravatar Richard Basch1994-04-30
|
* Removed prototyping that is done by system include files.Gravatar Richard Basch1993-11-20
|
* Don't ping for broadcast messages.Gravatar Richard Basch1993-11-19
| | | | | Changed bcopy to memcpy, index to strchr [ANSI] Set "auth" variable to ZAUTH for -a (in case -d was also specified)
* Use new Athena imake rulesGravatar Richard Basch1993-11-19
|
* Changed bcopy/bzero to _BCOPY/_BZERO macros (defined in <zephyr/zephyr_conf.h>Gravatar Richard Basch1993-09-24
|
* ansi style endifsGravatar Lucien Van Elsen1991-12-05
|
* Link -lkrb before -lcom_err.Gravatar John F. Carr1991-09-02
|
* Need to allocate extra byte for null at end of string when readingGravatar John F. Carr1990-12-14
| | | | from a terminal.
* Restored documentation of -O option and zwrite-opcode variable.Gravatar Kenneth G Raeburn1990-11-13
|
* Added "From: " before signature in default formats.Gravatar Kenneth G Raeburn1990-11-09
| | | | | Also made character arrays in main static (and therefore automatically cleared).
* backing out -O/-p changeGravatar Kenneth G Raeburn1990-10-23
|
* Incorporate time and date into default message formats.Gravatar Kenneth G Raeburn1990-10-19
|
* Removed `-p' ("pretty") argument; will probably be restored later whenGravatar Kenneth G Raeburn1990-05-21
| | | | a reasonable set of defaults are agreed upon.
* Took the \n after the signature out.Gravatar Marc Horowitz1990-03-13
|
* fixed zwrite to NOT null-terminate the last field of a messageGravatar Marc Horowitz1990-03-13
|
* updates for -O, -p optionsGravatar John Kohl1990-03-02
|
* usage goes to stderrGravatar John Kohl1990-03-02
| | | | add -s to usage message