Alexander Langer
15dde4b2f5
List the -t option in usage().
...
PR: 21734
Submitted by: Giorgos Keramidas <keramida@ceid.upatras.gr>
2000-10-06 12:10:51 +00:00
Alexander Langer
d181bf8003
List the options in alphabetic order.
...
PR: 21734
Submitted by: Johan Karlsson <k@numeri.campus.luth.se>
2000-10-06 12:07:46 +00:00
Ruslan Ermilov
9b9c06b091
It may happen so that the local talk daemon is not running.
...
Let the user know...
2000-10-05 17:39:01 +00:00
Ruslan Ermilov
0272ef9b3e
Do not allow `finger -m /somefile' as well.
2000-10-05 15:56:13 +00:00
Ruslan Ermilov
d2ba10a92f
Replaced unsafe use of sprintf() with snprintf().
2000-10-03 17:05:02 +00:00
Brian Somers
7ce8924adb
Don't allow finger /somefile, only allow filname expansions from
...
inside /etc/finger.conf
PR: 21704
2000-10-02 22:27:34 +00:00
Nick Hibma
80af0816cd
Instead of printing '(null)' if there is no tty, print 'no tty'.
...
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.
2000-10-02 17:31:57 +00:00
Will Andrews
b17aa0e426
Assume MAINTAINER. I will be taking the job of merging NetBSD/OpenBSD
...
improvements (including :C & :L, among others). After that, I'll be coming
up with other ways to improve make(1).
Discussed in spirit with: peter
2000-09-29 19:51:48 +00:00
Doug Rabson
946ff7b4b9
Add ia64 support and fix problems when cross-building when the host has
...
a different pointer size from the target.
2000-09-29 13:29:43 +00:00
Peter Wemm
34c46f2d3d
*** empty log message ***
2000-09-25 18:44:30 +00:00
Ruslan Ermilov
11a0f7fe07
Do not call freeaddrinfo(res0) twice.
...
PR: bin/21476
2000-09-25 11:38:28 +00:00
Garrett Wollman
2804330f1a
Don't assume ai0->ai_canonname will always be filled in. Print the
...
user-supplied host name if we can't get a canonical name.
Obtained from: contrib/tcp_wrappers/socket.c rev. 1.4 (in spirit)
2000-09-24 01:54:49 +00:00
Garrett Wollman
e45ccde7c6
Implement IPv6 support. Also restructure the way multi-homed hosts
...
are treated, regardless of protocol.
2000-09-22 01:06:40 +00:00
Garrett Wollman
a1d399d2ed
Delete a bogus reference to T/TCP -- the problem still exists on Standard
...
TCP.
2000-09-22 01:04:59 +00:00
Warner Losh
fbbed1ea76
Fix buffer overflow when DISPLAY is longer than 43 characters. This
...
is not exploitable because telnet doesn't run with elevated privs.
Didn't fix all the other potential buffer overflows. Would be a good
task for someone who has lots of time to carefully study each case
because cut and paste solutions are dangerous for this code base.
Added $FreeBSD$ in the same way that command.c did it.
2000-09-20 23:07:04 +00:00
Ruslan Ermilov
3f320c4e60
Fixed the printing of header for IPv4 routing table without -l option.
...
Broken in rev 1.44.
2000-09-18 11:14:40 +00:00
Sheldon Hearn
d20cdce92f
Correct a few typos, including a mis-represented option (-s instead of
...
-h for NIS host).
Submitted by: Peter Avalos <pavalos@theshell.com>
2000-09-18 07:45:47 +00:00
Andrey A. Chernov
2aed24b487
Remove unneded -ltermcap
2000-09-16 03:30:50 +00:00
Andrey A. Chernov
313c02bc4b
Remove unneded -lmytinfo
2000-09-16 03:27:54 +00:00
Jordan K. Hubbard
c137d6780d
cc -O -pipe -I/usr/src/usr.bin/kdump/../ktrace -I/usr/src/usr.bin/kdump/../.. Fix ioctl.c creation to deal with the depend case more properly.
...
Submitted by: Ruslan Ermilov <ru@sunbay.com>
2000-09-14 18:53:08 +00:00
Jordan K. Hubbard
d9f61e83b6
Fix ioctl.c creation to deal with the depend case more properly.
...
Submitted by: Ruslan Ermilov <ru@sunbay.com>
2000-09-14 18:52:48 +00:00
Jordan K. Hubbard
6b61687292
remove .PHONY to avoid gratuitous rebuild of ioctl.c each time.
...
Approved by: sef
2000-09-14 06:20:19 +00:00
Brian Somers
1b57e36589
Don't drop out when we've processed argc - 1 names.... arguments
...
may expand to more than one user.
PR: 21228
2000-09-12 21:58:31 +00:00
Jacques Vidrine
61a35ccda9
Activate hesinfo.
...
Noticed by: Don Lewis <Don.Lewis@tsc.tdk.com>
2000-09-08 23:35:49 +00:00
Nick Hibma
c613a5e7dc
Fix breakage introduced in rev.1.7. yystacksize and yysslim are global and
...
should be prefixed by YYPREFIX as well.
Only relevant if -p <yyprefix> is used. Used in cases where multiple parsers
are used in executable.
2000-09-07 15:01:18 +00:00
Jason Evans
0384fff8c5
Major update to the way synchronization is done in the kernel. Highlights
...
include:
* Mutual exclusion is used instead of spl*(). See mutex(9). (Note: The
alpha port is still in transition and currently uses both.)
* Per-CPU idle processes.
* Interrupts are run in their own separate kernel threads and can be
preempted (i386 only).
Partially contributed by: BSDi (BSD/OS)
Submissions by (at least): cp, dfr, dillon, grog, jake, jhb, sheldonh
2000-09-07 01:33:02 +00:00
Jacques Vidrine
248aee623c
Add nsswitch support. By creating an /etc/nsswitch.conf file, you can
...
configure FreeBSD so that various databases such as passwd and group can be
looked up using flat files, NIS, or Hesiod.
= Hesiod has been added to libc (see hesiod(3)).
= A library routine for parsing nsswitch.conf and invoking callback
functions as specified has been added to libc (see nsdispatch(3)).
= The following C library functions have been modified to use nsdispatch:
. getgrent, getgrnam, getgrgid
. getpwent, getpwnam, getpwuid
. getusershell
. getaddrinfo
. gethostbyname, gethostbyname2, gethostbyaddr
. getnetbyname, getnetbyaddr
. getipnodebyname, getipnodebyaddr, getnodebyname, getnodebyaddr
= host.conf has been removed from src/etc. rc.network has been modified
to warn that host.conf is no longer used at boot time. In addition, if
there is a host.conf but no nsswitch.conf, the latter is created at boot
time from the former.
Obtained from: NetBSD
2000-09-06 18:16:48 +00:00
Dag-Erling Smørgrav
0de750cfc8
Reintroduce functionality and error checks that were boneheadedly removed
...
in the previous commit. Pass me the pointy hat.
PR: bin/21061
2000-09-06 07:28:02 +00:00
Warner Losh
c9e0534901
When we have both a rcsid and sccsid, ifdef 0 the sccsid. This
...
appears to be the standard FreeBSD way to do this. style(9) is silent
about this, however.
2000-09-04 06:11:25 +00:00
Warner Losh
62f882d620
getopt and friends are declared in <unistd.h>
...
getopt returns -1 not EOF.
2000-09-04 06:09:54 +00:00
Warner Losh
b07b8563ff
optarg and optind are declared in unistd.h.
...
h_error is declared in netdb.h
2000-09-04 05:59:25 +00:00
Dag-Erling Smørgrav
9d40f64ad7
Use dirname(3).
2000-09-03 17:10:00 +00:00
Dag-Erling Smørgrav
2da8f234a1
Use basename(3).
2000-09-03 17:09:41 +00:00
Dag-Erling Smørgrav
74912943bf
Don't try to set the mtime of the output file if it's not a regular file.
...
Pointed out by: cwt
2000-09-02 09:48:34 +00:00
Dag-Erling Smørgrav
e2b41a622b
Don't unlink the target file if it's not a regular file.
2000-08-31 11:24:15 +00:00
Ruslan Ermilov
6159b9dd5b
Restore support for displaying raw IPv4 sockets and
...
correct the author's name. Were broken in rev 1.6.
Approved by: des
2000-08-30 13:24:01 +00:00
Dag-Erling Smørgrav
2d090923d6
Invoke netstat(1) and fstat(1) with full path.
2000-08-30 09:18:20 +00:00
Brian Feldman
9fa4c1703e
Get rid of the old version.
2000-08-29 23:38:12 +00:00
Brian Feldman
cc70d84c4a
Use a C version of which(1).
...
Submitted by: Dan Papasian <bugg@bugg.strangled.net>
Reviewed by: jhb
2000-08-29 23:30:52 +00:00
Peter Wemm
8750ed5f77
After positive feedback from a few folks, activate a switchover to
...
using killall.c instead of the perl version that depends on procfs.
The C version uses sysctl(). The program is based on a hack that was
originally written about 6 years ago and has evolved somewhat since then.
(which is why it is a superset of killall.pl, rather than being a clone.)
With apologies to: wosch
2000-08-28 22:09:38 +00:00
Bill Fumerola
4dd97a3440
Add 'shot', using the definition used by bars and shotglasses.
2000-08-27 22:02:42 +00:00
Peter Wemm
e1669132dc
Try and fix up some bogus indentation leftovers from emacs several
...
years ago.
2000-08-27 02:12:29 +00:00
Peter Wemm
a03884671d
Sigh, today is not my day. Convert a verbose while() .. loop into a for()
...
loop.
Submitted by: billf
2000-08-27 01:17:11 +00:00
Peter Wemm
a6b474b6c1
*blush*. I was *sure* I compiled this after the last change..
...
Add the missing )
Shamed by: billf
2000-08-27 01:10:55 +00:00
Peter Wemm
1198f21caf
killall.c is meant to be a superset replacement of killall.pl, the
...
main difference is that it uses sysctl to get the process lists rather
than /proc - thereby reducing the dependency on /proc by one more tool.
2000-08-27 00:46:25 +00:00
Brian Feldman
0debe874a0
Fix a premature freeing bug found with malloc debugging courtesy John Hay.
...
Submitted by: jhay
2000-08-26 03:42:51 +00:00
Brian Somers
78be7a111a
Finger.conf first appeared in 4.2 (now that it's been MFCd)
2000-08-25 22:22:04 +00:00
Brian Somers
475f25ebaf
Fix the -m option - broken by the last commit.
...
Submitted by: Mark Knight <markk@knigma.org>
2000-08-25 18:28:43 +00:00
Sheldon Hearn
909aa0d5b9
Add a missing comma.
2000-08-25 08:29:28 +00:00
Brian Somers
040864ac7a
Allow finger.conf to contain aliases for files that will be displayed
...
when fingered.
Submitted by: Mark Knight <markk@knigma.org>
2000-08-25 01:01:07 +00:00