summaryrefslogtreecommitdiff
path: root/usr.bin/rusers
AgeCommit message (Collapse)Author
2003-08-04protosTheo de Raadt
2003-06-17Sync with share/misc/license.template and add missing DARPA creditTodd C. Miller
where applicable.
2003-06-10mostly ansi cleanup; pval okTheo de Raadt
2003-06-04fix stdout line width handling; different from fix in 3289Theo de Raadt
2003-06-03Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-06-03Use an ISC-tyle license for all my code; it is simpler and more permissive.Todd C. Miller
2003-01-11o specifying host on the command line implies the -a flagTodd C. Miller
o honor -h, -i, and -u when hosts are specified on the command line o print hostname when no users for "rusers -la" o print "day" not "days" when there is only one of them o avoid calling malloc(0) (pedantic, this was not used unsafely)
2002-06-02missing sockaddr inits; ok itojunTheo de Raadt
2001-11-07When mixing the -l and -i flags sort on each individual user'sTodd C. Miller
idle time, not the minimum idle tiem of all users on the host. This makes the -i option much more useful...
2001-11-06implement missing sorting optionsTodd C. Miller
2001-11-06Must zero out timeout by hand now that it is no longer global.Todd C. Miller
2001-11-06Restore asyncronous RPC code now that I found the uninitialized variableTodd C. Miller
that was causing problem.
2001-11-02Revert to clnt_broadcast() method until an alignment problem with theTodd C. Miller
asyncronous rpc code in the previous commit is fixed.
2001-11-01Major overhaul.Todd C. Miller
Add protocol version 3 support. To avoid doing two separate broadcasts (like the solaris client does) we now do the equivalent of clnt_broadcast() ourselves and send both version 2 and 3 broadcasts. These are staggered such that under normal circumstances the version 3 reply will be received before the version 2 reply (which is what we want). Version 3 support is important now that we have long user and host names in utmp. Avoid potential duplicates on multihomed machines by storing all the addresses we get back from gethostbyaddr(), not just a single address. Reduce the timeout from 1 minute to 30 seconds which is closer to what Solaris uses and is generally more useful. Check window width and take this into account when formatting lines in -l mode.
2001-10-11Use RNUSERS_MAXHOSTLEN, RNUSERS_MAXUSERLEN and RNUSERS_MAXLINELENTodd C. Miller
instead of UT_HOSTSIZE, UT_NAMESIZE and UT_LINESIZE since the UT_* constants define sizes on the local machine, not the sizes specified by the rusers protocol.
2001-06-18clnt leaks; tommy@ti.comTheo de Raadt
2001-02-17Tidy, be a bit more careful about buffers, and don't use strlen() on utmp.Paul Janzen
2001-02-05default to 8 wide for user namesTheo de Raadt
2001-01-31fat utmp handling; truncate to 16 chars for now, until we decide how uglyTheo de Raadt
we will accept.
2000-11-09Change all option list specifications to ".Bl -tag -width Ds". Most manAaron Campbell
pages just needed their -width parameter tweaked to "Ds", which provides a nice width of 6 constant characters. For consistency more than anything.
2000-04-15Mostly punctuation fixes.Aaron Campbell
2000-03-23More pedantic man page formatting insanity, lalalaAaron Campbell
2000-03-10Various cleanups and standardization.Aaron Campbell
2000-03-05Finish standardizing options list introduction.Aaron Campbell
1999-06-05- remove trailing white spaceAaron Campbell
- remove arguments from .Os macros - remove arguments from .Nm macros, where appropriate - some more Dq/Sq/Ql insanity - still lots to do in the usr.bin tree... :/
1998-09-27usr.bin/ man page cleanups, n-sAaron Campbell
1997-08-18#include <string.h> not <strings.h> -- Yes, I'm a weanie...Todd C. Miller
1997-07-08Fixed remotely triggerable buffer overflow.bitblt
1997-06-20WallTheo de Raadt
1997-01-17r?index -> strr?chrTodd C. Miller
1996-08-16indentTheo de Raadt
1996-06-26rcsidTheo de Raadt
1996-04-21sync to netbsd 960418Theo de Raadt
1995-10-18initial import of NetBSD treeTheo de Raadt