summaryrefslogtreecommitdiff
path: root/usr.bin/w/w.c
AgeCommit message (Collapse)Author
2001-07-12first pass at a -Wall cleanupTheo de Raadt
2001-05-30- Fix usagesmart
- Remove an instance of "'buf[sizeof(buf) - 1] = '\0'" - A few style nits deraadt@ ok
2001-01-31move utmp to large format, usernames to 32 chars; downsjTheo de Raadt
2000-12-23hostnames are case-insensitive; brianTheo de Raadt
2000-07-07or just use puts() insteadTheo de Raadt
2000-07-07heck, be more careful with printf here tooTheo de Raadt
1999-08-12Support -M and -N flags in uptime mode tooTodd C. Miller
1999-06-05use inet_aton()Theo de Raadt
1999-04-25Make ttystat() work correctly with strings that are not NUL-terminated.Todd C. Miller
If ut_line begins with "ftp" copy the pid into a temp buffer before the strol() since ut_line may not be NUL-terminated.
1998-07-08whack kmem gid after kvm_openfiles()Theo de Raadt
1998-02-03usage line fix; pjanzen@foatdi.harvard.eduTheo de Raadt
1998-01-16Add rcsid tags.Todd C. Miller
If program has set argv[0] or argv[0][0] to NUL, print p->p_comm instead. Based on patch from Paul Janzen <pjanzen@foatdi.harvard.edu>
1997-12-24No, we are not making our w command incompatibleTheo de Raadt
1997-12-243 letters for tty name; for ftpMichael Shalayeff
1997-07-25more to the point err. msg.kstailey
1997-07-25proper progname grokMichael Shalayeff
proper printing for uptime < 1min
1997-05-30shorterTheo de Raadt
1997-05-30if less than 60 secs of uptime, say soTheo de Raadt
1997-04-01Slightly better fix. This one is explicately bounded by UT_HOSTSIZE.Todd C. Miller
1997-03-30NetBSD PR #3399: Avoid overflowing in ut_host into ut_time (bounds check). ↵Todd C. Miller
Fix from Tatoku Ogaito
1997-03-25ensure strftime buf has NUL; yokota@freebsdTheo de Raadt
1997-02-19Change usage() so it shows the right line arguments.Angelos D. Keromytis
1997-01-15getopt(3) returns -1 when out of args, not EOF, whee!Todd C. Miller
1996-12-22Deal with _POSIX_SAVED_IDS when relinquishing privilegesThorsten Lockert
1996-08-22header glitch if system up < 1 minute; from mouse@Collatz.McRCIM.McGill.EDUTheo de Raadt
1996-08-22deal with argument snipTheo de Raadt
1996-08-22Slightly better.Jason Downs
1996-08-22Handle ftp entries better.Jason Downs
1996-08-12invert -n into -a; default is no gethostbyaddr()Theo de Raadt
1996-08-06_POSIX2_LINE_MAX errbuf for kvm_openfiles()Theo de Raadt
1996-06-26rcsidTheo de Raadt
1996-05-30revoke privs before opening kvm if user has specified mem/kernel pathsTheo de Raadt
1996-04-21sync to netbsd 960418Theo de Raadt
1995-10-18initial import of NetBSD treeTheo de Raadt