Compare commits

...
894 Commits
Author SHA1 Message Date
Peter Wemm 3f6ab17207 MFC: rev 1.4: forward compatability with cvs-1.12 repository 2008-01-07 09:11:23 +00:00
Tor Egge 0b22bdff85 MFC: Don't set the COMPLETE flag in an inodedep structure before the
related inode has been written.
2005-08-26 20:40:31 +00:00
Bruce Evans 2d0a65fb58 MFC (1.405: quick fix for most of the pessimization in rev.1.194). 2003-12-02 06:18:37 +00:00
Bruce Evans 4214fd3688 Avoid depending on a gas bug, so that this file works when assembled
by current versions of gas that don't have the bug as well as by the
RELENG_3 version.  A 32-bit load of %esp in 16-bit mode was mangled.
The current version of gas still produces a different object file due
to related (but harmless) bugs involving bogus operand size prefixes
for segment registers.
2003-12-01 13:21:47 +00:00
Gregory Neil Shapiro 517121dc1f MFC: sendmail address parsing bug fix
Approved by:	so (nectar)
2003-09-17 20:22:03 +00:00
Jacques Vidrine 5282423a4a MFC 1.24: Validate the iBCS2 statfs(2) length parameter. 2003-08-10 23:35:21 +00:00
Bruce Evans 8daec3f7ea MFC: 1.94 and 1.125 (don't use hard newlines in string literals, and fix
some style bugs on the same lines).

This completes making some RELENG_3 kernels work when compiled by gcc-3.3.
2003-08-05 07:07:37 +00:00
Jacques Vidrine a9c8e89592 realpath(3) bug fix: There was an off-by-one error in computing the
size of the resulting canonical path.
2003-08-03 23:47:39 +00:00
Bruce Evans ad3dbee7a1 MFC locore.s 1.172-1.174 (don't hide the name of tmpstk, and clear the
bss properly) with adjustments for RELENG_3.  The adjustments are the
same as for RELENG_4.

This is part of some making RELENG_3 kernels work when compiled by gcc-3.3.
Fixing bss clearing and ATOMIC_ASM constrains are the only nontrivial parts.
2003-08-02 14:54:49 +00:00
Bruce Evans e81dc82731 MFC (1.24: pass in the constraints on the V parameter so that the char
versions can be given different, non-bogus constraints).

This is part of making some RELENG_3 kernels work when compiled by gcc-3.3.
I started out only wanting them to compile, but had to test them for
delicate changes like this.  This change makes no difference for LINT
compiled by the RELENG_3 compiler, except for vfs_cluster.o where it
gives some differences related to register selection near an
atomic_add_char().
2003-07-30 19:31:11 +00:00
Bruce Evans 23047d3472 MFC (1.15: missing FREE()). This was supposed to be MFC'ed in 1.3.2.5,
but FREE was misspelled so this file has just not compiled since 1.3.2.5.

This finishes making LINT compile in RELENG_3.
2003-07-29 20:44:35 +00:00
Bruce Evans f732d57b47 Commented out olpt devices so that LINT is almost compilable in RELENG_3.
olpt devices never worked in RELENG_3, if anywhere, since a driver's
namespace is not affected by changing only the driver's name.  LINT
apparently hasn't been buildable in RELENG_3 since rev.1.539.2.14
(between 3.1R and 3.2R).
2003-07-29 19:35:50 +00:00
Bruce Evans f417cb4888 MFoldC (a tiny part of 1.61: translate to C: don't use hard newlines in
a string literal).

This is part of making some RELENG_3 kernels compilable by gcc-3.3.
2003-07-29 10:38:14 +00:00
Bruce Evans ed4e49ffbd MFC (1.32: translate to C: don't use hard newlines in a string literal;
1.41: use the correct function name in the string literal).

This is part of making some RELENG_3 kernels compilable by gcc-3.3.
2003-07-26 12:09:58 +00:00
Gregory Neil Shapiro 905ce239fd sendmail parsing buffer overflow fix
Approved by:	so (nectar)
2003-03-29 20:09:48 +00:00
Gregory Neil Shapiro 0ad9dc59e9 FreeBSD-SA-03:04.sendmail: sendmail header parsing buffer overflow
Approved by:    security-officer (nectar)
2003-03-03 17:23:11 +00:00
Assar Westerlund 6f51866403 MFC kadm_ser_wrap.c:1.1.1.4: fix buffer overflow
MFC updating kerberosIV version

Obtained from:	kth-krb CVS
2002-10-24 02:49:08 +00:00
Juli Mallett 40095fd9d6 MFC: fortune(6) datfiles 2002-08-10 02:19:34 +00:00
Trevor Johnson 37e223c81c MFC: fix buffer overflows described in FreeBSD-SA-02:28.resolv.
Sergey A. Osokin and I tested this.

Approved by:	security-officer
2002-07-08 22:17:52 +00:00
Juli Mallett ad9279f647 MFRELENG_4:
Document traditional BSD behaviour for changecom with no arguments.

PR:	bin/17480
2002-06-17 04:05:07 +00:00
Bruce Evans 80190b3378 Fixed missing definitions of __dead2, __pure2 and __unused when parts
of RELENG_3 are compiled by gcc-3.  These macros are for cosmetic
purposes (optimization and error checking), so they should have been
defined away for all unknown compilers, including for versions of gcc
that were apparently not dreamt of when RELENG_3 was current or stable,
but the ifdefs are too backwards-looking and got this wrong.

RELENG_4 has the same bug for gcc-4.

The corresponding idefs in -current and most other ifdefs for gcc avoid
the bug by assuming that all future versions of gcc will be like gcc-3.
2002-05-27 12:52:58 +00:00
Yoshihiro Takahashi 0442bfcfbf MFi386: revision 1.129.2.7. 2002-05-19 13:13:22 +00:00
Bruce Evans 7080af00c2 MFC (1.133: "For what it's worth, idelayed is declared as a volatile in
the headers, and even though it's not used in this file make it a
volatile here too").

The worth of this is that it makes this file actually compilable by C
compilers like gcc-3.
2002-05-15 05:18:56 +00:00
Bruce Evans b6d5c5e83a MFC (1.12: renamed gdb's private strlen and strlcpy to avoid conflicts
with the public ones declared in a system header).  This helps unbreak
building RELENG_3 kernels with gcc-3.  gcc-2's special (broken) handling
of the corresponding builtins apparently prevented detection of the
conflicts even when the public functions are declared explicitly.
2002-05-15 05:00:24 +00:00
Jeroen Ruigrok van der Werven 3957ebe486 Work correctly when skips are given.
Add $FreeBSD$

PR:		18597
Submitted by:	Anatoly Vorobey <[email protected]>
2002-04-08 13:13:28 +00:00
Bruce Evans 0dcf528396 MFC (cy_pci.c 1.26: work around a PLX9050 bug). 2002-03-17 04:16:45 +00:00
Alfred Perlstein f0843112af Backport sed -E support (extended regex support).
Submitted by: Dan Nelson <[email protected]>
2002-01-30 20:21:18 +00:00
Greg Lehey 2e031e8eba MFC: remove extraneous setjmp, add a panic if we try to longjmp
without holding the config lock.
2002-01-30 01:44:14 +00:00
Jeroen Ruigrok van der Werven af862a47cb MFS: Add quirk entry for the Hitachi DK31* drives.
PR:		18793
Submitted by:	Paul Haddad <[email protected]>
2001-11-15 20:03:37 +00:00
Max Khon 9ae0b19614 forced commit (PR, Submitted by)
PR:             27922
Submitted by:   Eugene Grosbein <[email protected]>
2001-10-21 23:28:15 +00:00
Max Khon 95c67effed MFC: SA 01:62 fix
Submitted by:   Eugene Grosbein <[email protected]>
Approved by:	silence on -security
2001-10-21 23:18:09 +00:00
Max Khon ef935a1fae MFC rev 1.18: Protect the remaining instance of chdir() using
fts_safe_changedir().
2001-10-10 19:49:30 +00:00
Max Khon cc6aa31940 MFC rev. 1.60: Enable 8bit chars excepting high controls 2001-10-10 19:44:54 +00:00
Ruslan Ermilov fc1801e3e9 MFC: 1.18: Terminate the array of execv(3) pointers by a NULL pointer. 2001-10-04 09:12:35 +00:00
Peter Wemm 30a4159905 MFC: fowards compatability hack so that we can update the compat3x
libc.so.3.gz.uu file in -current.  This is the same as RELENG_4 1.7.2.3.
2001-09-26 01:48:56 +00:00
Robert Watson d16c4f3675 MFC/MFS per-user .login_conf disable + adjacent comment.
login.conf.5: 1.37
login_cap.c: 1.22, 1.23
2001-09-20 21:21:12 +00:00
Kris Kennaway 3b0158c4b4 MFC: Fix buffer overflow in queue file handling 2001-08-30 09:46:44 +00:00
Akinori MUSHA 44362a47a5 MFC: MASTER_SITES_* 2001-08-23 20:28:24 +00:00
Jesper Skriver 5af9273042 MFS
src/sys/netinet/ip_input.c      rev 1.130.2.22
src/sys/netinet6/frag6.c        rev 1.2.2.4
src/sys/netinet6/in6_proto.c    rev 1.6.2.4

  Prevent denial of service using bogus fragmented IPv4 packets.

  A attacker sending a lot of bogus fragmented packets to the target
  (with different IPv4 identification field - ip_id), may be able
  to put the target machine into mbuf starvation state.

  By setting a upper limit on the number of reassembly queues we
  prevent this situation.

  This upper limit is controlled by the new sysctl
  net.inet.ip.maxfragpackets which defaults to nmbclusters/4

  If you want old behaviour (no upper limit) set this sysctl
  to a negative value.

  If you don't want to accept any fragments (not recommended)
  set the sysctl to 0 (zero)

Obtained from:	NetBSD (partially)
2001-08-06 09:20:57 +00:00
Bruce A. Mah e6f2b760a4 MFC: SA-01:49. 2001-07-24 01:16:52 +00:00
Kris Kennaway fe21389f84 MFC: Correct semantics of output_data*() and netflush() to ensure
deterministic operation
2001-07-23 22:12:45 +00:00
Kris Kennaway 5ff1744f11 MFC^2: Correct semantics of output_data*() and netflush() to ensure
deterministic operation
2001-07-23 22:10:45 +00:00
Kris Kennaway 61d47fa866 MFC: Prevent remotely exploitable buffer overflow 2001-07-23 02:19:35 +00:00
Dima Dorfman 9f7a920119 MFC 1.134, 1.135: don't share sig handlers after an exec.
Approved by:	kris
2001-07-11 23:04:37 +00:00
Peter Wemm a87462cae3 MFC: rev 1.131: set P_SUGID before releasing ptrace and block opportunities 2001-06-16 23:41:58 +00:00
Peter Wemm 5fc8aceac5 MFC: rev 1.40: trivial fix for savecore on 2GB+ ram machines 2001-06-08 03:14:05 +00:00
Bruce A. Mah 4479ee219f MFC: SA-01:39. 2001-05-02 21:49:23 +00:00
Kris Kennaway 9f6334c28e MFC: Better TCP ISN randomization 2001-05-02 20:48:34 +00:00
Jens Schweikhardt 7dd514fcc6 MFC: fix grammar bogon and add $FreeBSD$. 2001-04-26 17:23:42 +00:00
Akinori MUSHA 6563052715 MFC: Correct and update Japanese holidays. 2001-04-20 14:14:21 +00:00
Jens Schweikhardt ca8af0754f Fixed typos.
Approved by:	jkh
2001-04-17 19:25:41 +00:00
Chris D. Faulhaber 68b25a6d3f MFC: Limit number of paths returned via glob() for authorized users 2001-04-17 18:04:09 +00:00
Chris D. Faulhaber 6b480559c6 MFC 1.74: globbing limits for ftpd 2001-04-17 02:47:36 +00:00
Bruce A. Mah 78c1e541bf MFC: ntpd(8) vulnerability fix cross-references SA-01:31. 2001-04-14 16:20:34 +00:00
Bruce A. Mah 47d96a5edd MFC: glob(3) limits, ftpd(8) usage of same, ntpd(8) vulnerability closed. 2001-04-10 04:48:58 +00:00
Chris D. Faulhaber 2ecb30bb11 MFC: globbing limits for ftpd 2001-04-08 00:15:00 +00:00
Chris D. Faulhaber cdd8f71174 MFC: Fix potential remote exploit 2001-04-06 18:21:00 +00:00
Bruce Evans 43a20f2a6e MFC (rev.1.14: don't follow the null pointer went the server sends an
unparseable timestamp).

PR:		25243
2001-04-06 11:37:50 +00:00
Peter Wemm c15cd85a81 MFC rev 1.17 2001-03-29 01:46:57 +00:00
Peter Wemm 583eed4bf5 MFC: sync all the way up to glob.c rev 1.16 and glob.h rev 1.4 2001-03-28 16:40:11 +00:00
Bruce A. Mah c75888b9ac MFC: timed(8) security fix (FreeBSD-SA-01:28), rwhod(8) security
fix (FreeBSD-SA-01:29), FFS/EXT2FS security fixes (FreeBSD-SA-01:30).
2001-03-26 18:10:58 +00:00
Satoshi Asami 85751d7570 MFC (science and ukrainian categories). 2001-03-24 22:11:07 +00:00
Jeroen Ruigrok van der Werven cf8b419033 MFC: 3.5-STABLE has lpt and olpt, not nlpt. Reflect docs to reality. 2001-03-14 13:43:23 +00:00
Kris Kennaway eeea1b0c51 MFC: 1.6 and 1.7, which was forgotten until now. 2001-03-11 10:47:03 +00:00
Gary Jennejohn 1d37635da5 Add support for the Am79C973/Am79C975. The Am79C973 was already
in there, but I reworked it to match the patch in the PR.

PR:		i386/19365
Submitted by:	Koichi Soraku <[email protected]>
2001-03-04 12:17:48 +00:00
Bruce A. Mah ac211335f0 MFC: ICMP bugfix. 2001-03-01 22:29:02 +00:00
Jeroen Ruigrok van der Werven 8ab6bf4096 MFC: BIND 8.2.3-REL documentation. 2001-02-27 10:01:41 +00:00
Jesper Skriver b94ef44e04 MFC:
src/sys/netinet/in_pcb.c     rev 1.78
src/sys/netinet/in_pcb.h     rev 1.36
src/sys/netinet/tcp_subr.c   rev 1.91
src/sys/netinet/udp_usrreq.c rev 1.86

Without this a attacker sending ICMP messages, where the attached
IP header (+ 8 bytes) has the address and port numbers == 0, would
have the ICMP message applied to all sessions.

Approved by:    kris
Inspired by:    NetBSD
2001-02-24 20:09:22 +00:00
Jeroen Ruigrok van der Werven 9b2f8a07a4 MFC: Do not try to install dns-setup. 2001-02-18 10:32:25 +00:00
Jeroen Ruigrok van der Werven 4935b85a43 MFC: Remove old dns-setup document. We don't use BIND 4 anymore. 2001-02-18 10:30:50 +00:00
Bruce A. Mah 72221ba51b MFC: Prevent "pkg_version -c | sh" abuse.
pkg_version.pl: 1.15 -> 1.16
2001-02-16 17:53:02 +00:00
Will Andrews c6f2ece715 MFC: Bugfixes. Small ANSI cleanup. Style changes avoided. Committed on
a RELENG_3 machine (which will become RELENG_4 soon enough..).
2001-02-13 03:55:52 +00:00
Jeroen Ruigrok van der Werven 9040025f22 MFC: Add list.h to the to be installed header files. 2001-02-07 21:11:35 +00:00
Jeroen Ruigrok van der Werven 01925b4434 Fix typo left in the past:
NONBINMODE -> NOBINMODE
2001-02-07 19:46:19 +00:00
Jeroen Ruigrok van der Werven 85f40256b0 MFC: INC* variables and the ability to install headerfiles through
INCS.
2001-02-07 19:38:21 +00:00
Chris D. Faulhaber 99fb4351b9 MFC 1.12:
use more secure temporary files
2001-02-05 14:02:14 +00:00
Bruce A. Mah 89f275c96c BIND update now has security advisory number. 2001-02-02 17:08:05 +00:00
Julian Elischer 90543df1cc MF4: Don't dereference pointers we haven't checked to be valid. 2001-02-02 13:36:39 +00:00
Jeroen Ruigrok van der Werven 3d0dc90c12 Add the isc directory to the mtree description. 2001-01-30 21:39:42 +00:00
Jeroen Ruigrok van der Werven 24908d1a87 Also add libisc to the top Makefile. 2001-01-30 21:32:10 +00:00
Jeroen Ruigrok van der Werven f9fa0f4c91 *sigh*
No idea how these files got mangled

Submitted by:	Pekka Savola <[email protected]>
2001-01-30 21:26:18 +00:00
Bruce A. Mah bb679d538b Update for security advisories: 01:11, 01:13, BIND update. 2001-01-30 15:47:25 +00:00
Jeroen Ruigrok van der Werven a8fcd30033 *sigh*
Fix another merge slippage.
2001-01-30 15:36:06 +00:00
Jeroen Ruigrok van der Werven 3c2b09f594 Fix MFC mistake of double definition of PORT_AFTER_H. 2001-01-30 14:37:45 +00:00
Jeroen Ruigrok van der Werven bb7e4c77e6 Fix port_after.h so that it will work on 3-STABLE because it doesn't
have IPv6 by default.

Submitted by:	des
2001-01-30 11:59:17 +00:00
Jeroen Ruigrok van der Werven 5098034fd5 MFC: 8.2.3 2001-01-30 11:55:43 +00:00
cvs2svn 4ccec34df9 This commit was manufactured by cvs2svn to create branch 'RELENG_3'. 2001-01-28 23:14:17 +00:00
Jeroen Ruigrok van der Werven 97ab32dac1 MFC: Security fix: correctly set groups according to the user.
Don't allow blocking on the opening of ~/.fakeid.
2001-01-26 23:36:57 +00:00
Bruce A. Mah 2eda977282 Catch release notes up with security advisories: 00:58, 00:61, 00:62,
00:70, 00:78, 00:77, 01:08, 01:09, 01:10.
2001-01-26 20:27:50 +00:00
Kris Kennaway 2c45c79901 MFC: manpage change corresponding to crontab fix described in SA-01:09 2001-01-23 21:19:04 +00:00
Josef Karthauser 6298d851d3 MF4: Merge in recent changes from -releng_4, and thereby bring the
code into sync with -current.
2001-01-21 21:21:37 +00:00
Maxim Sobolev 9c6b822e58 MFC:
- Fix a nasty bug where pkg_create doesn't gzip package if lengh of package
  name is less than 5;
- style cleanups.
2001-01-19 11:08:57 +00:00
Maxim Sobolev 2a57ca6d81 MFC:
Fix a bug where pkg_create does not make an md5 entry for the last item in
the packing list. Also use switch() instead of zillion "else if ()" and for()
loop instead of while() loop for traversing through linked list.
2001-01-15 14:13:18 +00:00
Chris D. Faulhaber 805e3c58a4 MFC: ECN flag handling fixes in IPFW 2001-01-13 02:44:21 +00:00
Julian Elischer f680fa7756 Missing FREE() 2001-01-09 00:55:55 +00:00
Matthew Dillon 6f6f350f6c MFC 1.163 to 3.x. 2001-01-06 19:46:42 +00:00
Chris D. Faulhaber aee624e313 MFC: limit utrace 2001-01-06 18:59:30 +00:00
Chris D. Faulhaber 5d3369eca2 MFC: Use secure temporary files 2001-01-01 13:35:21 +00:00
Josef Karthauser c3625c0a28 MF4: Improve support for shadow object directories by adding the -o and -p
flags.
MF4: Add support for customising the make flags on a per-program basis from
     within a crunch.conf file.
MF4: A number of security fixes:
	o check strdup() return values
	o strcpy() -> strlcpy()
	o sprintf() -> snprintf()
	o mktemp() -> mkstemp()
	o use err() instead of errx() in out_of_memory() function since
	  errno will probably be set
2000-12-23 18:56:06 +00:00
Ian Dowse 0a4c298e78 MFC: 1.15
Don't crash with a SIGBUS when short packets are received, include
source IP in log messages for bad packets.

Requested by: kris
2000-12-23 15:32:16 +00:00
Matthew Dillon b204ec7e0d MFC ufs_readwrite.c 1.72, ext2_readwrite.c 1.20. Fix a data-consistency
race between write() and mmap().
2000-12-22 18:54:26 +00:00
Robert Watson 3395269086 o MFC of an appropriate adaptation of 1.22, tighten restrictions on
the use of /proc/pid/ctl.  This is a backport of the -CURRENT patch
  to use the procdfs CHECKIO() interface rather than the p_can
  interface available in -CURRENT.  sef reviewed the patch for -CURRENT,
  and had proposed a less fascist version of the patch for -STABLE.

Submitted by:	jedgar
Reviewed by:	security-officer, alfred
2000-12-18 20:56:05 +00:00
Kris Kennaway 762707e35e MFC: Prevent local user denial of service. Untested, but
I need to release the advisory and the keepers of the 3.x
branch have had over a month to fix this.
2000-12-18 15:21:18 +00:00
Assar Westerlund 4b6daf15b5 MFC: (kdc_reply_cipher): fix buffer over-run 2000-12-15 03:02:19 +00:00
Assar Westerlund 7bb4f0b3c2 MFC: (tf_create): remove the overwriting of the old ticket file 2000-12-15 03:01:31 +00:00
Assar Westerlund 894f8eaab2 MFC: remove (obsolete) support for environment variables. 2000-12-15 03:01:04 +00:00
Assar Westerlund 1a3e48bcc2 MFC: 1.9->1.10
(scrub_env): change to only accept a listed set of variables,
including only non-filename contents for TERMCAP
2000-12-15 03:00:11 +00:00
Assar Westerlund 28c2b96fbf MFC: 1.27->1.28
(scrub_env): change to only accept a listed set of variables,
including only non-filename contents for TERMCAP
2000-12-15 02:59:15 +00:00
Alexander Langer 03a58c9ad6 Don't fix the delay option in the wrong branch.
Pointy hat:		alex
2000-12-08 12:28:37 +00:00
Bruce A. Mah 6df9d82334 MFC: "origin patch", -L option, other small bugfixes to sync up to HEAD.
pkg_version.pl:	1.9->1.15
pkg_version.1:	1.7->1.10

Requested by:	sobomax
2000-12-05 22:30:36 +00:00
Maxim Sobolev 1b67774ac5 MFS4:
- Add "-o" option to pkg_create(1) and pkg_info(1). This option intended to
  record a path of the port from which package has been created within FreeBSD
  Ports Collection and will be used to improve pkg_version(1) and similar tools;
- add "-s" option to check size of installed package(s);
- add several missed references to pkg_version(1).

Prompted by:	asami (`origin' option)
2000-12-05 16:59:01 +00:00
Matt Jacob 085843c335 MFC: Far too many changes to list singly- but cause 3.X to benefit from
the rewrites that up through this date's -current && RELENG_4 have had.
(this is probably the last RELENG_3 update).
2000-12-05 07:57:58 +00:00
Julian Elischer a91a55f3b7 MFC: 1.26 block a race with splhigh() 2000-12-04 22:11:01 +00:00
Alexander Langer 410481b89d MFC: Fix -d option.
Add $FreeBSD$
2000-12-04 10:42:15 +00:00
Jeroen Ruigrok van der Werven fa348e998b MFC: Overflow checking.
Submitted by:	eivind with some 3-STABLE fixes from yours truly
2000-11-29 10:15:00 +00:00
Jeroen Ruigrok van der Werven 352e2af88f Update to BIND 8.2.2-P7 which fixes some bugs as well as some security
problems.

This fixes the ZXFR DoS attack.
2000-11-27 14:47:06 +00:00
Jeroen Ruigrok van der Werven 042ec36bb0 MFC: - mdoc fixes. 2000-11-24 10:48:52 +00:00
Jeroen Ruigrok van der Werven b8b006b78d MFC: Update to reflect that softupdates is no longer in sys/contrib.
Also update copyright notice.
2000-11-22 11:19:36 +00:00
Julian Elischer a45a9ba106 MFC: fix copyright 2000-11-20 13:47:38 +00:00
Kris Kennaway b2a70efccb MFC: Don't allow users to read other crontab files 2000-11-20 06:04:03 +00:00
Kris Kennaway b1204c7722 MFC^2: Correct problem with previous security patch 2000-11-20 03:09:37 +00:00
Bruce Evans 536c173e6b MFC (1.6: quick fix for not writing group descriptor group, inode
bitmaps or block bitmaps before unmount() completes).

PR:		22726
2000-11-11 13:14:15 +00:00
Jeroen Ruigrok van der Werven 04b3babe41 Fix temporary file creation.
Obtained from:	NetBSD dol.c r1.15
2000-11-05 21:34:27 +00:00
Jeroen Ruigrok van der Werven abeee2d84b MFC: Format string fix. 2000-11-05 13:38:11 +00:00
Julian Elischer 06d64764cf MFC: 1.31 2000-11-04 08:26:18 +00:00
Jeroen Ruigrok van der Werven a34ab13130 MFC: - Filter out some more magic environment variables used by
libraries linked with telnetd.

	- Buffer-safety cleanups.
2000-11-01 16:20:28 +00:00
Brian Somers 2557ed5792 MFC: Mention that ``nat deny_incoming'' drops unrecognised IP packets.
Requested by: kris
2000-10-31 02:26:48 +00:00
Brian Somers d80de9383a MFC: Drop PKT_ALIAS_IGNORED packets if ``nat deny_incoming yes'' is in effect.
Requested by: kris
2000-10-30 18:13:31 +00:00
Matt Jacob 80c44d6606 MFC: Add 3 SCSI-3 bits for Sequential Access Device Congifuration Page.
Add Data Compression Page (SCSI-3). Add some clarifying comments
at the top of the file that say what the syntax is.
2000-10-28 22:49:16 +00:00
Kenneth D. Merry 951a9af99f MFC, rev 1.40: Add a quirk entry for Nakamichi MJ-* changers. The
changer in question is a <NAKAMICH MJ-5.16S 1.06>.

Submitted by:	Kevin Van Maren <[email protected]>
2000-10-28 17:49:27 +00:00
Bruce Evans 1bef4f8117 MFC (1.25 fixed overruns of cookie buffer and directory buffer in
ext2_readdir()).
2000-10-27 10:14:08 +00:00
Bruce Evans 98aed1a6dc MFC (bpb.h rev.1.8, msdosfsmount.h rev.1.22: quick fix for sign extension
and alignment bugs that broke at least msdosfs_write() on alphas).
2000-10-27 09:50:24 +00:00
Julian Elischer a6965426dc MFC: update email addresses of authors 2000-10-24 22:45:12 +00:00
Julian Elischer 213b73b232 MFC: update email addresses for archie and me 2000-10-24 22:35:27 +00:00
Akinori MUSHA 577399f82c MFC: revision 1.125, 1.126 of src/etc/defaults/make.conf 2000-10-24 12:50:23 +00:00
Josef Karthauser d057ead78d MFC: When warning that a log file can't be compressed, tell the
reader which log file it was (revision 1.29).
2000-10-20 00:51:16 +00:00
Will Andrews a44cd86b15 MFC: :C, :U, and :L variable modifiers. 2000-10-19 04:42:28 +00:00
Yoshihiro Takahashi ca25bea39a Merged from sys/i386/isa/wd.c revision 1.186.2.6. 2000-10-15 02:42:13 +00:00
Peter Wemm 3057afeb83 MFC: rev 1.218: limit cyls in CHS mode to 65536 (33.8G). LBA-safe
crashdumps were already MFC'ed.
2000-10-13 23:09:27 +00:00
Warner Losh 1ac666cde5 Tell people that you should read /usr/src/UPDATING after the sources
have been upgraded when moving to 4.x-stable.
2000-10-09 04:13:41 +00:00
Jeroen Ruigrok van der Werven 3488937384 MFC: Format string paranoia. 2000-10-08 12:12:21 +00:00
Jeroen Ruigrok van der Werven 88c51c8cf8 MFC: - Format string paranoia
- Add $FreeBSD$
2000-10-08 11:23:29 +00:00
Bruce A. Mah 92edc2247e MFC: Stronger randomness in TCP initial sequence numbers. 2000-10-06 22:19:01 +00:00
Jeroen Ruigrok van der Werven 374024264e MFC: security fixes and string function cleanups 2000-10-05 13:41:11 +00:00
Warner Losh bd10a1696d MFC: kill command fix and sprintf/snprintf paranoia 2000-10-04 23:43:28 +00:00
Bruce A. Mah a9ed468b67 MFC: fingerd(8), rlogind(8), rshd(8) disabled by default on new installs. 2000-10-04 20:26:17 +00:00
Bruce A. Mah 47cf83bf85 MFC: Turn fingerd(8) off by default.
Approved by:	kris
2000-10-04 20:22:53 +00:00
Kris Kennaway 45402e2f7b MFC: Disable rsh and rlogin by default 2000-10-04 07:59:38 +00:00
Jeroen Ruigrok van der Werven 5da05772e4 Fix typo introduced in last commit. 2000-10-04 05:52:34 +00:00
Peter Wemm eee00636ec MFC: printf-style format fix. warn(string) -> warn("%s", string) 2000-10-04 05:44:33 +00:00
Jeroen Ruigrok van der Werven 008d64e328 MFC: - Pentium 4 recognition code 2000-10-02 13:49:32 +00:00
Jeroen Ruigrok van der Werven cf8d37e700 MFC: - Pentium 4 recognition code
- Descriptions of some features
2000-10-02 13:49:25 +00:00
Jeroen Ruigrok van der Werven 14b527752e MFC: - Remove superfluous tab
- Fix unsafe temporary file creation
	- Conditionalise $MAIL_AGENT
	- Disable request for a submitter-id
	- Disable setting of confidential
2000-10-02 13:17:00 +00:00
Yoshihiro Takahashi b08d3dea28 Merged from sys/i386/conf/files.i386 revision 1.220.2.18. 2000-09-30 15:52:47 +00:00
Kris Kennaway 31227abe86 Add arc4random.c. This should hopefully fix kernel compiles. 2000-09-29 22:07:29 +00:00
Kris Kennaway 1b4f9c99b8 MFC: Use stronger randomness for TCP_ISSINCR and tcp_iss 2000-09-29 08:49:56 +00:00
Jeroen Ruigrok van der Werven 386576ccf2 MFC: Add a ton of features which will now be recognised. Add documentation
comments.  Add sysctl descriptions.
2000-09-27 11:20:02 +00:00
Jeroen Ruigrok van der Werven ca42e99ff6 MFC: Recognize new Pentium III Xeon (stepping A0). 2000-09-26 15:06:08 +00:00
Jeroen Ruigrok van der Werven 785d8e27bc MFC: Update to the latest IANA list and document divert is homebrewn. 2000-09-24 11:43:00 +00:00
Alfred Perlstein 1e9811928d MFC:
1.32 of res_send.c, don't get stuck in an infinite loop if a signal
       interrupts the poll operation
  1.65 of syslogd.c which begins a clusterf**k of commits that span over
       versions 1.65, 1.66, 1.69 to provide an option for syslogd not
       to perform dns lookups.
  1.23, 1.24, 1.25 of syslogd.8 document changes to syslogd.c

Submitted and tested by: Reinier Bezuidenhout <[email protected]>
2000-09-23 22:48:45 +00:00
Jordan K. Hubbard f3252ed8ac MFC: merge to this branch also just for the benefit of the Japanese
"triple" release CD ISO image.
2000-09-22 08:22:44 +00:00
Maxim Sobolev d10155f3f7 "zope language" --> "zope platform".
Requested by:	asami
2000-09-22 06:53:44 +00:00
Satoshi Asami ac81696208 MFC (french, zope). 2000-09-22 06:34:01 +00:00
Satoshi Asami 3ecd503cb5 MFC (ports-french). 2000-09-22 06:31:43 +00:00
Maxim Sobolev 9c28966aaa MFC: Fix handling of symlinks pointing to a directory. 2000-09-20 13:42:00 +00:00
Andrey A. Chernov ab55e32c48 nonexistant _fcntl -> fcntl 2000-09-17 19:31:49 +00:00
Bruce A. Mah 967e0c1ec3 MFC: PORTREVISION/PORTEPOCH support, update URL for on-line INDEX
example, update MAINTAINER address, bugfixes.
	Makefile:	1.5->1.6
	pkg_version.pl:	1.3->1.9
	pkg_version.1:	1.5->1.7

Requested by:	"Oleg V. Volkov" <[email protected]>
2000-09-14 21:02:17 +00:00
cvs2svn 55f552c679 This commit was manufactured by cvs2svn to create branch 'RELENG_3'. 2000-09-11 19:34:06 +00:00
Kenneth D. Merry b6a64a9b63 MFC, Add quirk entries from Andre Albsmeier to disable the sync cache
command for the Quantum "MAVERICK 540S" and "LPS525S".

Also, add common string variables, since we seem to have a few Quantum and
Micropolis drives in here.

Fix the 'quantum' variable usage in scsi_all.c that likely got broken when
someone staticized things in cam_xpt.c.  (That particular problem would
cause Quantum Fireball ST drives to not get spun up if they were not
already spinning.)

Submitted by:	Andre Albsmeier <[email protected]>
2000-09-11 05:54:50 +00:00
Kenneth D. Merry 4d24857f83 MFC, Change the "Duplicate Wired Device entry" printout in camperiphnextunit
to also mention the peripheral name, bus, target and lun of the device we
attempted to put in that slot.  This gives the user a little more
information about what is going on.

Tested by:	Andre Albsmeier <[email protected]>
Discussed with:	gibbs
2000-09-11 05:47:25 +00:00
Andrey A. Chernov 9fcb144aa5 MFC: controls handling bugfix 2000-09-09 14:15:08 +00:00
Andrey A. Chernov 5384bbafdb MFC: prevent buffer overflow 2000-09-08 11:45:14 +00:00
Kris Kennaway 0062e8f05f MFC: Disallow '/' in LC_* environment variables 2000-09-08 07:32:43 +00:00
Andrey A. Chernov 247748fd3b MFC: more checks, rewritting, SUSv2 conformance 2000-09-07 16:57:01 +00:00
Alexey Zelkin e06d902096 MFC: rev 1.4, bring manual page into reality
MFC: rev 1.5, remove hard sentence breaks
2000-08-29 15:49:24 +00:00
Satoshi Asami 9dbc60e90a Merge 1.235 (BSD.x11-4.dist). 2000-08-28 20:26:15 +00:00
Satoshi Asami cd5fa44d8d Add BSD.x11-4.dist to RELENG_3. 2000-08-25 10:09:13 +00:00
cvs2svn b6939634e7 This commit was manufactured by cvs2svn to create branch 'RELENG_3'. 2000-08-25 10:07:22 +00:00
Sheldon Hearn f8f30ca044 MFC rev 1.6: add a missing semi-colon. 2000-08-25 09:05:55 +00:00
KATO Takenori 52d50e6996 - MFC: Fixed freeing wrong address (rev. 1.13).
- Added $FreeBSD$.
2000-08-24 14:39:46 +00:00
Marcel Moolenaar c773d46e1c MFC: Add bounds checking to stackgap_alloc.
Requested by: kris
2000-08-24 04:30:01 +00:00
SADA Kenji c0c42d159c MFC: 1.26, 1.27 Fix inhelitance of file flags when files are moved
across devices.
2000-08-20 19:47:27 +00:00
Bruce Evans c833c5858d MFC (rev.1.46: fixed a missing splx() in if_addmulti()). 2000-08-19 22:16:13 +00:00
Kris Kennaway 8c71d9778b MFC: Fix missing format string bugs. 2000-08-13 04:50:21 +00:00
Kris Kennaway b8e66d4b37 MFC: Fix setproctitle() vulnerability in non-compiled code. 2000-08-13 04:38:01 +00:00
Sheldon Hearn d7689e24e7 MFC rev 1.22: explain naming of tmp files for -r and -R. 2000-08-11 10:43:08 +00:00
Sheldon Hearn 9935bf2b60 Fix a bug in rev 1.147.2.12: if NO_BIND was defined, nslookup was
added to SUBDIR, which it shouldn't have been.  If NO_BIND was not
defined, nslookup was added to SUBDIR twice instead of once.

PR:		20511
Reported by:	[email protected] (Sean C. Farley)
2000-08-10 11:54:57 +00:00
Ruslan Ermilov 6f2a6bd48e MFC: (rev 1.36) Make natd(8) "compatible" with firewall_type="simple". 2000-08-08 08:40:13 +00:00
Kenneth D. Merry b00f52f7c4 MFC: The Yamaha CDR100 doesn't seem to like multi-LUN probing.
PR:		kern/20347
Submitted by:	Andre Albsmeier <[email protected]>
2000-08-08 06:52:37 +00:00
Paul Saab 238c21ecf0 MFC: [rev 1.69] Print uptime at shutdown.
PR:	16838
2000-08-07 19:26:33 +00:00
Alexander Langer da584b6ad0 MFC: crypto export changes 2000-08-05 14:03:19 +00:00
Alexander Langer 016b0d9185 MFC: Export control changes 2000-08-05 13:41:32 +00:00
John Polstra e6e0b69de1 MFC: Remove (non-)"comments" from "refuse". 2000-08-04 21:37:50 +00:00
cvs2svn 4710767ba3 This commit was manufactured by cvs2svn to create branch 'RELENG_3'. 2000-08-04 21:32:53 +00:00
Andrey A. Chernov baf94a42d4 MFC: #ports/hebrew and comment about comments 2000-07-31 04:27:06 +00:00
Satoshi Asami e983ab0f81 MFC (hebrew). 2000-07-31 00:18:17 +00:00
MIHIRA Sanpei Yoshiro cebe5cfede MFC 1.14 -> 1.15: Update the description of available channel for Japan. 2000-07-30 14:52:43 +00:00
Toshihiko ARAI 2c8fbb0477 MFC: rev.1.43 -> rev.1.44.
Whoops - really make the "fix" I did to the dmenuToggleVariable logic work.
2000-07-29 13:33:22 +00:00
Brian Feldman e17d7c773b MFC: rev. 1.62, fix races 2000-07-27 04:04:12 +00:00
Alexey Zelkin 6a525bf06b MFC: correct default value for -s option 2000-07-20 13:29:48 +00:00
Assar Westerlund 8481bddda6 MFC: merge in syslog fixes, do not call syslog with variabel as format string 2000-07-20 05:47:32 +00:00
David Nugent 59df840700 MFC: Allow -D -g with empty group to reset default group to none
PR:		bin/5717
2000-07-20 04:42:23 +00:00
Brian Feldman 394662f4b5 MFC: make ktrgenio() use a uio 2000-07-20 01:42:45 +00:00
David Nugent 6352da48bd MFC Make usermod -h - work
PR:		bin/19999
2000-07-20 00:36:01 +00:00
SADA Kenji acb76b73d3 MFC: Fixed with alias missing. 2000-07-19 15:30:28 +00:00
Matt Jacob 2965a644dc MFC (for the last time likely for 3.x): Far too many changes to
report- this is major rewrite of mailbox handling code and 'fixed'
target mode support, different firmware, etc.
2000-07-18 18:01:46 +00:00
Sheldon Hearn a155f1fa7f MFC rev 1.60: fix comment for TCPCTL_KEEPINIT . 2000-07-18 16:50:10 +00:00
Marcel Moolenaar 29f7a06934 MFC: change default FPU control word.
PR: 17984
2000-07-18 04:12:18 +00:00
Murray Stokely 3220c6403f MFC: Refresh the aout ldconfig hints
Approved by:	jkh
2000-07-17 22:17:47 +00:00
Kenneth D. Merry f7619e05fc MFC: Get rid of non-existent CAM 'scan' device.
PR:		19961
Submitted by:	Cyrille Lefevre <[email protected]>
2000-07-16 02:52:24 +00:00
Dag-Erling Smørgrav 03350ffa71 Back out MFC to wrong branch 2000-07-16 01:55:24 +00:00
Dag-Erling Smørgrav 825e05b5c7 MFC: use libfetch 2000-07-16 01:46:38 +00:00
David Malone 8853c55c38 MFC: 1.18 Ensure devices, fifos, etc have length 0. 2000-07-15 22:47:07 +00:00
David Nugent 2e5fed4c0b MFC: Allow useradd -d <dir> to work without other changes.
PR:             bin/19649
2000-07-14 22:11:04 +00:00
David Malone eb07a7bb71 MCF: 1.28 Fix sorting by time. Fix rounding of cputime, remove dead code.
PR:		18951
2000-07-14 20:04:05 +00:00
David Malone 07ff1172af MFC: 1.25 Fix moving symlinks across partitions. 2000-07-14 19:26:11 +00:00
Yoshihiro Takahashi 9225bee105 Disabled serial console. 2000-07-14 12:26:11 +00:00
David Nugent 20c7958a07 MFC: Fixes for comments in passwd and group files; sync with RELENG_[45].
PR:		misc/19538
Submitted by:	Andre Albsmeier <[email protected]>
2000-07-13 23:14:37 +00:00
Daniel Harris 18ba1b3e29 MFC: 1.10: Add some missing articles (as in a, an, the). 2000-07-13 21:22:50 +00:00
Daniel Harris 05d78408ca MFC: 1.7: Spelling (embedd to embed) fix and change a comma to a semicolon. 2000-07-12 20:41:11 +00:00
Satoshi Asami f690bef0e4 Belatedly bump __FreeBSD_version -- we are in 3.5-stable now. 2000-07-12 20:37:04 +00:00
Guy Helmer 327865f1cc MFC: crontab.5 [revs 1.12-1.14]
Clarify quoting in name=value pairs; describe @ shortcuts.
2000-07-12 19:22:23 +00:00
Guy Helmer 079670196b MFC:
entry.c [revs 1.10, 1.11] Fix parsing of @ shortcuts; catch and report
memory allocation failures.

env.c [revs 1.8, 1.9] Fix a situation where a pointer which should
point to dynamically allocated memory was instead pointed to a static
string.  Use consistent types in sizeof for malloc calls.

misc.c [rev 1.9] Catch and report memory allocation failures.
2000-07-12 19:13:43 +00:00
Guy Helmer a9919d9814 MFC: [rev 1.16] Catch and report fdopen failures. 2000-07-12 19:09:41 +00:00
Assar Westerlund a5feda71b3 MFC: make sure we do not write out non-printable characters in file
names and symbolic links (by default)

PR:		bin/19354
2000-07-12 16:53:22 +00:00
David Nugent 82f7b1a143 MFC: Handle comments in master.passwd.
PR:		bin/19664
2000-07-12 11:10:29 +00:00
MIHIRA Sanpei Yoshiro a6fcf10f33 MFC: 1.11 Correct typo in description string: CANNOT' -> CAN'. 2000-07-11 14:07:10 +00:00
Mark Murray d4481665eb MFC: New World Order in the way cvsup distributes crypto sources. 2000-07-09 16:25:04 +00:00
Daniel Harris 05c5bde8e4 MFC: 1.14, first appeared in 2.9BSD. 2000-07-08 18:26:58 +00:00
Will Andrews 57537ab414 MFC: Fix exit code if process does not exist. 2000-07-08 05:15:33 +00:00
Alfred Perlstein c858243d6b MFC: don't clash with C++ reserved words
ns_parse.c: 1.2
nameser.h: 1.13
2000-07-08 02:10:49 +00:00
Assar Westerlund d89e638700 (INCLUDES): add ktypes.h (also required by krb.h) 2000-07-07 05:05:44 +00:00
Assar Westerlund 23e0146886 (beforeinstall): install header files here so that they can be used by
other libraries (libfetch)
2000-07-07 04:55:07 +00:00
Assar Westerlund dbfa7528af this file no longer exists 2000-07-06 21:56:04 +00:00
Assar Westerlund 49633d2d73 remove the remaining RCSIDs 2000-07-05 05:29:25 +00:00
Assar Westerlund 6da01a99ee merge the (still missing) part from -current 2000-07-05 05:04:14 +00:00
Assar Westerlund f7f84723ad fix RCSID 2000-07-05 04:58:45 +00:00
Assar Westerlund 1066becb59 remove extra roken.h 2000-07-05 01:34:59 +00:00
Assar Westerlund 6340d83f0d merge in the missing files from -current 2000-07-05 01:31:30 +00:00
Assar Westerlund 51581eb132 merge krb version of com_err from -current 2000-07-04 15:32:29 +00:00
Assar Westerlund f5664d314e remove ifdef TERMCAP to make this build 2000-07-04 15:26:31 +00:00
Assar Westerlund 5637da09ef update build infrastructure to work with the krb4-1.0 now in crypto
Reviewed by:	kris, markm
2000-07-04 15:23:05 +00:00
Assar Westerlund f968e30a36 merge differences from -current and build this from ../../contrib/com_err
Reviewed by:	kris, markm
2000-07-04 15:15:12 +00:00
Assar Westerlund 3068b6569b merge differences from -current to bring this up to krb4 1.0
Reviewed by:	kris, markm
2000-07-04 15:04:40 +00:00
Roger Hardiman d2f2776304 MFC. remove old rc and login.conf files prior to the gzip -d (extract)
to prevent overwrite yes/no warning messages
2000-07-03 22:33:37 +00:00
Paul Saab 32c546268e MFC: [rev 1.15] Doubling the size of MAXSIZE. 2000-07-03 09:21:04 +00:00
Doug White c83cfb7c17 Reverse rest of patch: -f isn't a valid option in minigzip.
Boot to the head applied to: dwhite, [email protected]
2000-07-01 21:31:01 +00:00
Roger Hardiman b8bf635283 MFC: add .image.list to the files to be deleted 2000-07-01 14:09:23 +00:00
Roger Hardiman e4080f8234 MFC: Add a missing 'fi' 2000-07-01 12:05:13 +00:00
Roger Hardiman dbf14a4897 MFC: Add 'bridge' so we can clean up the bridge files 2000-07-01 04:41:44 +00:00
Doug White 305e2c9e92 Revert part of previous patch: still copy ${MFS}/root to /root in case
there's some shell files in there we actually want.
2000-07-01 04:22:19 +00:00
Doug White d12ca8dcac Quiet gunzip of /etc files.
Submitted by:	Dennis Cartier <[email protected]>
2000-07-01 04:20:07 +00:00
Doug White dfe85a01db Make sure proper init is included .. in some cases the regular init may not
get in the crunch binary (!)

Submitted by:	Dennis Cartier <[email protected]>
2000-07-01 04:19:43 +00:00
Andrey A. Chernov 25679047ff MFC: alt_month assigning 2000-06-29 17:24:37 +00:00
Dag-Erling Smørgrav 4325f05937 MF4: prettify, add $FreeBSD$ and claim maintainership 2000-06-29 09:29:37 +00:00
Satoshi Asami 730e6d0da7 MFC: extra directories (excluding perl5.006 changes). 2000-06-29 07:39:52 +00:00
Andrey A. Chernov 62356fbbfc MFC: localization 2000-06-28 22:48:15 +00:00
David Nugent 98731b5a18 MFC: Fix change detection when editing takes < 1 second.
Add $FreeBSD$

PR:		bin/4238
2000-06-28 00:34:17 +00:00
Alexander Langer c3c0d2aa15 Sheldonification of last commit. 2000-06-27 11:26:50 +00:00
David E. O'Brien fc2059465c Ugrade to version 2.0 PL 1. 2000-06-27 10:30:58 +00:00
Alexander Langer f8a46b4c5a In 3.x, rfork() with RFMEM does not work on SMP kernels.
PR:		15890
Submitted by:	Scott Hess <[email protected]>
2000-06-27 09:59:11 +00:00
Archie Cobbs 89cfb74b29 MFC: token returned by NgSendMsg() and NgSendAsciiMsg() 2000-06-26 19:49:47 +00:00
Archie Cobbs fbc0333b64 MFC: add MLINKS for the functions defined in netgraph(3) 2000-06-26 19:49:09 +00:00
cvs2svn b6ee15397a This commit was manufactured by cvs2svn to create branch 'RELENG_3'. 2000-06-26 08:06:24 +00:00
David Nugent 9069282b9e MFC: don't dereference NULL in userdel case. 2000-06-26 01:22:15 +00:00
Jordan K. Hubbard 59819812ec Commit the "real release notes" for 3.5. I finally had time to go read
through all those %$#@*&! diffs.
2000-06-25 00:20:48 +00:00
Ruslan Ermilov ac9e9923ee MFC: (rev 1.17) Get rid of segfault in a `site %s\' case. 2000-06-23 14:46:54 +00:00
Peter Wemm 31867324b7 MFC: delete; repo copied to src/sys/ufs/ffs directly. 2000-06-23 00:12:51 +00:00
Peter Wemm 74cac63514 MFC: new bsd-style unrestricted license text. 2000-06-22 19:32:07 +00:00
Sheldon Hearn c2693d5148 MFC rev 1.14 and rev 1.15: Fix -i and remove an unused variable. 2000-06-22 12:58:19 +00:00
Jordan K. Hubbard 2c6b0cc316 Update all the docs for 3.5 I forgot to update before (tags will
be slid, release engineers will be sent to bed without supper)
2000-06-22 00:04:24 +00:00
Brian Somers 554d21c3e0 Remove the previous ppp, inetd and pppoed info
Mention that comment characters in ppp.conf may break existing configs
2000-06-21 21:19:29 +00:00
Brian Somers 8901c48a4d MF4: Understand comments in passwd and group files
Unfortunately I missed the 3.5 tag :-(
2000-06-20 22:44:36 +00:00
Jordan K. Hubbard caa7400559 Update FreeBSD version for 3.5 2000-06-20 16:18:47 +00:00
Jordan K. Hubbard c493659b2d Set for post-3.5 2000-06-20 16:13:59 +00:00
Jordan K. Hubbard 4ed317e913 Set for 3.5-RELEASE 2000-06-20 16:12:53 +00:00
Brian Somers dc60a0300f MF3: Allow padding in LQR ECHO requests 2000-06-20 09:19:58 +00:00
Brian Somers a33afd529b MF4: Don't mis-match interface names in iface_Create() 2000-06-19 21:44:42 +00:00
Alexander Langer ab7ddf3ea1 For 3.x, options VM86 is needed for this function.
PR:		18943
Submitted by:	Ben Smithurst <[email protected]>
2000-06-19 19:11:42 +00:00
John Baldwin a207bf1a3e Add a missing '(' to fix a syntax error.
Forgotten by:	ps
2000-06-18 21:34:27 +00:00
Gary Jennejohn 9453485f18 MF4: add support for the Am79C973. 2000-06-18 08:06:55 +00:00
David Nugent d56e55b0a3 MFC recent bug fixes and feature.
This commit unifies pw(8) code across all active branches.
Still-Todo: manpage updates
2000-06-18 05:51:35 +00:00
Paul Saab 2b0ec9b9d6 MFC: Support for > 2GB swap partitions. 2000-06-18 05:38:25 +00:00
Satoshi Asami c1624f2b9e MFC 1.92: kterm-color entry.
Approved by:	ache
2000-06-16 18:57:37 +00:00
Ruslan Ermilov 7d6fd5fd52 MFC:
- rev 1.27: fix buffer overflow with the command line arguments.
- rev 1.30: remove unused parameter.
2000-06-16 09:50:42 +00:00
Jordan K. Hubbard d0d5e7d22a MFC r1.86: small extra checks on arg values. 2000-06-16 09:23:32 +00:00
Brian Somers 89a9e458b5 MF4: Add `set urgent none'' and `set ifqueue'' 2000-06-15 17:09:11 +00:00
Brian Somers 33e0743f83 MFC: Correct date adjustments crossing summer/winter time boundaries. 2000-06-15 16:08:04 +00:00
Bruce Evans 64a5bc137e MFC (1.67: fixed allocation of unit numbers). 2000-06-14 16:01:57 +00:00
Andrey A. Chernov 70d944aeaf MFC: all fixes up to 1.91 excepting 1.90 fix ("op" for syscons) 2000-06-14 15:23:21 +00:00
Andrey A. Chernov 0355434c54 MFC: op for xterm-color 2000-06-14 15:12:42 +00:00
Alexander Langer a71fff9bd4 MFC: options USER_LDT is required for these functions. 2000-06-14 13:40:30 +00:00
KATO Takenori 3abd04a811 MFC: Celeron recognition (rev. 1.82). 2000-06-14 13:02:54 +00:00
Jeroen Ruigrok van der Werven a8317951b6 MFC: add $FReeBSD$ 2000-06-14 13:01:08 +00:00
Jeroen Ruigrok van der Werven 0d4e5d3e89 MFC: various fixes:
Zap $Revision$
		Change to $FreeBSD$
		Fix *ripcmds
		Fix(?) spelling of the copyright
2000-06-14 12:50:27 +00:00
Jeroen Ruigrok van der Werven 5f17ae29ef MFC: Add $FreeBSD$ 2000-06-14 12:11:42 +00:00
Alexander Langer 899d2eb04d Add note, that options VM86 is required for these functions.
PR:		18943
Submitted by:	Ben Smithurst <[email protected]>
Reviewed by:	asmodai
2000-06-13 17:43:18 +00:00
Jeroen Ruigrok van der Werven 9b14e33fe8 MFC: Fix namespace pollution which will less likely cause
problems in the future.  This should fix C++ stdlib problems when
	using ctype.h as well.
2000-06-13 15:36:26 +00:00
Jeroen Ruigrok van der Werven 9f26cfc78f MFC: Back up following macros by functions: ishexnumber, isideogram,
isnumber, isphonogram, isrune, isspecial. Fix ordering.
2000-06-13 14:23:36 +00:00
Ruslan Ermilov 0cc62926e6 MFC: (rev 1.29) treat \t and \n inside /boot.config as whitespaces. 2000-06-13 13:22:34 +00:00
Alexander Langer a4495be12a MFC: Fix typo: turn of -> turn off 2000-06-13 12:54:54 +00:00
Ruslan Ermilov 339c1b76f3 MFC: cosmetics. 2000-06-13 09:14:54 +00:00
Ruslan Ermilov ef79ec9edc MFC: cleanup manpage. 2000-06-13 09:04:35 +00:00
Ruslan Ermilov 51f1089944 MFC: (rev 1.3) remove option's description that has gone with PAM. 2000-06-13 09:00:05 +00:00
Ruslan Ermilov ed913c6bac MFC: Remove a no-option MD5. 2000-06-13 08:48:06 +00:00
Ruslan Ermilov 183fc61e1f MFC: (rev 1.31) Document /usr/lib/aout. 2000-06-13 08:32:59 +00:00
Ruslan Ermilov 8012d713b3 MFC: /usr/mdec has gone. 2000-06-13 07:58:30 +00:00
Ruslan Ermilov 845e7b3380 MFC:
- rev 1.25: Allow for incoming DNS UDP queries.
- rev 1.27: Pass IP fragments with non-zero offset.
2000-06-13 07:50:59 +00:00
Ruslan Ermilov 0c7ed9d303 MFC: (rev 1.133) do not call icmp_error() if ipfirewall(4) denied packet. 2000-06-13 07:12:34 +00:00
Jeroen Ruigrok van der Werven 727ecf9274 MFC: Various fixes from Bill Fumerola to clean the source up. 2000-06-12 13:24:01 +00:00
Jeroen Ruigrok van der Werven 723e92a122 MFC: Add $FreeBSD$ 2000-06-12 13:12:19 +00:00
Jeroen Ruigrok van der Werven 8c0e398c57 MFC: Fix RU/SU.
Fix ASCII bug.
2000-06-12 13:05:26 +00:00
Brian Somers ffade1d85c MF4: Hard sentence breaks and trailing space tidy-ups 2000-06-12 09:07:40 +00:00
Jonathan Lemon 2bb9374f95 MFC: r1.50, r1.48, KASSERT() debugging and M_PREPEND null checking. 2000-06-11 16:41:51 +00:00
Brian Somers b0074db43b MF4: Don't oan about padding characters 2000-06-11 12:23:00 +00:00
Seigo Tanimura 8b5942e506 MFC: Fix minor numbers, locking, the return value of rpattach()
and baud_table.
2000-06-11 07:15:27 +00:00
Matthew Dillon 4edcef1a83 MFC 1.37, fix memory leak in mount_nfs background mode 2000-06-11 05:25:18 +00:00
Jonathan Lemon 1be667adbf MFC: mbuf wait code, as well as some other mbuf related bugfixes.
Submitted by: Mike Silbersack <[email protected]>
2000-06-10 17:44:57 +00:00
Marcel Moolenaar 491d21de22 MFC: Fix linux_wait4() vunerability.
Submitted by: Ian Dowse ([email protected])
2000-06-08 19:04:49 +00:00
Jonathan Lemon a8f51528cf MFC: r1.34, LAST_ACK problem. (slightly different patch)
Submitted by:	Mike Silbersack <[email protected]>
2000-06-08 15:37:39 +00:00
Jonathan Lemon 4a2a2458ce MFC: correct boundary checks against IP options 2000-06-08 15:11:50 +00:00
Greg Lehey 64bb496d86 MFC: Clarify which bit of the daemon config disables configuration
saves.

This is still terrible.  I need to finally implement variables.

Reported-by:	jmg
2000-06-08 07:28:59 +00:00
Kris Kennaway aa869d5994 MFC: Zorch references to VAX and Tahoe compilers 2000-06-08 07:27:29 +00:00
Kris Kennaway c85df2d6f1 MFC: Sync variable name 2000-06-08 07:25:18 +00:00
Kris Kennaway 43a31b3f93 MFC: Sync contents of structure 2000-06-08 07:23:32 +00:00
Kris Kennaway c7c24157e6 MFC: Fix buffer overflows 2000-06-08 07:20:56 +00:00
Kris Kennaway 16ddfa94dc MFC: Update variable types 2000-06-08 07:19:48 +00:00
Kris Kennaway f4a7a61647 MFC: Spelling fixes, update example code. 2000-06-08 07:15:27 +00:00
Kris Kennaway a8ba287c1e MFC: typo 2000-06-08 07:10:43 +00:00
Kris Kennaway b345f4dc6c MFC: More X's for mktemp() 2000-06-08 07:06:01 +00:00
Kris Kennaway 3c49690e54 MFC: Better tempfile handling 2000-06-08 07:04:02 +00:00
Kris Kennaway 4c4f617b28 MFC: typo 2000-06-08 07:01:04 +00:00
Kris Kennaway 828f718493 MFC: scsiformat -> camcontrol, mdoc fix 2000-06-08 07:00:10 +00:00
Kris Kennaway 7e4e2bc765 MFC: xref mountd(8) 2000-06-08 06:54:23 +00:00
Greg Lehey d0387243cb MFC: Bring up to date with -CURRENT.
This change has been tested carefully, of course, but it's a very
large change, and it's possible that something has slipped through the
cracks.  I have a problem here: I can continue to test, and possibly
find more bugs, but at the same time I'm withholding much-needed
fixes.  I'd suggest a compromise: if you're running happily with
3-STABLE and you're not using RAID-5, now is probably not the time to
upgrade.  If any problems do surface, let somebody else find them.
2000-06-08 06:45:48 +00:00
Kris Kennaway a89dbbb5e1 MFC: Alignment, type-safety and buffer overflow fixes 2000-06-08 06:37:37 +00:00
Kris Kennaway e7aeaf9efd MFC: Temporary file handling and partially applied delta fix 2000-06-08 06:33:30 +00:00
Kris Kennaway f9bc698fbb MFC: Security warning 2000-06-08 06:30:30 +00:00
Kris Kennaway a13c746ba1 MFC: Close potentially exploitable buffer overflow. I can't believe
I forgot about this one :-(
2000-06-08 06:29:04 +00:00
Kris Kennaway 59b1184605 MFC: Silence warnings 2000-06-08 06:24:44 +00:00
Kris Kennaway ff67a799bc MFC: temporary filename fixes 2000-06-08 06:20:44 +00:00
Kris Kennaway d700cc71e4 MFC: fork() -> vfork() 2000-06-08 06:15:38 +00:00
Kris Kennaway 9780f3d087 MFC: typo 2000-06-08 06:11:23 +00:00
Brian Somers d94cf5ea1c Get it right... RELENG_3's release doesn't have NETGRAPH ! 2000-06-05 14:18:40 +00:00
Brian Somers a3d0cf9d82 MFC: Use a ppp trigger address of 0.0.0.0 2000-06-05 11:05:05 +00:00
Brian Somers c58063bedd MF4: Handle open/dial from state DATALINK_READY properly
Don't disable the autoload timer at the wrong time
     Use a SOCK_DGRAM socketpair() for synchronous "!program" devices
     Send a HUP to "!program" devices when they're closed
     Drop packets when the fsm header length is bigger than the payload
     Create /etc/resolv.conf with the correct umask (when dns is enabled)
     Don't dump core when trying to write a new resolv.conf
     Add some more verbose ``inappropriate peer'' diagnostics in MP mode
     Pass all packets through libalias in NAT mode
     Describe ``enable proxy'' a bit more
     chmod local-domain diagnostic sockets correctly
     When a PPPoTCP connection fails, don't moan about invalid syntax
2000-06-05 11:01:21 +00:00
Brian Somers 0c989496e7 The RELENG_3 release doesn't have NETGRAPH 2000-06-04 18:37:19 +00:00
Boris Popov 256038b0e9 MFC of rev 1.27.
A correction to the code which attempts to prevent the same module
being loaded twice.

PR:		kern/11919
2000-06-03 06:18:39 +00:00
Archie Cobbs 361ad96242 MFC: (rev 1.3) fix buffer overflow bug in NgSendAsciiMsg() 2000-06-02 21:54:10 +00:00
Brian Somers 429d90651e MF4: Include netgraph support when building with RELEASE_CRUNCH
Make mbufs more like kernel mbufs
     Allocate mbufs in buckets rather than individually
     Tidy up (and fix) sockaddr parsing of mib structures
     Parse quotes properly and complain about unbalanced ones
     Allow comments at the end of lines
     Use ioctl(TUNSIFHEAD) on the tun device if possible
     Correct CBCP redials
     Correct cmsghdr handling when passing links
     Don't fork to lose the current session when we're about to exit
     Tell the tun device when we change pid
     Show hex/decimal values rather than ??? for things not understood
     Depricate (but still support) -alias in favour of -nat
     Support DNS0/DNS1 macros, add the ``resolv'' command and dns logging
     Support redial/reconnect properly, and tell the -background parent
     Some constification, staticising, spelling and better diagnostics
     Default carrier behaviour based on the device type
     Differentiate between failing to start a program and the program exiting
     Fix the MP link-passing race by using a local-domain UDP socket
     Add "nat target"
     Fix some timer issues where timers are removed before they are triggered
     Handle pap text messages longer than 255 bytes
     Make -foreground a real option
     Bump version
2000-06-01 00:48:56 +00:00
Luigi Rizzo 3071e57b66 These files have been moved to another place 2000-05-31 12:55:44 +00:00
Luigi Rizzo 88ecdcef96 Add hooks for pccardd and syslogd 2000-05-31 12:52:51 +00:00
Luigi Rizzo b4cf26f5ec Minor cleanup of build script, handle kernel.conf properly 2000-05-31 12:49:10 +00:00
Luigi Rizzo c2f5746a1b MFC: move mfs-related files to a different subtree 2000-05-31 12:36:31 +00:00
cvs2svn dc05c54442 This commit was manufactured by cvs2svn to create branch 'RELENG_3'. 2000-05-31 12:27:39 +00:00
Darren Reed 3061d39f8d add IPFILTER_DEFAULT_BLOCK in opt_ipfilter.h 2000-05-30 14:35:04 +00:00
Chris Costello 5ff4f63010 MFC: Misspelled "undefined". 2000-05-27 22:06:46 +00:00
Jonathan Lemon 26c44bcfb3 MFC: 1.134, problem relating to sizeof() unsignedness.
Requested by:	kris
2000-05-26 17:52:28 +00:00
Darren Reed b0148174a9 ignore RST when adding state 2000-05-26 02:13:46 +00:00
Dirk Froemberg 0bb81d61d8 MFC: Remove -a from mkisofs' argument list. 2000-05-25 20:18:00 +00:00
Darren Reed 1c009f8da4 do not add state upon RST 2000-05-24 05:30:30 +00:00
Warner Losh f022392807 MFC: Don't read from '.' 2000-05-22 06:10:25 +00:00
Will Andrews f1bab70799 MFC: loud debugging facility documentation (-dl).
Approved by:	jkh
2000-05-20 20:18:49 +00:00
Will Andrews fe6cc274f8 MFC: loud debugging facility (-dl).
Approved by:	jkh
2000-05-20 20:12:19 +00:00
Greg Lehey 8f96ac9545 MFC: Add SI_SUB_VINUM. This will one day help support Vinum root file
systems.
2000-05-16 07:40:09 +00:00
Alexey Zelkin a107f9a3b5 MFC: rev 1.125, fix typo 2000-05-12 10:51:24 +00:00
Alexey Zelkin ea0b8a3ca4 MFC: rev 1.12, mdoc fixes 2000-05-12 10:24:35 +00:00
Alexey Zelkin 077ec12f46 Revert previous revision: it does not apply to RELENG_3 branch and was commited
by mistake.
2000-05-12 09:40:50 +00:00
Alexey Zelkin b39b2d93c5 (forced commit)
Previous commit was MFC of revs 1.23 and 1.24.
2000-05-12 09:37:10 +00:00
Alexey Zelkin c1d0a8eaae *** empty log message *** 2000-05-12 09:35:28 +00:00
Alexey Zelkin 3e2a1cc3c5 MFC: rev 1.90, add MLINKS: scsi.4 -> SCSI.4, scsi.4 -> CAM.4 2000-05-12 09:29:27 +00:00
Alexey Zelkin e061903d63 MFC: rev 1.8, fix typo, mdoc cleanup 2000-05-12 09:28:16 +00:00
Alexey Zelkin 3b8f2432c7 MFC: rev 1.124, add MLINKS: bktr.4 -> booktree.4 2000-05-12 09:27:38 +00:00
Alexey Zelkin 9823ce1537 MFC: rev 1.19, remove eg(4), mdoc cleanup 2000-05-12 09:25:01 +00:00
Alexey Zelkin 7443fad268 MFC: rev 1.16, add missing MLINKS for queue.3 manpage 2000-05-12 08:07:09 +00:00
Luigi Rizzo 90bf667f4b Only send warnings once per second when there is a problem with
dynamic rules.
2000-05-12 07:22:57 +00:00
Andrey A. Chernov 7d468f12af MFC: better fix for strftime/mktime bug 2000-05-11 23:54:18 +00:00
Nick Sayer 250b1654d0 MFC: v1.12
Approved by: jkh
2000-05-11 20:17:07 +00:00
David Nugent df36a23ef7 MFC: cosmetic change "reboot" -> "boot" 2000-05-11 06:36:27 +00:00
Alexey Zelkin cffe77ef75 MFC: rev 1.15 2000-05-10 15:47:30 +00:00
Alexey Zelkin 26d705914e MFC: rev 1.7, mdoc cleanup 2000-05-10 13:45:29 +00:00
Darren Reed 3e0e12ba19 Fix bug in dealing with "hlen == 1 and opt > 1" 2000-05-10 12:06:40 +00:00
Sheldon Hearn 2952519006 MFC: One author name per call to %A. 2000-05-10 10:01:29 +00:00
Sheldon Hearn 2ea325e74b MFC: Fix miscellaneous mdoc macro argument limit infringements. 2000-05-09 14:27:16 +00:00
Roger Hardiman 4bfb85ec97 Add support for Nokia Card Phone 2.0, a GSM Mobile Phone and
Data Modem on a single PCMCIA card. Supports HSCSD with download
speeds upto 43kbps.
http://www.nokia.com/phones/cardphone2_0/index.html
2000-05-09 11:24:02 +00:00
Luigi Rizzo 3b3d8a18a7 We might like to run syslog on PicoBSD... 2000-05-09 10:28:49 +00:00
Luigi Rizzo affa812063 Remove unused file. Kernel config is now in /boot/kernel.conf 2000-05-09 10:09:54 +00:00
Tim Vanderhoek 39f6944ff0 MFC: Bugfixes when viewing previous-file. 2000-05-09 03:57:14 +00:00
Archie Cobbs 1f3e316c87 MFC: bug fixes & statistics 2000-05-08 20:15:13 +00:00
Sheldon Hearn 47d0b5693d MFC rev 1.13: remove cwd from MLINKS 2000-05-08 16:32:44 +00:00
Sheldon Hearn f14d923307 MFC rev 1.6: remove ``cwd'' and fix table heading. 2000-05-08 16:31:30 +00:00
Josef Karthauser e86ad5d7b5 MFC: Fix a potential buffer overflow with the generation of the
pid-file name. {from revision 1.32}
2000-05-07 18:17:42 +00:00
Josef Karthauser 9beac9666c MFC: Fix a potential buffer overflow in the command line argument parsing
with 'ed [MAXPATHLEN + 1 chars]'. {from revision 1.15}
2000-05-07 18:00:02 +00:00
Ruslan Ermilov 6d5cd465ac MFC: rev 1.55 and part of rev 1.57 (run install-info with --quiet). 2000-05-06 19:00:45 +00:00
Ruslan Ermilov e0492f4516 MFC: Upgrade to GNU texinfo 4.0. 2000-05-06 18:54:01 +00:00
Ruslan Ermilov a4618f2b47 MFC: Do not install dir-tmpl into /usr/share/info. 2000-05-06 18:40:59 +00:00
Alexey Zelkin 7b0750c4a2 MFC: Use `Er' variable to define first column width in ERRORS section. 2000-05-06 13:46:28 +00:00
Alexey Zelkin 85176c8b7d MFC: rev 1.9, EXAMPLE -> EXAMPLES 2000-05-06 13:45:03 +00:00
Alexey Zelkin 8b8a7c55f3 MFC: rev 1.35, mdoc cleanup 2000-05-06 13:44:32 +00:00
Alexey Zelkin de932a0ebe MFC: rev 1.29, change Er's value (12 -> 17) 2000-05-06 12:13:09 +00:00
Kris Kennaway 45f5c94561 MFC^2: Note ports-base as a mandatory collection 2000-05-06 03:47:34 +00:00
Kirk McKusick 17a80b1c12 Merge in fix in delta 1.29 from current to properly reset
grace timer when files are given to a user by root.
2000-05-06 01:44:31 +00:00
Archie Cobbs 0aa3a7aab2 MFC: (rev 1.6) document the new statistics control messages 2000-05-05 17:31:55 +00:00
Archie Cobbs 6e77834d9e MFC: fix broken multi-link fragment reassembly algorithm. 2000-05-05 17:25:23 +00:00
Archie Cobbs 659007677a MFC: field structure changed name from 'typename' -> 'type_name'. 2000-05-05 17:23:40 +00:00
Archie Cobbs 146dbacf18 MFC: typename -> type_name; add ng_copy_meta() 2000-05-05 17:22:39 +00:00
Sheldon Hearn fb9e9cb8ac MFC rev 1.10: use IP addresses to "allow anything". 2000-05-05 08:33:58 +00:00
Joseph Koshy 1d79eedc18 Back out rev 1.9.2.3, which got committed to this branch by mistake. 2000-05-05 08:25:55 +00:00
Joseph Koshy 3dc1ed1546 Since csh' in -current is tcsh', link in a manual page for
`tcsh(1)', for completeness.

Approved by:	obrien
2000-05-05 08:07:27 +00:00
Archie Cobbs c71e94e2bd MFC: Document TAILQ_FOREACH_REVERSE() and CIRCLEQ_FOREACH_REVERSE() 2000-05-05 01:44:50 +00:00
Archie Cobbs 5d6faa5f47 MFC: TAILQ_FOREACH_REVERSE and CIRCLEQ_FOREACH_REVERSE 2000-05-05 01:41:41 +00:00
Archie Cobbs a5cbca63c6 MFC: move netgraph node type man pages from section 8 to section 4. 2000-05-04 21:25:17 +00:00
Archie Cobbs 194bd29fc0 MFC: move netgraph node type man pages from section 8 to section 4. 2000-05-04 17:58:17 +00:00
cvs2svn 728f66d135 This commit was manufactured by cvs2svn to create branch 'RELENG_3'. 2000-05-04 17:54:38 +00:00
Archie Cobbs 5d3d161d8b MFC: move netgraph node type man pages from section 8 to section 4. 2000-05-04 17:45:24 +00:00
Alexey Zelkin e177782f30 MFC: rev 1.18, remove BUGS section 2000-05-04 16:56:37 +00:00
Alexey Zelkin 4f47bb929a MFC: .Fx', .Nx' and `.Ox' are parsed and callable (document it) 2000-05-04 16:27:58 +00:00
Archie Cobbs 571b69d5f6 MFC: define IF_MINMTU and IF_MAXMTU, and validate MTU against them. 2000-05-03 22:48:38 +00:00
Archie Cobbs e0ed6449a5 MFC: formatting tweaks. 2000-05-03 16:50:17 +00:00
Archie Cobbs 7909dfb224 MFC: (rev. 1.18) add missing declaration of lchmod(2). 2000-05-02 23:41:38 +00:00
Luigi Rizzo bbcb3c410d Fix a typo firewall->firewall_enable and make the rc.conf
ask for a hostname in case a matching ethernet card is
not found.
2000-05-02 10:01:59 +00:00
Luigi Rizzo 754e66d99c disable x11 forwarding, we have no X on PicoBSD 2000-05-02 10:00:48 +00:00
Archie Cobbs c2e583bb31 MFC: (rev. 1.6) fix a bug in handling the debug level 2000-05-01 18:12:25 +00:00
Peter Wemm 09f34ab63f MFC: remove flawed semconfig(2) 2000-05-01 11:18:47 +00:00
Peter Wemm e4804beb66 MFC: remove semconfig() calls 2000-05-01 10:53:55 +00:00
Josef Karthauser f1c96267e4 MFC: Fix a potential buffer overflow (r1.24).
PR:	bin/15101
2000-04-30 20:12:40 +00:00
Satoshi Asami c1626a6084 Merge 1.11. 2000-04-29 11:45:16 +00:00
Luoqi Chen f0182cf3fc MFC: IO apics are not necessarily page aligned, they are only required
to be aligned on 1K boundary. Correct a typo that would cause problem
to a second IO apic.

Pointed out by: Steve Passe     <smp.csn.net>
2000-04-28 19:28:01 +00:00
Alexey Zelkin cbb2d8ac88 MFC: rev 1.27, fix typo 2000-04-28 09:33:42 +00:00
Matthew Dillon 94ef636115 MFC 1.88 to 3.x. Close a window in the use of HLT. When using HLT,
the STI must occur in the instruction before the HLT to guarentee
    that no interrupt can occur inbetween the STI and the HLT.
2000-04-27 16:58:45 +00:00
Luigi Rizzo 04a1d8287f Documentation update. 2000-04-27 10:28:22 +00:00
Alexey Zelkin 0106e46817 MFC: rev 1.26, -lc_r -> -pthreads 2000-04-27 09:03:52 +00:00
Archie Cobbs 83e43f150a MFC (rev 1.130): SIGIO bug fix 2000-04-27 01:19:17 +00:00
Kris Kennaway c7e8378409 Fix the buffer overflow reported on Bugtraq.
Submitted by:	Ben Smithurst <[email protected]>
2000-04-26 06:06:58 +00:00
Wes Peters 2be89bac8f MFC patches for stream attack. This fell through the crack
on 3.x.

Reviewed by:	Mike Silbersack <[email protected]>
2000-04-25 05:07:54 +00:00
Alexey Zelkin 8ab18b6932 MFC: rev 1.37, better handling groff failures 2000-04-24 12:13:51 +00:00
Alexey Zelkin 96654206c2 MFC: clean up warngings 2000-04-24 12:06:04 +00:00
Alexey Zelkin 2b1b022a24 MFC: rev 1.27, install TESTS directory contents
to /usr/share/examples/libdialog
2000-04-24 11:56:10 +00:00
Alexey Zelkin 9a3701e24b MFC: rev 1.41, update cvs pserver example (add --allow-root switch) 2000-04-24 11:54:51 +00:00
Alexey Zelkin 19de0cc262 MFC: rev 1.182, create share/examples/libdialog 2000-04-24 11:44:54 +00:00
Alexey Zelkin 913b03a888 MFC: rev 1.25, install additional docs, install additional manpages 2000-04-24 11:39:39 +00:00
Alexey Zelkin 521edd4c95 MFC: rev 1.180, create share/examples/bind/{html,misc} dirs 2000-04-24 11:30:55 +00:00
Alexey Zelkin 888de06d34 MFC: simple notes on /usr/share/examples/dialog directory 2000-04-24 11:27:03 +00:00
Alexey Zelkin 72f7147985 MFC: install contents of the TESTS subdirectory to /usr/share/examples/dialog/ 2000-04-24 11:25:09 +00:00
Alexey Zelkin eba63bed46 MFC: rev 1.178, add share/examples/dialog 2000-04-24 11:23:00 +00:00
Alexey Zelkin d7f3a396a2 MFC: rev 1.17, install examples 2000-04-24 11:17:53 +00:00
Alexey Zelkin c82b30ba77 MFC: rev 1.179, add share/examples/bc 2000-04-24 11:16:38 +00:00
Alexey Zelkin e3aec02388 MFC: introduce .Lb macro to left libraries manpages 2000-04-23 17:48:21 +00:00
Alexey Zelkin 835cb69838 MFC: introduce .Lb macro to libc manpages
Great bunch of $freeBSD$ tags added
2000-04-23 17:12:31 +00:00
Alexey Zelkin a272cf57e2 MFC: introduce .Lb macro to libc_r manpages 2000-04-23 16:07:45 +00:00
Alexey Zelkin a7153f14a9 MFC: rev 1.18 (mdoc.7), rev 1.29 (mdoc.samples.7), document .Lb macro 2000-04-23 15:48:24 +00:00
Alexey Zelkin 22ad89ecf5 MFC: rev 1.13, suggest to use .Lb 2000-04-23 15:45:47 +00:00
Alexey Zelkin 4bdf6172b3 MFC: rev 1.23, 1.24, 1.25, introduce .Lb macro 2000-04-23 15:43:29 +00:00
Kenneth D. Merry 656d5060c9 MFC, rev 1.21. Fix a panic in the case of a probe failure, and add a
newline in an error message.

PR:		kern/17512
Submitted by:	Louis Mamakos <[email protected]> (newline fix)
2000-04-22 20:58:45 +00:00
Yoshihiro Takahashi 54c968b968 MFC: Changed interrupt level to splcam(). 2000-04-22 15:09:35 +00:00
Guido van Rooij 7ba5dd0596 MFC: 1.85 & 1.86 2000-04-21 18:16:59 +00:00
Kazutaka YOKOTA 1321142b69 MFC: Reduce the default timeout for the three button emulation
from 200 msec to 100 msec.
2000-04-21 14:21:39 +00:00
Kazutaka YOKOTA 687a6e874b MFC: -3 option fix (rev 1.41, 1.43). 2000-04-21 14:06:24 +00:00
Joerg Wunsch 42b3cc50c7 MFC 1.6: southamericarand -> southafricarand 2000-04-18 16:39:26 +00:00
Roger Hardiman ac964b96ee MFC: open compile bktr_i2c.c if smbus is defined 2000-04-18 13:33:02 +00:00
Ruslan Ermilov f3295d07e9 MFC: (rev 1.26) Apply TCP_EXPIRE_CONNECTED (86400 seconds) timeout only
to established connections, after SYN packets were seen from both ends.

PR:		bin/17963
2000-04-17 09:05:59 +00:00
Sheldon Hearn 9e2e03de9a MFC rev 1.20: Fix Y2K bug. 2000-04-14 13:55:28 +00:00
Sheldon Hearn 4bb1180de5 MFC: Add example refuse file. 2000-04-13 14:56:00 +00:00
Sheldon Hearn cc490cfc6c MFC: Add example refuse file. 2000-04-13 14:43:56 +00:00
cvs2svn 87251c43a2 This commit was manufactured by cvs2svn to create branch 'RELENG_3'. 2000-04-13 14:40:40 +00:00
Archie Cobbs 6cdcb905e5 MFC: (rev. 1.13) fix uninitialized variable 2000-04-12 17:31:02 +00:00
Archie Cobbs 5eb69753a4 MFC: (rev 1.8) use snprintf instead of sprintf 2000-04-11 01:26:27 +00:00
Archie Cobbs 54289f4062 MFC: (rev 1.5) unicast/multicast correction 2000-04-11 01:24:23 +00:00
Archie Cobbs 6578141402 MFC: minor prototype tweaks 2000-04-11 01:21:39 +00:00
Archie Cobbs 403be0eec3 MFC: fix typo 2000-04-11 01:12:25 +00:00
Jeroen Ruigrok van der Werven 8071fb08a4 MFC: Also document NO_BIND in 3-STABLE.
PR:		16959
Submitted by:	Michael Lucas <[email protected]>
2000-04-10 19:55:02 +00:00
Archie Cobbs a57cb9cea9 MFC: (rev 1.12) document EWOULDBLOCK. 2000-04-09 19:15:03 +00:00
Kazutaka YOKOTA 0d42e1a936 MFC: relfect recent update in psm.c. 2000-04-09 03:19:46 +00:00
Kazutaka YOKOTA 36ce318e2d MFC: add support for more PS/2 mice.
psm.c rev 1.24, mouse.h rev 1.16, atkbdcreg.h rev 1.5,
moused.c rev 1.39, 1.40, 1.42.
2000-04-09 03:09:06 +00:00
Yoshihiro Takahashi c7e74a1a3a Merged from sys/i386/isa/wd.c revision 1.186.2.5. 2000-04-07 11:18:18 +00:00
Yoshihiro Takahashi afd97db7c3 Merged from sys/boot/i386/btx/btx/btx.s revision 1.8.2.5. 2000-04-07 11:17:09 +00:00
Satoshi Asami 573acb94dc MFC: 1.537 (use release tags for ports and doc trees) 2000-04-06 10:02:08 +00:00
Paul Saab 355af1eb67 MFC: 1.219 Fix wddump in LBA mode.
Reviewed by:	peter
2000-04-06 05:44:14 +00:00
Archie Cobbs 0e8d155b5b MFC: (rev. 1.2) identify timezone data files by their ``TZif'' magic number 2000-04-05 18:44:01 +00:00
Ruslan Ermilov f6c15cf743 MFC: New timezone data from ftp://elsie.nci.nih.gov/pub/tzdata2000d.tar.gz 2000-04-05 18:21:21 +00:00
Ruslan Ermilov 4c4c0c7302 MFC: (rev 1.142)
Get rid of "sticky" files when updating sources from CVS repository.

Requested by:	peter
2000-04-05 17:55:16 +00:00
Sheldon Hearn 7bc65648a4 MFC rev 1.12: MANSEC -> MANSECT. 2000-04-05 14:02:35 +00:00
Sheldon Hearn 8e7eb84ef1 MFC rev 1.37: Ignore passwordless, blocked out NIS entries. 2000-04-05 13:46:37 +00:00
Yoshihiro Takahashi 662faa8b5d Merged from sys/i386/isa/sio.c revision 1.224.2.9. 2000-04-05 11:13:25 +00:00
John Polstra 409a4bb24d MFC 1.9 -> 1.10: Document that the flags can be specified as an
octal number.
2000-04-03 22:13:40 +00:00
Brian Somers 2fea4d4a1f MFC: Plug two file descriptor leaks 2000-04-03 20:02:28 +00:00
Peter Wemm ded69f1e56 For a special request: add USR3050 as well for RELENG_3. 2000-04-02 05:31:53 +00:00
David Greenman 61e2327d40 Merged changes from rev 1.78 (if_fxp.c) and 1.10 (if_fxpvar.h): fixes
to support certain larger SEEPROMs.
2000-04-01 19:04:22 +00:00
Yoshihiro Takahashi 0b94586b4f MFC: Copy from BIOS work area to the cpu_id variable (PC-98 only). 2000-04-01 13:12:31 +00:00
Yoshihiro Takahashi ed4ecf6661 MFC: Added Ratoc REX-9880/83 supports (PC-98 only). 2000-04-01 13:11:11 +00:00
Chris Timmons 506e021254 MFC: Sync w/-CURRENT 2000-03-31 13:23:38 +00:00
Chris Piazza 3ef07912e3 MFC: rev 1.10, export host 2000-03-29 07:11:29 +00:00
John Baldwin b1d731442d MFC: STAILQ example fix. 2000-03-27 13:33:08 +00:00
Sheldon Hearn 6462ba99d3 MFC rev 1.9 and rev 1.10: Handle broken MDTM responses. 2000-03-27 10:22:45 +00:00
Sheldon Hearn e8109a0158 MFC rev 1.59: Document allscreens_flags. 2000-03-27 10:13:52 +00:00
Sheldon Hearn e3077c34b9 MFC: Add a test for the environment variable PW_SCAN_BIG_IDS and
silence warnings about largs IDs if the envar exists.  See the
attributed PR for an exact list of revisions merged.

PR:		13344
2000-03-27 10:07:31 +00:00
Kris Kennaway aaa4afb99e MFC: Update CFLAGS documentation 2000-03-27 02:53:20 +00:00
David E. O'Brien 3138d6e892 Add a "magic" comment to help fixincludes realize it doesn't need to
modify this file when building GCC 2.96 [by hand or via the port].

Submitted by:	Zack Weinberg <[email protected]>
2000-03-27 02:01:27 +00:00
David E. O'Brien 2f61745857 Don't define our own `bool' type if we are using C++.
Submitted by:	Zack Weinberg <[email protected]>
2000-03-27 01:57:44 +00:00
David E. O'Brien 5cbff9c694 Minor changes to assist the building of GCC 2.96 on this branch.
Submitted by:	Zack Weinberg <[email protected]>
2000-03-27 01:55:59 +00:00
Satoshi Asami 42f4c2d3be Merge 1.10. 2000-03-25 00:01:34 +00:00
Jeroen Ruigrok van der Werven a22312ac9e MF5C: Fix typo. 2000-03-24 21:11:28 +00:00
Kris Kennaway f9480af180 MFC: NO_X 2000-03-24 07:45:24 +00:00
Kris Kennaway dff331a1c3 MFC: NO_X knob 2000-03-24 07:39:04 +00:00
Matthew Dillon 7647331e82 MFC 1.61 - fix in-kernel infinite loop in pipe_write() when reader goes
away at just the wrong moment.
2000-03-24 00:48:57 +00:00
Jeroen Ruigrok van der Werven 3f8f0ce26f Fix groff breakage with regard to the safer macros. 2000-03-23 14:56:16 +00:00
Patrick S. Gardella 88e9c46a1c MFC: Display CPU (BSP) clock speed on SMP systems. (-CURRENT diff 1.76)
Reviewed by:  green
Tested by:    Brandon D. Valentine <[email protected]>
              Tod Luginbuhl <[email protected]>
2000-03-22 11:21:16 +00:00
Yoshihiro Takahashi 0da05bff2f MFC: Simplify messages of Pentium II, Pentium II Xeon, Celeron, Pentium III
and Pentium III Xeon CPUs.
2000-03-22 05:27:22 +00:00
Yoshihiro Takahashi 1499655add MFC: Increment number of retries before giving up. 2000-03-22 05:24:07 +00:00
Luigi Rizzo 41370a415b MFC: properly print interface name. 2000-03-21 13:45:44 +00:00
Brian Feldman cf370c5ac7 Make memcontrol(8) able to delete the segments starting at a base of 0
which it can create..
2000-03-20 22:53:32 +00:00
Guido van Rooij 2d7f919577 MFC: add -L flag to usage() 2000-03-20 18:34:54 +00:00
Martin Cracauer 0d82a4031c MFC: Warn and exit != 0 when file size doesn't meet what server previously
announced
2000-03-20 15:45:19 +00:00
Sheldon Hearn 96fbc99809 MFC rev 1.13: Remove once again the erroneous xref to ld.so(1). 2000-03-20 13:32:22 +00:00
Martin Cracauer 9d493d8a7d MFC: allow comments in #!/bin/sh # - line 2000-03-20 12:22:49 +00:00
Martin Cracauer cad3849f08 Complete syncing with 4.x 2000-03-20 10:55:19 +00:00
Martin Cracauer 33cd98eb43 MFC: Sync with 4.x fixes 2000-03-20 10:51:05 +00:00
Brian Feldman f22c1fb892 2"5MFC: Correctly fill the mask from the left, not the right. 2000-03-19 19:30:46 +00:00
Larry Lile 7eec457494 o MFC: Fix typo in the RapidFire 3540 adapter name
4/16/100 -> 100/16/4 so that it matches all of the others.

o MFC: Since we went to all the trouble of getting the correct
  working memory size actually use it.

* Submitted by: Nikolai Saoukh <[email protected]>
2000-03-19 15:10:35 +00:00
Yoshihiro Takahashi 1c7bc4ad8a MFC: Fixed to probe extended memory. 2000-03-19 08:12:10 +00:00
Yoshihiro Takahashi 65057171f7 MFC: Changed key assign for PC-98. 2000-03-19 08:07:41 +00:00
Yoshihiro Takahashi 0cdc0996df MFC: Fixed to support old parallel interface. 2000-03-19 08:05:54 +00:00
Larry Lile 9d0f3ec93f MFC: New-bus Olicom driver
o Replace the old "oltr" driver with the completely re-written
  new-bus Olicom driver, previously known as "ol".  The new
  driver unfortunately does not support ISA cards yet.

o Update the microcode files, interface library and include files
  to the latest PowerMACH works version.  Force even byte alignment
  of adapter microcode.

o Roll in some of the patches from Nikolai Saoukh <[email protected]>.

* Approved by: Jordan K. Hubbard <[email protected]>
2000-03-19 01:53:56 +00:00
Bruce Evans 9c3d86e34a Disabled use of the global page feature. Many places depend on invltlb()
invalidating all pages, but it only works for non-global pages.  A better
fix should be merged from -current when it is completely fixed there
(see rev.1.251 for the different work-around in -current).

PR:		16568, 14141 (part)
2000-03-18 14:47:53 +00:00
Chris Piazza 461b909be8 MFC 1.253, update australian ntp server 2000-03-18 02:58:59 +00:00
Yoshihiro Takahashi f38139c1d6 Sync with sys/boot/i386/libi386/biosdisk.c revision 1.20.2.8. 2000-03-17 12:53:04 +00:00
Chris Costello fd1448ae73 Back out partial spamming of RELENG_4's manual onto RELENG_3. I
left in the 4.x locking section in the changes to the 3.x manual.
2000-03-16 23:09:15 +00:00
Chris Costello df95784479 MFC: Make `struct vattr *' variable names consistent (vpp->vap). 2000-03-16 22:47:03 +00:00
John Baldwin 51edb118ef MFC the bcache loader fixes.
Submitted by:	dcs
2000-03-16 18:22:51 +00:00
Yoshihiro Takahashi e89906a722 Fixed to support 30-line mode.
Submitted by:   [email protected] (Chiharu Shibata)
2000-03-16 12:08:03 +00:00
Yoshihiro Takahashi 5f1061cab9 MFC: Added 'flags 0x40' to ppc0. 2000-03-16 12:04:36 +00:00
Yoshihiro Takahashi 52a5857e4c MFC: Changed sio1 flags to 0x12000010 to enable serial console. 2000-03-16 11:54:31 +00:00
Sheldon Hearn 0750c208f0 MFC rev 1.17: Warn against using 3c509 in EISA mode on non-EISA systems. 2000-03-15 20:54:33 +00:00
Sheldon Hearn 2356f3b797 MFC rev 1.41: Fix post-creation cleanup bug. 2000-03-15 09:36:07 +00:00
Brian Feldman a0fb7a7271 MFC: rev.1.16, crash on read() of lpctlX fix 2000-03-15 03:28:53 +00:00
Archie Cobbs d68a3a6fc4 MFC: (rev. 1.45) have MGETHDR() always initialize m->m_pkthdr.rcvif 2000-03-14 20:50:53 +00:00
Sheldon Hearn 520de72f93 MFC rev 1.9: Do not list a null string in a dialog box. 2000-03-14 12:47:53 +00:00
Sheldon Hearn c7b55856c9 MFC rev 1.8: Formalize the option descriptions. 2000-03-14 10:57:08 +00:00
Sheldon Hearn 70cb9131f2 MFC rev 1.11: Cope with quotes around font names in /etc/rc.conf . 2000-03-14 09:31:27 +00:00
Archie Cobbs b59ca09840 MFC: (rev. 1.2) remove erroneous help text. 2000-03-13 19:25:04 +00:00
Archie Cobbs 5437d2cfea MFC: (rev 1.5) fix typo 2000-03-13 18:31:42 +00:00
Daniel C. Sobral 9b66818e85 MFC. 2000-03-13 17:33:27 +00:00
cvs2svn d3f2567889 This commit was manufactured by cvs2svn to create branch 'RELENG_3'. 2000-03-13 17:31:45 +00:00
Jeroen Ruigrok van der Werven 8d7cb68e80 MFC: 1.7 and 1.8 2000-03-13 13:44:03 +00:00
Jeroen Ruigrok van der Werven 3b076482e7 MFC the Makefile for grog. 2000-03-13 12:40:14 +00:00
Jeroen Ruigrok van der Werven c39d4580a6 Enable installation and build of grog, grohtml and devthml. 2000-03-13 12:39:46 +00:00
Jeroen Ruigrok van der Werven c6607146b6 Remove DHAVE_CC_OSFCN_H just like in 4.0. 2000-03-13 12:12:31 +00:00
Jeroen Ruigrok van der Werven 01189e8725 Fix spammage introduced in an older version to fix the y2k bug.
This will ensure it is synched with 4.0's version.
2000-03-13 10:46:52 +00:00
Archie Cobbs 9e614ed4c6 MFC: correct man page title 2000-03-10 20:38:55 +00:00
Sheldon Hearn 1afb74c5f8 MFC rev 1.15: Fix whitepace in the arguments of two Xr macros. 2000-03-10 14:47:32 +00:00
Sheldon Hearn a0775bc857 MFC rev 1.14: The default pager is more(1) and not less(1). 2000-03-10 14:44:50 +00:00
Jeroen Ruigrok van der Werven ec3258a1ca MFC: devhtml and grohtml bmake glue. 2000-03-09 21:25:57 +00:00
Jeroen Ruigrok van der Werven 0ea7d62a93 Make sure the locale information gets installed. 2000-03-09 21:11:44 +00:00
Jeroen Ruigrok van der Werven 8ebc865a8d MFC: groff 1.15 2000-03-09 20:13:48 +00:00
Matthew Dillon 98846daf14 MFC 1.33 - move brelse() so last access of data occurs prior to buffer
release rather then after the buffer is released.
2000-03-09 18:57:17 +00:00
Jeroen Ruigrok van der Werven b408f6968a Add necessary mtree entries for the groff MFC. 2000-03-09 16:35:32 +00:00
Sheldon Hearn 9e737ff934 MFC rev 1.7: Use Op macro for optional -c option. 2000-03-09 09:31:52 +00:00
Bruce Evans e064d546f4 MFC (1.63: don't forget to check for unsupported features when updating). 2000-03-09 05:31:20 +00:00
Jeroen Ruigrok van der Werven c2f433cd3a Enable the rc.sysctl functionality which lay dormant in rc in STABLE.
Approved by:	green, imp, wes
2000-03-08 12:28:35 +00:00
Sheldon Hearn 8575a1601b MFC rev 1.10 rev 1.11 rev 1.12: Add -s option, add description of -o
option, remove blank lines.
2000-03-08 10:18:11 +00:00
Jeroen Ruigrok van der Werven 4e8ddb7399 Add the sysctl.conf manpage to the build. 2000-03-08 08:19:05 +00:00
Bill Fenner 0edd301102 Fix socklen_t breakage introduced in 1.27.2.3: the functions that
take socklen_t * are still prototyped as taking int *, so make
 socklen_t an int until the prototypes and implementations are fixed.
2000-03-08 06:32:44 +00:00
Kris Kennaway 60317d8659 MFC: Remove the 'alpha test' warning. 2000-03-08 03:34:46 +00:00
Sheldon Hearn 00b3291bf0 MFC rev 1.19: Assorted mdoc fixes. 2000-03-07 22:51:27 +00:00
Sheldon Hearn 3530151be0 MFC rev 1.18: Missed this one in the previous MFC for same revision. 2000-03-07 22:50:39 +00:00
Sheldon Hearn cc28c9554c MFC rev 1.34: Correct confusing description for -r option. 2000-03-07 20:56:21 +00:00
Jordan K. Hubbard 5711c10454 MFC: slovenian keymaps
Submitted by:	Blaz Zupan <[email protected]>
2000-03-07 16:45:04 +00:00
Luigi Rizzo f463f13829 Fix support for CS4235, which has a different mixer and no native
support for ULAW (cheap design).
This code is mostly from Jose M. Alcaide, with minor changes and
cleanup done by myself. I have used it for several months now.

The pcm driver in -current is a different beast so there is no
way to make the commit there first.
2000-03-07 11:19:29 +00:00
Sheldon Hearn ca17de000c MFC: Remove single-space hard sentence breaks. 2000-03-06 11:37:35 +00:00
Joseph Koshy abe037be31 Document the `-z' option MFC'd in rev 1.29.2.4 of "vmstat.c". 2000-03-06 07:38:31 +00:00
Sheldon Hearn 50339088d8 MFC rev 1.9: NetBSD fixes. 2000-03-06 07:09:40 +00:00
Sheldon Hearn 27b07de73e MFC part of rev 1.44: Make TCPMUX a valid subsection and mark FreeBSD
up properly.

This is why it's such a bad idea to mix several different kinds of
fix into mdoc commits. :-(
2000-03-04 08:14:16 +00:00
Matt Jacob 21e942bcd5 MFC: pullup Qlogic isp man page 2000-03-04 04:59:03 +00:00
Matt Jacob c70bc8e01e MFC: add Ultra3 for Qlogic comments 2000-03-04 04:53:58 +00:00
Matt Jacob aaebae5755 MFC: Add Qlogic Ultra3 support, better fibre channel stuff, and put in
target mode support (not working for Fibre Channel because an incompatible
CAM change would have to be made).
2000-03-04 04:43:50 +00:00
Matt Jacob ca2ad66011 MFC: add qentry print function 2000-03-04 04:41:34 +00:00
Matt Jacob 9068cd261e MFC: add Qlogic Ultra 3 f/w 2000-03-04 04:38:10 +00:00
Matt Jacob fb6b9ea290 MFC: add Qlogic target mode support 2000-03-04 04:36:04 +00:00
Matt Jacob 03755a61d4 MFC: add Ultra3 Qlogic support 2000-03-04 04:32:01 +00:00
Matt Jacob 737e58fc93 MFC up through 1.45:
Add Ultra3 support. Add (not quite functional for fibre channel) target mode
support back to the RELENG_3 branch.
2000-03-04 04:30:28 +00:00
Matt Jacob 9f75803217 MFC 1.76
Make sure we don't look at an edt entry that could go away when we try
and figure out whether to probe higher than lun 7.
2000-03-04 04:26:41 +00:00
Sheldon Hearn 8c224bc0ae MFC: Remove single-space hard sentence breaks. 2000-03-03 22:37:16 +00:00
Paul Saab 93a38ac115 MFC: -z option to dump data from the zone allocator. 2000-03-03 15:32:35 +00:00
Sheldon Hearn bd02972385 Remove single-space hard sentence breaks. These degrade the quality
of the typeset output, tend to make diffs harder to read and provide
bad examples for new-comers to mdoc.

This is not a merge from current.
2000-03-03 15:31:33 +00:00
Sheldon Hearn aafd282330 MFC: remove single-space hard sentence breaks. 2000-03-03 15:24:57 +00:00
Sheldon Hearn f619674d43 MFC: Remove single-space hard sentence breaks. 2000-03-03 15:13:46 +00:00
Sheldon Hearn de1daba970 MFC: Remove single-space hard sentence breaks. 2000-03-03 14:59:51 +00:00
Sheldon Hearn 7b43ed5810 MFC rev 1.9: Update for ELF world. 2000-03-03 13:57:37 +00:00
Sheldon Hearn 2da8e505c5 MFC: Add missing sh builtin command ``read''. 2000-03-03 13:20:57 +00:00
Sheldon Hearn 4097e75c28 MFC rev 1.16: Remove single-space hard sentence breaks. 2000-03-03 12:56:57 +00:00
Sheldon Hearn f1423a2cdb MFC rev 1.15: Fix DIAGNOSTICS section. 2000-03-03 12:55:32 +00:00
Sheldon Hearn 31d0fdb4df MFC rev 1.16 and rev 1.18: Remove single-space hard sentence breaks. 2000-03-03 12:08:23 +00:00
Sheldon Hearn a18517d760 MFC rev 1.17: Fix bogus DIAGNOSTICS section. 2000-03-03 12:05:24 +00:00
Sheldon Hearn 94af75cb07 Remove single-space hard sentence breaks. These degrade the quality
of the typeset output, tend to make diffs harder to read and provide
bad examples for new-comers to mdoc.

This is not a merge from current because these files are in the Attic
there.
2000-03-03 11:43:25 +00:00
Sheldon Hearn 66d4e0a337 Remove single-space hard sentence breaks. These degrade the quality
of the typeset output, tend to make diffs harder to read and provide
bad examples for new-comers to mdoc.

This is not a merge from current because these files were recreated
from the HTML source from the new distribution in current.  The new
files weren't created with _any_ hard sentence breaks.
2000-03-03 11:29:24 +00:00
Ruslan Ermilov af659d8008 MFC: (rev 1.63) a lot of -mdoc fixes.
Urged by:	sheldonh
2000-03-03 11:06:44 +00:00
Sheldon Hearn f1a5d383af MFC rev 1.5: Correct HISTORY. 2000-03-03 09:28:58 +00:00
Sheldon Hearn 0a5c2578e3 MFC rev 1.5: Fix grammar in a comment. 2000-03-03 09:26:04 +00:00
Chris Timmons 5d7c78a953 MFC: $FreeBSD$, hosts_access(5) reference. 2000-03-03 00:16:14 +00:00
Sheldon Hearn c531e0ec91 MFC rev 1.4: Print usage correctly. 2000-03-02 15:05:25 +00:00
cvs2svn 8e09125a6b This commit was manufactured by cvs2svn to create branch 'RELENG_3'. 2000-03-02 14:54:03 +00:00
Ruslan Ermilov 5632908700 MFC: (rev 1.83) fixes the panic in sl_compress_tcp(). 2000-03-01 13:13:10 +00:00
Nik Clayton f13a7acbbc Add comment to ppc section, explaining that if you copy the line from
GENERIC you'll get a parallel port configured for networking, and not
printing.  Trying to use a port configured like this can lead to reboots.

Discussed on:	-stable
2000-03-01 10:51:37 +00:00
Sheldon Hearn 990cdf449a MFC rev 1.45 and rev 1.46:
Fix hard sentence breaks.
	Clarify explanation of which syslog logging facility is used.
2000-03-01 08:31:42 +00:00
Joseph Koshy 0c8d3a4a50 MFC: Change card description strings in two entries to their full form. 2000-03-01 06:01:06 +00:00
Archie Cobbs 1e21db505a MFC: comment for sdl_family field should say AF_LINK, not AF_DLI. 2000-03-01 02:48:05 +00:00
Joerg Wunsch 1687007f70 MFC: SIGHUP and SIGCHLD ought to be restartable as they used to be. 2000-02-29 08:04:53 +00:00
Paul Saab 06237e878c MFC: 1.73
Approved by:	jkh
2000-02-29 07:18:57 +00:00
Joerg Wunsch 1fd7f1d136 MFC: rev 1.58, fix a deadly race condition between the signal handlers
for SIGHUP and SIGCHLD.
2000-02-28 17:55:11 +00:00
Yoshihiro Takahashi 176f4475bf Sync with sys/i386/i386/userconfig.c revision 1.126.2.13. 2000-02-28 11:46:54 +00:00
Joseph Koshy 2c81fda5fc MFC: {rev 1.11} Increase `CIS_MAXSTR' to 254. This allows pccardd(8) in
-STABLE to recognize PCMCIA cards with long identification strings.

Reviewed by:	Warner Losh <[email protected]>
2000-02-28 05:20:29 +00:00
Brian Feldman d6eeb193d2 MFC: Fix a typo of repetition.
Submitted by:	Kris Dow <[email protected]>
2000-02-28 03:06:03 +00:00
Steve Price 38e43e8224 MFC: grammar fix - follow to following 2000-02-26 16:56:27 +00:00
Jordan K. Hubbard c8813e99af MFC: screen clear 2000-02-26 12:42:37 +00:00
Jordan K. Hubbard 3a3ab590b9 MFC: typo fix 2000-02-26 12:34:20 +00:00
Jordan K. Hubbard 0ac945f4d4 MFC: cosmetic cleanup 2000-02-26 12:32:51 +00:00
Jordan K. Hubbard 157ef6c6ac MFC: really toggle variables 2000-02-26 12:06:35 +00:00
Jordan K. Hubbard b938cb2734 MFC: proper abstraction. 2000-02-26 11:56:57 +00:00
Ruslan Ermilov b4d446bdf7 MFC: (rev 1.25) remove config line length restriction. 2000-02-25 11:42:44 +00:00
Matthew Dillon 93fb552688 MFC from 1.26, fix a 'freeing free block' panic that can occur when a
filesystem fills up by proper unwinding indirect blocks during a balloc
    when new indirect blocks can be allocated but the datablock cannot.
2000-02-24 20:46:42 +00:00
Kazutaka YOKOTA 15b630624f MFC: add a couple of serial mouse PnP IDs (rev 1.36, 1.37). 2000-02-24 12:28:56 +00:00
Archie Cobbs 138dc03e88 MFC: correct information about the name of the netgraph node 2000-02-24 04:34:46 +00:00
Gregory Sutter 6ac1fbac73 MFC: 1.12 (Reflect that dd accepts octal and hexadecimal numbers) 2000-02-23 01:06:40 +00:00
Ruslan Ermilov d5cdbc603a MFC: buffer overflow fix.
PR:		16415
2000-02-21 10:26:44 +00:00
Jordan K. Hubbard d2b5a160da MFC: Make the doc menu work again. 2000-02-20 23:49:25 +00:00
Jordan K. Hubbard ff21a0abdd MFC: let dhcp override gateway. 2000-02-20 21:57:38 +00:00
Jordan K. Hubbard cb3b868759 MFC: fvwm fix 2000-02-20 10:02:16 +00:00
Jordan K. Hubbard 34542e2cad MFC: ps/2 mice more prevalent. 2000-02-19 13:11:28 +00:00
Jordan K. Hubbard b6bd4809a9 MFC: get rid of useless moused setting 2000-02-19 13:06:22 +00:00
Jordan K. Hubbard a83b965871 MFC: fix reversed conditional 2000-02-19 12:41:23 +00:00
Jordan K. Hubbard 5a4f372d83 MFC: better isdir() handling, string-stomping fix. 2000-02-19 08:51:33 +00:00
Alfred Perlstein db9ac4c0e5 MFC: 1.8 (re-add the month may) 2000-02-18 23:45:04 +00:00
Jordan K. Hubbard ae882926bc MFC: reversal 2000-02-18 18:32:04 +00:00
Jordan K. Hubbard b462c35d05 MFC: s/Novice/Standard/ 2000-02-18 07:11:10 +00:00
Jordan K. Hubbard 9916d1cad0 "Novice" is too off-putting, change it to "Standard" installation. 2000-02-18 07:08:38 +00:00
Jordan K. Hubbard 34913a2f9e MFC: missing newline 2000-02-18 03:02:04 +00:00
Satoshi Asami 7b21bdca09 Merge 1.8. 2000-02-18 01:20:38 +00:00
John Baldwin 3a2c1f8f80 MFC the int15_87 and Ctrl-Alt-Del fixes.
Approved by:	msmith
2000-02-17 20:11:38 +00:00
Jordan K. Hubbard 547748f888 MFC: cosmetic fixes and /compat/linux workaround. 2000-02-17 06:14:12 +00:00
Jordan K. Hubbard 3172476f60 MFC: remove scarey defaults 2000-02-17 04:50:00 +00:00
Peter Wemm 779e5fd0e3 MFC: all fixes and cleanups - this is the last straw, it has broken one
time too many.  The 3.4 version has been doing bizzare things while the
4.0 version compiled on 3.4 has worked fine.
2000-02-17 04:26:41 +00:00
Bill Swingle 5c3fd7a7be MFC: correcting more csh(1) wrongness
PR:		16762
Submitted by:	Giorgos Keramidas <[email protected]>
2000-02-17 03:41:52 +00:00
Bill Swingle 1cedc73d07 MFC: correcting csh(1) incorrectness
PR:		16754
Submitted by:	Giorgos Keramidas <[email protected]>
2000-02-17 03:30:02 +00:00
Bill Swingle 36b9fb13e0 MFC: minor changes to chmod(1)
PR:		16749
Submitted by:	Giorgos Keramidas <[email protected]>
2000-02-17 03:18:24 +00:00
Bill Swingle 7b5e95d38f MFC: updates the vidcontrol man page to include mention of the new -M
flag

PR:		16221
Submitted by:	Kelly Yancey <[email protected]>
2000-02-17 03:03:45 +00:00
Gregory Sutter aeff04a0c3 MFC: rev 1.8 and 1.9.
PR:		16594
Submitted by:	Grigoriy Strokin <[email protected]>
Reviewed by:	jim
2000-02-17 02:35:44 +00:00
Jordan K. Hubbard 1a8fc6f37d Sigh, Chris also MFC'd his breakage without even testing it. 2000-02-16 17:29:20 +00:00
Bill Fenner c4ff53f00c MFC rev 1.27: avoid core dump on huge # of PTR records.
PR:		bin/10344
Reviewed by:	billf
2000-02-16 05:20:11 +00:00
Archie Cobbs 97af99a77d MFC: redefine PKT_ALIAS_PUNCH_FW to not clash with PKT_ALIAS_PROXY_ONLY 2000-02-15 23:16:14 +00:00
Archie Cobbs 41d10ed403 MFC: minor man page typos & clarifications 2000-02-15 23:15:25 +00:00
Jordan K. Hubbard 106df325e4 MFC: add to chflags targets. 2000-02-15 18:08:20 +00:00
Chris Costello 9376e10fc8 MFC: - Properly indent $FreeBSD$
- Repair read-only building

Submitted by:	bde
2000-02-15 04:32:32 +00:00
Greg Lehey 47417e0d0d MFC: Set P_SYSTEM in the daemon proc structure to alleviate delays on
shutdown.

Submitted-by:   Alfred Perlstein <[email protected]>
Reported-by:	Michael Hohmuth <[email protected]>
PR:		kern/16713
2000-02-15 04:08:33 +00:00
Bill Swingle d6d3f57533 "back porting" sed(1) wording changes. (no modification needed actually)
PR:		10850
Submitted by:	Scott Hazen Mueller <[email protected]>
2000-02-15 03:17:11 +00:00
Yoshihiro Takahashi 327a3fe898 Commented out apm. 2000-02-14 12:38:39 +00:00
Jordan K. Hubbard 4b9ac423e1 MFC: fix overflows 2000-02-13 21:12:41 +00:00
Luigi Rizzo 168e6cf250 MFC: add bridge floppy type for picobsd 2000-02-13 12:24:06 +00:00
Luigi Rizzo 3864675bb6 MFC: bring stateful ipfw extensions to -stable.
Approved-by: jordan
2000-02-13 12:19:54 +00:00
Luigi Rizzo 5ee6169822 MFC: bring stateful extensions for IPFW and related fixes to -stable.
In order to use the new features and get sensible output from
"ipfw show" you need to recompile ipfw.

Note that you will still be able to configure the firewall using the
old ipfw.

Approved-by: jordan
2000-02-13 12:18:36 +00:00
Bill Fumerola f4cd64b747 Really add wargames.6
Pointy hat:	chris
2000-02-12 23:52:25 +00:00
Luigi Rizzo 62a1bba530 MFC: sync Picobsd build structure with the one in -current.
This involves a cleanup of the build scripts, removing
common files from the individual trees and put them in a
common place, and remove unused stuff.
2000-02-12 19:04:49 +00:00
Chris Costello 47291b8e51 MFC: Use beforeinstall instead of rewriting the install target. 2000-02-12 05:18:55 +00:00
Jordan K. Hubbard 8abc33d629 MFC: router check. 2000-02-12 03:03:11 +00:00
cvs2svn f64656796e This commit was manufactured by cvs2svn to create branch 'RELENG_3'. 2000-02-12 00:22:55 +00:00
Jordan K. Hubbard 2c30dcc7a3 MFC: more descriptive parting message. 2000-02-11 06:54:46 +00:00
Jordan K. Hubbard 2de8b25553 Whoops, that was a bit _too_ much merging. Fixed.
Noticed by:	Jack O'Neill <[email protected]>
2000-02-10 22:13:07 +00:00
Jordan K. Hubbard cc7991f3b9 Gack, got my commit messages backwards. This is the MFC of
changes to bring in the new ports categories.
2000-02-10 01:48:11 +00:00
Chris Costello 329a468170 MFC: Properly describe KERN_QUANTUM. 2000-02-10 01:11:03 +00:00
David E. O'Brien 4c0156f329 Move the pointer initialization lower down in the generated output. 2000-02-09 09:51:26 +00:00
Jordan K. Hubbard 38e54c3280 MFC: bring these files into the new millennium (haha, no, please). 2000-02-09 07:00:30 +00:00
Jordan K. Hubbard c6fc099890 MFC: add menu item for /usr/src/tools 2000-02-09 05:30:57 +00:00
Jordan K. Hubbard 64423d4df4 MFC: support for /usr/src/tools 2000-02-09 05:28:05 +00:00
David E. O'Brien 1a0b9f036c Initialize pointers to quiet compiler warnings on the generated lexer. 2000-02-08 04:24:11 +00:00
Jordan K. Hubbard d802620fc7 MFC: always set dist_attr to NULL.
Submitted by:	"John W. DeBoskey" <[email protected]>
2000-02-08 04:06:36 +00:00
Peter Wemm dbf7533565 MFC rev 1.30; increase size of rt_refcnt from short to long. 2000-02-08 02:17:43 +00:00
Jordan K. Hubbard 4ee774fa97 Take my name out of here - I'm tired of getting asked about it! 2000-02-07 17:24:27 +00:00
David E. O'Brien a46d8e95ed Add the sa_family_t' and socklen_t' types to match 4-CURRENT. 2000-02-05 20:15:32 +00:00
Ruslan Ermilov fbe94735b1 MFC: Unbroke the reference to libalias(3). 2000-02-05 15:26:13 +00:00
Yoshihiro Takahashi 5e4566764c Sync with sys/boot/i386/loader/Makefile revision 1.28.2.5. 2000-02-05 11:56:22 +00:00
Luigi Rizzo 5bf3bdfc6c MFC: use NOFORTH to build a smaller loader without Forth support 2000-02-05 10:41:47 +00:00
Luigi Rizzo 8af6d7e44a MFC: crunchgen features useful for PicoBSD builds 2000-02-05 10:33:54 +00:00
Kenneth D. Merry 797f8853fc MFC, rev 1.20:
Fix a couple of typos in the 'camcontrol negotiate' output.

Submitted by:	T-Om <[email protected]>
Approved by:	jkh
2000-02-04 07:32:58 +00:00
Matt Jacob 3c61354ae7 MFC: Add a quirk type (and one for ARCHIVE Python's) that disables
the dummy read at sa_mount that attempts to latch up density.
     This breaks on at least one drive and sends it into the weeds.
2000-02-03 19:05:27 +00:00
Kazutaka YOKOTA acf969c3c3 Oops. Delete a duplicate case value which I messed up in the previous
commit.  Sorry, folks.
2000-02-02 23:27:08 +00:00
Bruce Evans fe9db3df25 Not a MFC: Fixed some bugs in the "filetype" support. The wrong
template was used for directories, so directories were usually
assigned the EXT2_FT_UNKNOWN filetype.  Other uses of
`struct odirtemplate' were also wrong.
2000-02-02 15:31:56 +00:00
Bruce Evans d7e518639d Forced commit to say that the previous commit was not quite a MFC.
_KERNEL had to be regressed to KERNEL.
2000-02-02 14:59:50 +00:00
Bruce Evans 0758efe648 MFC: update to Linux ext2_fs.h; handle new features as well as possible;
support the "filetype" feature instead of panicing for filesystems
created with it.

COPYRIGHT.INFO:   rev 1.3 (all)
i386-bitops.h:    rev.1.5 (all) (don't use unportable asm)
ext2_fs.h:        rev.1.5-1.8 (all)
ext2_inode_cnv.c: rev.1.10-1.11 (all)
ext2_vfsops.c:    rev.1.61 (don't mount filesystems with incompatible features)
ext2_lookup.c:    rev.1.20 (most of the code for "filetype" feature).
2000-02-02 14:53:05 +00:00
Yoshihiro Takahashi d4786f0759 Sync with sys/dev/syscons/scvidctl.c revision 1.7.2.6. 2000-02-02 13:58:59 +00:00
Yoshihiro Takahashi e5de6fb7cc MFC: Remove cdevsw entry points. 2000-02-02 13:52:49 +00:00
Kazutaka YOKOTA 0d52c0f0fe MFC: Removed SC_VIDEO_DEBUG. It is broken and useless. 2000-02-02 13:33:57 +00:00
Yoshihiro Takahashi 5fd23e0f78 Sync with the following changes.
sys/dev/syscons/scvidctl.c rev 1.7.2.5
	sys/dev/syscons/syscons.c rev 1.293.2.12, 1.293.2.13 and 1.293.2.14
	sys/dev/syscons/syscons.h rev 1.46.2.3
2000-02-02 13:05:50 +00:00
Yoshihiro Takahashi 8ff52963ab Sync with sys/i386/isa/npx.c revision 1.65.2.2. 2000-02-02 13:03:38 +00:00
Kazutaka YOKOTA e30e2d3002 YAMFC: Remove cdevsw entry points in individual keyboard drivers;
instead, use generic entry points for all drivers. Eliminate softc
in the lower drivers, as it is no longer necessary.
(ukbd.c 1.17, atkbd_isa.c 1.5, atkbd.c 1.14, atkbdreg.h 1.3, kbd.c 1.10,
kbdreg.h 1.4)
2000-02-02 13:03:23 +00:00
Yoshihiro Takahashi c76f0ad503 Use "options<space><tab>" style. 2000-02-02 13:02:20 +00:00
Yoshihiro Takahashi 351460af0d MFC: Supported non-512 bytes/sector format. 2000-02-02 13:00:32 +00:00
Kazutaka YOKOTA 03e038961f YAMFC: bring in the key repeat rate related code update.
- Remember the keyboard repeat delay and rate. Add a new ioctl,
  KDGETREPEAT. (syscons.c 1.330, atkbd.c 1.18, kbd.c 1.14, kbio.h 1.4)
- Obtain the initial key repeat rate setting via BIOS in i386 if
  possible. (atkbd.c 1.20)
2000-02-02 12:28:41 +00:00
Luigi Rizzo 68fbafd3ee Functional change: in ready_event(), move the call to tranmit_event()
near the end of the function or this might cause the precondition
for the next part of the function to be violated.
This fixes the "warning, event is 1 tick late" message that
some might get in certain configurations of dummynet (this was
mostly harmless).

Also some reformatting of the code, as the indentation of lot of this
file got completely screwed up in the previous massive commit.

Reported-by: Mike Tancsa
2000-02-02 11:06:31 +00:00
Bruce Evans 39ba95cdcc MFC: fixes for profiling of elf kernels. See the commit logs on
1999/05/10 for identcpu.c and on 1999/05/6 for everything else.
Unlike in -current, no additional fixes are needed for high
resolution profiling.
2000-02-02 03:50:27 +00:00
Archie Cobbs 95c571565a MFC: add /usr/share/examples/netgraph 2000-02-01 16:54:51 +00:00
Kazutaka YOKOTA f2f0434d26 YAMFC: Fix wrong usage of FONT_NONE (syscons.c 1.333, syscons.h 1.59,
scvidctl.c 1.18, and scmouse.c 1.10, 1.11).
2000-02-01 13:22:13 +00:00
Kazutaka YOKOTA d7ff7cbec8 Fix the NEXT key processing; don't go beyond the boudary of the array!
(This bug doesn't exist in -CURRENT.)
2000-02-01 12:00:04 +00:00
Dag-Erling Smørgrav 880e6abcd4 Drop maintainership of inetd, since nobody respects it anyway. 2000-02-01 09:21:22 +00:00
Archie Cobbs 914e80c50a MFC: netgraph examples 2000-02-01 01:57:57 +00:00
Archie Cobbs 488c39e299 MFC: no need to try loading ng_socket.ko 2000-02-01 01:40:58 +00:00
Archie Cobbs 2d29c2dcb6 MFC: load the socket node type KLD if it's not already loaded 2000-02-01 01:32:33 +00:00
Archie Cobbs 02779ee6ed MFC: (rev 1.329): include ddb/db_sysctl.c for 'options DDB'. 2000-01-31 21:33:39 +00:00
Archie Cobbs 1d428169a3 MFC: (rev. 1.1): new sysctl "debug.enter_debugger" 2000-01-31 21:32:23 +00:00
Archie Cobbs 6d026599f9 MFC: add a space after all the 'options' keywords so when you
comment out the line the argument stays aligned.  This is
     a white-space only change.
2000-01-31 21:30:31 +00:00
Daniel C. Sobral 10ba321fb6 MFC: various eye-candy bugs. Rev 1.11, 1.12 and 1.13. 2000-01-31 19:40:33 +00:00
Chris Costello 805d741283 Repair consistency among references to the resolved path name
filled in by realpath(3).  Specifically, the manual page referred
to three different variations of the same variable, which has no doubt
confused some people.  The variable reference was changed to ``resolved_path''
as it is in /usr/include/stdlib.h

In summary:
     resolvedname	-> resolved_path
     resolved_name	-> resolved_path

Additionally, $FreeBSD$ tags were added to this file for the commit to be
permitted.
2000-01-29 19:22:03 +00:00
Jeroen Ruigrok van der Werven b07b699e93 MFC: rev 1.13, fix typo's. 2000-01-28 20:25:18 +00:00
John Polstra 3c1cbb1da2 MFC 1.3 -> 1.4: Make the default locking work with JDK and pthreads. 2000-01-28 19:28:21 +00:00
Jordan K. Hubbard 87c461b8b5 MFC: dhcp fixes 2000-01-28 02:14:29 +00:00
cvs2svn 5f870591f0 This commit was manufactured by cvs2svn to create branch 'RELENG_3'. 2000-01-28 00:44:31 +00:00
Ruslan Ermilov d55c9bafac MFC: (rev 1.24) Track interface MTU with -dynamic option.
PR:		15494
2000-01-27 17:02:52 +00:00
Ruslan Ermilov 3e07b69c64 MFC: (rev 1.25) Minor grammar fix. 2000-01-27 17:01:43 +00:00
Ruslan Ermilov 37b41c8c60 MFC: (rev 1.83) Notify user processes about interface's MTU change. 2000-01-27 16:54:57 +00:00
Ruslan Ermilov dff5946e45 MFC: (rev 1.5) Fixes for 2nd part of bin/5604. 2000-01-27 16:32:59 +00:00
Kazutaka YOKOTA 38e918efed YAMFC: Make the mouse cursor char code configurable via the CONS_MOUSECTL
ioctl.

PR: kern/15996
Submitted by: Kelly Yancey <[email protected]>
2000-01-27 13:16:30 +00:00
Archie Cobbs 015f28e9c9 MFC: add control message ASCII conversion for this node type. 2000-01-27 01:34:06 +00:00
Josef Karthauser 0976226495 [MFC] Fix header page supression for remote print queues (see revision 1.32). 2000-01-26 23:35:12 +00:00
Archie Cobbs 8e0a13e928 MFC: (rev. 1.4): Document inherent memory leak 2000-01-26 22:13:18 +00:00
Archie Cobbs 3216aee801 MFC: Add a reference to ng_ether(8). 2000-01-25 20:36:10 +00:00
Archie Cobbs 17217cf91d Add a reference to ng_bpf(8). 2000-01-25 20:33:25 +00:00
Archie Cobbs 21508891aa MFC: new man page ng_ether(8) 2000-01-25 20:29:08 +00:00
cvs2svn 76107bb919 This commit was manufactured by cvs2svn to create branch 'RELENG_3'. 2000-01-25 20:26:53 +00:00
Jordan K. Hubbard 5f81dc15ed MFC: stupid bug fix 2000-01-25 19:15:19 +00:00
Kenneth D. Merry f778d3d6d0 MFC, rev 1.24: When autosense fails, make sure we retry the command.
PR:		kern/15975
Submitted by:	Carl Mascott <[email protected]>, n_hibma
2000-01-25 17:47:10 +00:00
Ruslan Ermilov 0f8cfacf5b MFC: (rev 1.41) only report a true default of 0.0.0.0/0 as "default". 2000-01-25 15:29:14 +00:00
Jordan K. Hubbard f6ad73e2f9 MFC: http fixes, anon ftp 2000-01-25 05:58:05 +00:00
Roger Hardiman 7ad388e751 MFC: Update to driver release 2.07 2000-01-25 02:48:12 +00:00
Matthew Dillon 0cbe72ab43 MFC lpd.c 1.12, fix type-o. The wrong buffer's last element was being
zero.  A review of the code indicates that this bug had no effect on
    the program (no security issues), but should be fixed anyway.
2000-01-25 02:05:56 +00:00
John Polstra 3f480820b9 MFC 1.41 -> 1.42: Treat white space as a separator in LD_PRELOAD. 2000-01-25 01:43:29 +00:00
Matthew Dillon fa41ce7a8a MFC cmds.c 1.14 - fix 'start' command. 2000-01-24 23:35:10 +00:00
Matthew Dillon cd25efcb6b MFC vm_map.c 1.185, fix deadlock between msync() and vm_fault().
Reviewed by:	 Paul Saab <[email protected]>
2000-01-24 21:11:40 +00:00
David E. O'Brien 232560b328 MFC: rev 1.9 (Only log real changes to configuration state)
Motivated by:	beer
2000-01-24 00:04:04 +00:00
Michael Haro 8e6a7ff90a MFC: 1.23 (df -hH flags) minus 1.22 (-a flag) 2000-01-23 03:19:34 +00:00
Warner Losh 68778bc824 MFC: 1.81.
Bad style fixes corrected.
2000-01-21 07:01:21 +00:00
Brian Feldman 904f26988a MFC: Fix style bugs in the last commit. 2000-01-21 02:54:13 +00:00
John Polstra 0c897e19f5 Sync with -current: add locking support to the dynamic linker. 2000-01-21 02:31:53 +00:00
Archie Cobbs 6ce074034f MFC: document netgraph(4) support 2000-01-21 02:09:15 +00:00
Archie Cobbs 126243fab5 MFC: remove unimplemented "control" netgraph hook 2000-01-21 02:02:04 +00:00
Warner Losh 01bb9b7154 Backport procfs special case code. 2000-01-20 22:01:56 +00:00
Kazutaka YOKOTA 7e7054be8b YAMFC: merge GlidePoint support from sys/isa/psm.c rev.1.16
in -CURRENT.
2000-01-20 13:27:03 +00:00
Robert Watson 892b8bbdea MFC of Diamond HomeFree support continued. This file was missed in a previous
commit, so PCI forms of the card were not probed.  Should now be fixed.
2000-01-20 06:17:00 +00:00
Archie Cobbs e1f5235e63 MFC: (rev. 1.33) Fix an #ifdef that should have been and #ifndef. 2000-01-20 01:51:06 +00:00
Yoshihiro Takahashi 854b81b780 Merge from sys/i386/isa/clock.c revision 1.129.2.6. 2000-01-19 13:06:59 +00:00
Yoshihiro Takahashi 2dbcdb4c5b Merge from sys/i386/isa/if_ed.c revision 1.148.2.5. 2000-01-19 13:05:15 +00:00
Ruslan Ermilov 04efa6a58b MFC: fix a typo: ${.MAKE} -> ${MAKE} 2000-01-19 11:05:18 +00:00
Ruslan Ermilov 720d474924 MFC: Do not set the default terminal type to "su", leave it empty.
PR:		bin/5084
2000-01-19 11:00:32 +00:00
Bill Paul b1fca83771 MFC: close PR 16028 (fix zero length record test) 2000-01-19 06:14:41 +00:00
Chris Costello 40f769fcc5 MFC: Document KERN_QUANTUM.
PR:		15637
2000-01-19 05:39:48 +00:00
Chris Costello e72be83707 MFC: Document isnanf() for determining whether a float is NaN (``Not-a-
Number'')

PR:		13878
2000-01-19 05:05:19 +00:00
Chris Costello 606674c000 MFC: Document truncation in format string at NUL characters.
PR:		15929
2000-01-19 04:20:16 +00:00
Robert Watson 1e02455ee5 MFC: support for Am79C978 (AMD PCHome/PCI ethernet adapter)
http://www.amd.com/products/npd/overview/homenetworking/intro.html

Approved by: paul
PR:             kern/12275
2000-01-19 01:31:12 +00:00
Nick Hibma b1ca5dd522 MFC: rev.1.36: vmstat -i reports negative counts
Reminded By:	dan
2000-01-18 17:39:38 +00:00
Luigi Rizzo c295c22676 MFC: ipfw changes to support new dummynet and ipfw features.
Also, significantly restructured manpage with more examples.
2000-01-18 16:37:28 +00:00
Bruce Evans bb8b6440de MFC (1.139: don't panic for `sysctl -w machdep.tsc_freq=N' when the
TSC is present but not used, etc.).

This bug affects releases 3.2, 3.3 and 3.4.

PR:		16113
2000-01-18 16:28:11 +00:00
Luigi Rizzo 6392d0d7f4 Various MFC:
* update dummynet to the new code in 4.0, and cleanup call interface
  (affects ip_dummynet.c ip_dummynet.h ip_input.c ip_output.c)
* various cleanup of ipfw code, including dummynet hooks, support for
  masks on UDP/TCP ports, and removal of ip_nat hooks as in 4.0
  (affects ip_fw.c ip_fw.h raw_ip.c)
The new dummynet code is thanks Akamba Corp.
2000-01-18 16:03:57 +00:00
David E. O'Brien ba649e8ef8 MFC: SVR4 and OSF/1 enabling in configuator, and X11 install using the
Port.
2000-01-18 15:52:35 +00:00
Luigi Rizzo facc25fec9 fix a potential null pointer dereference when bridging 2000-01-18 14:19:39 +00:00
Luigi Rizzo 74fb59cba9 Add bridging support to the 'rl' driver 2000-01-18 14:14:46 +00:00
Luigi Rizzo 2d460fd777 fix bridging support for potential null dereference 2000-01-18 14:12:52 +00:00
Luigi Rizzo c2d525e306 Temporary fix for bridging when used without ipfw.
bdg_forward() might consume the mbuf and drivers would dereference
a null pointer.
Fixes to individual drivers will be committed shortly. Note that
the 'de' driver will _not_ be fixed soon and is unusable with
bridging.
2000-01-18 14:07:13 +00:00
cvs2svn afe0c56862 This commit was manufactured by cvs2svn to create branch 'RELENG_3'. 2000-01-17 11:53:55 +00:00
David E. O'Brien 0d63fe1512 These left overs from v1.25 aren't used in in 1.28. 2000-01-17 11:37:49 +00:00
Kris Kennaway 5f7e7d9bd0 MFC: Create tempfiles securely 2000-01-17 06:45:01 +00:00
John Polstra cc3b45d012 MFC 1.1 -> 1.2: Fix error message that referred to RADIUS instead of
TACACS+.

Submitted by:	Alexey Zelkin <[email protected]>
2000-01-17 04:27:39 +00:00
Seigo Tanimura 544128b309 MFC: Add P-III(Coppermine). 2000-01-15 06:29:41 +00:00
Alfred Perlstein fb71c1c9a8 include proc.h to get curproc used in last revision. 2000-01-14 20:49:01 +00:00
Alfred Perlstein 339bf06464 MFC 1.25 (fix out of space panic with softdep)
Approved by: mckusick
2000-01-14 16:36:54 +00:00
Dag-Erling Smørgrav 1ac95846a0 I really don't think receipt a stray UDP packet justifies logging a message
at the LOG_EMERG (aka. "system is unusable") priority level.
2000-01-14 15:29:00 +00:00
Sheldon Hearn a814cf8ee8 (null commit)
The previous commit included:

MFC rev 1.16: Add a missing .El macro.
2000-01-14 11:20:04 +00:00
Sheldon Hearn 6e0fa6c550 MFC: Incorporate the builtin.1 manpage and its MLINKS.
Remove the cd(1) and wait(1) manual pages (for which MLINKS are
	created instead.
     Fix some mark-up issues in csh(1) and add a builtin(1) xref to
	csh.1

These changes should have been committed along-side those committed
with the log message above, but were forgotten.
2000-01-14 11:15:33 +00:00
Marcel Moolenaar a6816107b8 Implement linux_rt_sigsuspend. 2000-01-13 17:35:43 +00:00
Marcel Moolenaar 88b672eb13 Implement linux_rt_sigsuspend 2000-01-13 17:26:19 +00:00
Jeroen Ruigrok van der Werven b9e8b732d7 MFC: Fix dhclient-exit-hooks location. (PR 14253)
Add $FreeBSD$ CVS identifier.

PR:		14253
Submitted by:	Arcady Genkin
2000-01-13 17:20:53 +00:00
Jeroen Ruigrok van der Werven b79c4bd10d MFC: Compound MFC:
rev 1.7: Change ``from'' to ``to'', addresses PR 15729
	rev 1.8: Correct placement of $FreeBSD$ CVS identifier.
2000-01-13 14:32:22 +00:00
Jeroen Ruigrok van der Werven 141c29c28c MFC: Add the LSI-Logic 53C875e and the DawiControl DC2976UW.
PR:		15744
Submitted by:	Sascha Blank <[email protected]>
2000-01-13 13:59:03 +00:00
Ruslan Ermilov 147891cb4c MFC: rev 1.52 - Make hostname comparisons case insensitive.
rev 1.54 - Fix page fault in -vv mode (PR 16098).
2000-01-13 13:13:22 +00:00
Jeroen Ruigrok van der Werven 3b663707fa MFC: Compound MFC of
rev 1.60: addresses PR 15980
	rev 1.61: crossreference of dhclient(8) in SEE ALSO
	rev 1.62: Fix old style /fB /fR emphasis to the correct mdoc
		  usage
	rev 1.63: Add dhclient(8) crossreference to the dhcp_flags
		  section.
2000-01-13 13:11:11 +00:00
Sheldon Hearn 200ff3e970 MFC rev 1.76: Match "promiscous mode enabled" warnings with "disabled"
warnings.
2000-01-12 15:50:57 +00:00
Jeroen Ruigrok van der Werven 1a7d5385e1 MFC: We do not support the -B option.
PR:		15925
Submitted by:	Thierry Herbelot
2000-01-12 14:52:27 +00:00
Jordan K. Hubbard d320c87a91 MFC: upgrade to XFree86 3.3.6 2000-01-12 10:25:39 +00:00
Ruslan Ermilov dc966eecbd MFC: Fix page fault when diverting packets with IP options. 2000-01-11 16:18:05 +00:00
Sheldon Hearn 0b7c8d574e MFC rev 1.22: Fix bogon in previous commit. 2000-01-11 13:42:08 +00:00
Sheldon Hearn efd26ccf70 MFC rev 1.21: Replace a silly error message with a sensible one. 2000-01-11 12:38:36 +00:00
Ruslan Ermilov 45974c9303 MFC: Do not dereference a null pointer.
PR:		15318
2000-01-11 12:31:04 +00:00
Ruslan Ermilov 065c040f9c MFC: Put missing CVSHeader reference in a switch. 2000-01-11 12:23:31 +00:00
Ruslan Ermilov 7d8fcd248a MFC: Minor display fix. 2000-01-11 12:01:36 +00:00
Jeroen Ruigrok van der Werven e2232742b1 MFC: Change /usr/src mention to /usr/doc.
PR:		15974
Submitted by:	Vivek Khera <[email protected]>
2000-01-11 10:51:23 +00:00
Rodney W. Grimes 3e76a5f7a8 Sort these to match mtree output. 2000-01-11 08:42:40 +00:00
Rodney W. Grimes 83ff50187c Cleanup white space (remove all tabs) to minimize spaming of -current
when chunks of these files are copied.
2000-01-11 08:31:34 +00:00
Rodney W. Grimes e981b825a1 Cleanup white space (remove all tabs) to minimize spaming of -current
when chunks of these files are copied.
2000-01-11 08:24:02 +00:00
Daniel Baker fc09c55809 MFC rev 1.42:
Include a note below the example qmail entry that mentions that inetd is
  no longer the correct way to have qmail handle incoming qmail smtp
  connections.  Also provide a url to the correct method.
2000-01-10 20:16:51 +00:00
Peter Wemm 4e85d9576b MFC rev 1.6 - add $TTL due to bind complaints. 2000-01-10 15:32:44 +00:00
Alexey Zelkin cb5e2dfb61 MFC: rev 1.17, add `.Nm rrestore' to NAME section 2000-01-10 12:32:02 +00:00
Alexey Zelkin ac2ec0c5ce MFC: rev 1.9, add .Nm fastboot' and .Nm fasthalt' to NAME section. 2000-01-10 12:25:34 +00:00
Alexey Zelkin 139f25b71b MFC: rev 1.16, add `.Nm red' to NAME section. 2000-01-10 12:22:18 +00:00
Alexey Zelkin 32fbe64dba MFC: rev 1.24, add `.Nm rdump' to NAME section. 2000-01-10 12:19:17 +00:00
Alexey Zelkin 651849d8f1 MFC: fix typo: MAINAINER -> MAINTAINER 2000-01-10 11:41:21 +00:00
Thomas Gellekum 0969b037eb MFC: -Wall and style(9) cleanup.
Reviewed by:	deischen
2000-01-10 10:14:41 +00:00
Thomas Gellekum 42725c6413 MFC: Better stack allocation.
Reviewed by:	deischen
2000-01-10 10:11:54 +00:00
Thomas Gellekum 6262c4ad76 MFC: GDB support.
Reviewed by:	deischen
2000-01-10 10:07:03 +00:00
Thomas Gellekum f215018ac6 MFC: Use growable stacks.
Reviewed by:	deischen
2000-01-10 10:03:06 +00:00
Yoshihiro Takahashi cfe5a05cf0 Merge from sys/i386/conf/GENERIC revision 1.143.2.25. 2000-01-10 02:45:41 +00:00
David E. O'Brien da52639581 MFC: rev 1.239 (Fdisk menu reordering) 2000-01-09 17:00:01 +00:00
Peter Wemm da0ebf73b9 MFC rev 1.2 - consistantly handle -d directory overrides the way the rest
of cvs handles it.  This fixes the "files/md5 got committed but Makefile
did not" bug when checking out locally and committing remotely.
2000-01-09 14:33:39 +00:00
Alexey Zelkin 3ffe5780cc Remove binary files from source tree 2000-01-09 12:57:41 +00:00
David E. O'Brien cd4e9023f0 Add the `sym' SCSI driver. Commented out in GENERIC as I have no way of
testing if `ncr' and `sym' can co-exist in a 3.x machine.  Uncommented of
course in LINT.
2000-01-08 18:39:49 +00:00
Kenneth D. Merry db2caf3723 MFC, Fix Bus Device Resets from userland, and specifically from camcontrol.
camcontrol.c:	rev 1.16, 1.17, 1.18
cam_xpt.c:	rev 1.73

The camcontrol and xpt changes switch XPT_RESET_DEV CCBs to be routed
through the pass(4) driver instead of the xpt(4) driver.

Note that this changes the function code for XPT_RESET_DEV.  Normally, this
would require a CAM version bump, and thus would break all userland
programs that use the pass/xpt drivers.  In this case, however, I'm not
bumping the version number.  A version number change is not necessary
because XPT_RESET_DEV CCBs didn't work before.

In any case, if someone tries to use an old version of camcontrol with the
new kernel to reset a particular device, they'll actually see improved
functionality, since they'll just get back an error instead of a hung
machine.

Submitted by:	luoqi (for -current)
Tested by:	Carl Mascott <[email protected]>
2000-01-08 04:15:53 +00:00
Alexey Zelkin f7fd4bf5e7 MFC: rev 1.27, fix typos 2000-01-07 13:21:26 +00:00
Alexey Zelkin b3eafb034a MFC: modc(7)'fy, add required Xrs to some pages and sort SEE ALSO Xrs 2000-01-07 13:17:02 +00:00
Alexey Zelkin 2b6ee14154 MFC: rev 1.10, Document a waring that tunefs(8) emits when enabling/disabling
soft updates on an unmounted filesystem.

PR:             docs/15657
Submitted by:   Mark Ovens <[email protected]>
2000-01-07 13:06:01 +00:00
Alexey Zelkin 6e8dfbdf40 MFC: rev 1.8, mdoc(7)'fy 2000-01-07 12:59:33 +00:00
Alexey Zelkin a54d9ea19e MFC: rev 1.18, Teach .Os about 3.4-R, 3.5-R and major version numbers 2000-01-07 12:56:49 +00:00
Alexey Zelkin 2133b353b8 MFC: rev 1.23, Teach .Fx about 3.4-R and 3.5-R 2000-01-07 12:55:34 +00:00
Alexey Zelkin 14c83291f5 Add manpages for microtime(9) and microuptime(9) families and tvtohz(9)
to RELNENG_3 branch.

PR:		docs/15889
2000-01-07 12:46:07 +00:00
cvs2svn 921d558ebb This commit was manufactured by cvs2svn to create branch 'RELENG_3'. 2000-01-07 12:43:00 +00:00
Alexey Zelkin aa51f307f0 MFC: rev. 1.6, place #include's and $NetBSD$ tag to appropriate places
PR:		docs/15959
Submitted by:	Jonathan Hanna <[email protected]>
2000-01-07 12:20:12 +00:00
Warner Losh 7c4c617187 Gut this file. It contains obsolete information and has been
unmaintained for some time now.  Add note pointing people to jkh if
they want to maintain it in -stable.  I plan to remove it from this
branch if no one has come forward by Feb 15, 2000.
2000-01-06 17:39:38 +00:00
Peter Wemm 55856a8eca MFC: avoid breaking filenames with spaces in to seperate arguments. 2000-01-06 14:29:08 +00:00
Mark Murray b86387af72 MFC: Don't screw users over - give them some better examples. 2000-01-06 13:57:58 +00:00
Mark Murray ed46ec1a77 MFC: lots more PAM examples so we don't screw folk over. 2000-01-06 13:49:46 +00:00
Jordan K. Hubbard 1febd401bd MFC: handle quoted packages. 2000-01-06 04:14:52 +00:00
Archie Cobbs 1aabcc1078 MFC: (rev 1.15) fix a few obscure memory leaks. 2000-01-05 20:37:28 +00:00
Jordan K. Hubbard d156d983f7 MFC: various late improvements. 2000-01-05 20:35:02 +00:00
Peter Wemm 5c127cfca4 MFC: quote filename variables in vi recovery 2000-01-05 09:18:20 +00:00
Archie Cobbs 9b5873152b MFC: (rev 1.2) race condition caused by missing splnet()'s 2000-01-04 22:12:43 +00:00
Thomas Gellekum e5843103ed MFC: Fix signal handling.
Reviewed by:	deischen

Fix some botches I introduced in the last commits.
2000-01-04 11:02:54 +00:00
Thomas Gellekum 65dd9d585c MFC: Avoid an infinite loop if the last iov_len is 0.
Reviewed by:	deischen
2000-01-04 10:45:47 +00:00
Thomas Gellekum e441bad0f8 MFC: Cancellation functions.
Reviewed by:	deischen
2000-01-04 10:42:28 +00:00
Thomas Gellekum df83ab9e9c MFC: make pthread_rwlockattr_setpshared POSIX compliant.
Reviewed by:	deischen
2000-01-04 10:28:39 +00:00
Thomas Gellekum fe7f9ec6c1 MFC: Add rand_r and readdir_r.
Reviewed by:	deischen
2000-01-04 10:20:43 +00:00
Thomas Gellekum a812a566d0 MFC: Fix description for EINVAL.
Reviewed by:	deischen
2000-01-04 10:16:22 +00:00
Thomas Gellekum 4f1fbf8406 MFC: Fix description of the _thread_autoinit_dummy_decl trick.
Reviewed by:	deischen
2000-01-04 10:14:03 +00:00
Thomas Gellekum 527df14675 MFC: Fix copyrights (s/REGENTS/AUTHOR/). Add $FreeBSD$.
Reviewed by:	deischen
2000-01-04 10:03:52 +00:00
Satoshi Asami d01f822824 MFC 1.57 (silence mtree).
Reviewed by:	jkh (this and the version in HEAD, obviously)
2000-01-03 23:00:38 +00:00
Guido van Rooij 53ceccf1e4 MFC: new -L option to look at the size of the listen queues.
While we're at it: add $FreeBSD$ to netstat.h
2000-01-03 19:05:20 +00:00
Archie Cobbs 2c9e702f24 MFC: rev. 1.8: typos and rewording 2000-01-03 18:39:23 +00:00
Jordan K. Hubbard 88349821a9 MFC: print mac addrs properly. 2000-01-03 17:49:34 +00:00
Yoshihiro Takahashi 996a586a16 MFC: Added the bd_getbigeom function. 2000-01-03 15:31:17 +00:00
Greg Lehey 4911007aae MFC: Don't forget the 'stripe' and 'mirror' keywords when we turn
debugging off.

Reminded-by: "Matthew N. Dodd" <[email protected]>
2000-01-02 23:23:05 +00:00
Steve Price 4e67f750fb Revert the previous commit. We don't have %Ef support in the data files
for this branch yet.  This was causing coredumps when LANG was set to
something other than empty or "C".

Many thanks to Przemyslaw Frasunek <[email protected]> for
helping me diagnost this problem.
2000-01-02 23:18:00 +00:00
Tim Vanderhoek dc89afbb5d CFC: .Xr pkg_version 1 2000-01-02 17:56:51 +00:00
Ruslan Ermilov 46c1d2d37d MFC: Add libcrypt.
PR:		14842
2000-01-02 11:40:28 +00:00
Ruslan Ermilov e5d94f1bd5 MFC: Fix typos 1999-12-31 12:20:57 +00:00
Ruslan Ermilov e6959636b0 MFC: Update to GNU grep 2.3 1999-12-31 09:56:08 +00:00
Tim Vanderhoek 449fe084ed MFC: grammo and typo 1999-12-30 13:03:45 +00:00
Ruslan Ermilov 576727111c MFC: Make cloning mask sockaddr (genmask) possible. 1999-12-30 09:17:22 +00:00
David E. O'Brien 15b8715b6e MFC: rev 1.289: `sym' SCSI controler driver. 1999-12-30 06:54:14 +00:00
David E. O'Brien b8e6af27bc MFC: rev 1.180: `sym' driver options. 1999-12-30 06:30:59 +00:00
David E. O'Brien e7f0c16771 MFC: add the `sym' SCSI controler driver. 1999-12-30 06:20:08 +00:00
cvs2svn a4b31aaa27 This commit was manufactured by cvs2svn to create branch 'RELENG_3'. 1999-12-30 06:19:11 +00:00
Steve Price 2a27fdd139 MFC: describes FreeBSD's GNATS categories. 1999-12-29 23:16:08 +00:00
Steve Price bc96fab59f MFC: escape the ':' character and add $FreeBSD$ tag 1999-12-29 22:24:22 +00:00
David E. O'Brien 620958e570 MFC: verbose processing 1999-12-29 19:55:09 +00:00
David E. O'Brien 709bac7a11 MFC: verbose processing. 1999-12-29 19:41:05 +00:00
David E. O'Brien cd10f53a17 MFC: unlink(1) SUSv2 compliance. 1999-12-29 19:39:46 +00:00
David E. O'Brien d56f467695 MFC: 1. verbose processing 2. link(1) SUSv2. 1999-12-29 19:37:50 +00:00
Robert Watson ca5f3f4d59 MFC rev 1.26: silence spurious libc DNS warnings on receiving DNSsec T_SIG
PR:		bin/15056, bin/7352
Reviewed by:	eivind, peter
1999-12-29 16:52:07 +00:00
Sheldon Hearn b045cfea0f MFC rev 1.2: Conditionalize on __i386__ instead of i386 .
Added $FreeBSD$ to satisfy commit_prep.pl .

PR:		misc/15730
Reported by:	Brooks Davis <[email protected]>
1999-12-29 14:07:20 +00:00
Jordan K. Hubbard 2404c31a4a MFC: check distribution list. 1999-12-29 01:50:11 +00:00
Jordan K. Hubbard 1d990fe5c0 MFC: eliminate trailing slashes in mount targets. 1999-12-28 21:00:25 +00:00
Sheldon Hearn cd63fd9e45 MFC rev 1.29: Allow "[" to be called with a path. 1999-12-28 09:36:30 +00:00
Peter Wemm 89192264b6 MFC Fix typo "," -> ";"
PR:		15696
Submitted by:	Takashi Okumura <[email protected]>
1999-12-27 16:05:11 +00:00
Yoshihiro Takahashi d8e3b1b523 MFC: rev 1.149.
- Cut down amount of memory in 64MB.
  - Don't perform destructive memory inspection for 15 - 16MB system area.
1999-12-27 12:26:39 +00:00
Jeroen Ruigrok van der Werven 58f8b2da83 MFC: Fix some typo's
PR:		15678
Submitted by:	Christian Weisgerber <[email protected]>
1999-12-27 11:06:52 +00:00
Julian Elischer 93d9ac0524 MFC reset of Zoom modem 1999-12-27 08:41:36 +00:00
Yoshihiro Takahashi 65e33fca0a MFC: Added Allied Telesis SIU-98-D support. 1999-12-27 06:31:00 +00:00
Seigo Tanimura 4c3fad6dc9 MFC: Add support of SB for PC98 into VoxWare 3.5, and more $FreeBSD$.
Submitted by:		T.Yamaoka <[email protected]>
Pressed to review by:	nyan
1999-12-27 04:44:23 +00:00
Jordan K. Hubbard 53b4aac735 Fix an unfortunate single-character typo.
Submitted by:	Adrian Pavlykevych <[email protected]>
1999-12-25 03:28:51 +00:00
Sheldon Hearn a572015bbb MFC rev 1.8: Change <floatingpoint.h> to <ieeefp.h>. 1999-12-24 09:16:00 +00:00
Sheldon Hearn 5d16427208 MFC rev 1.2: Add blacklist support.
These files were taken off the vendor branch in rev 1.2. :-(
1999-12-23 18:47:06 +00:00
John Baldwin 6c1d9a4851 Add missing function prototype for mkstemps().
Add $FreeBSD$ while I am here.

Forgotten by:	obrien
1999-12-23 17:46:52 +00:00
Daniel C. Sobral 3a75c7aa9e MFC: configApache is no more and is not coming back in this incarnation.
Also, configSamba has the same fate.
1999-12-23 10:12:01 +00:00
Jeroen Ruigrok van der Werven de1ce24fb6 MFC some typo's and manpage corrections.
Please note that the whole manpage couldn't just be MFC'd since I was
unsure about a couple of options in STABLE's vinum.
Please report functions which I forgot to MFC.

Fixes PR:	14074
Submitted by:	Munehiro Matsuda <[email protected]>

OK'd by: grog
1999-12-22 15:43:32 +00:00
Sheldon Hearn 6d5b253f5b MFC rev 1.1.1.3: Fix printf zero-padding. 1999-12-22 15:05:28 +00:00
Alexey Zelkin 5c5ed0e700 MFC: rev. 1.148, add share/examples/diskless/* 1999-12-22 07:38:27 +00:00
Jordan K. Hubbard f9b1fcf0ec MFC: brain-o fix for the Custom install option.
Apologies also to the submitter for forgetting to attribute him
in the commit to -current; rcvs doesn't present those nifty
templates for PR and Submitter lines and I forgot it. :(

Submitted by:	Jack O'Neill <[email protected]>
1999-12-22 01:49:08 +00:00
John Baldwin 6b9fb9e2bf MFC rev 1.10: mention hostname variable in /etc/rc.conf
Reviewed by:	chris (not the fictitious cmc character)
1999-12-22 01:35:49 +00:00
Archie Cobbs 21d63da889 MFC: minor typo 1999-12-22 01:26:19 +00:00
Alexey Zelkin 897f2b2b40 MFC: Bring diskless examples to RELENG_3
PR:		conf/12026
Submitted by:	Brooks Davis <[email protected]>
1999-12-21 16:58:39 +00:00
Sheldon Hearn 376103050c MFC rev 1.48: Fix redirection for allscreens_flags. 1999-12-21 10:55:56 +00:00
Sheldon Hearn 7ace07dc22 MFC: Do not break if IPFW is not compiled into the kernel. This fix
is a partial merge of rev 1.34.

PR:		13909
Submitted by:	Peter Jeremy <[email protected]>
1999-12-21 09:46:02 +00:00
Sheldon Hearn 23ac204b0c MFC rev 1.35: don't report blank / comment lines as passwordless accts. 1999-12-21 09:28:29 +00:00
Julian Elischer a60405c1c4 MFC: Man page style changes.
Reviewed by:	[email protected]
Submitted by:	Alexey Zelkin <[email protected]>
1999-12-21 01:31:18 +00:00
Archie Cobbs 6b76e0be9f MFC: Fix a '&&' that should have been a '&' (rev. 1.21) 1999-12-21 00:04:09 +00:00
Justin T. Gibbs cc12ebd9f3 MFC: Rev 1.39 - Fix argument reversal bug. 1999-12-20 21:38:48 +00:00
Alexey Zelkin 8e73cff99d MFC: Guatemala phones, Simferopol phone
PR:		misc/13275 (Guatemala fixes)
1999-12-20 16:45:53 +00:00
Sheldon Hearn b5d7f294ec MFC: Indicate that set is a builtin command for sh(1) as well. 1999-12-20 16:31:42 +00:00
Alexey Zelkin 9528a07056 MFC: s/tcpdump/traceroute
PR:             docs/14523
1999-12-20 16:10:53 +00:00
Jeroen Ruigrok van der Werven 5d5b20f7b5 MFC: rev 1.10 of src/gnu/usr.bin/man/man/man.man
This includes adding a $FreeBSD$

PR:		docs/15557
Reported by:	John Meshkoff <[email protected]>
1999-12-20 14:49:07 +00:00
Jeroen Ruigrok van der Werven 4d45bb1716 MFC: rev 1.2 of mk_cmds.1
PR:		docs/15579
Submitted by:	Noriaki Mitsunaga <[email protected]>
1999-12-20 09:41:41 +00:00
2983 changed files with 202819 additions and 134319 deletions

No files matched your search

+3 -1
View File
@@ -183,6 +183,8 @@ TMPPATH= ${STRICTTMPPATH}:${PATH}
COMPILER_ENV= BISON_SIMPLE=${TOOLROOT}/usr/share/misc/bison.simple \
COMPILER_PATH=${TOOLROOT}/usr/libexec:${TOOLROOT}/usr/bin \
GCC_EXEC_PREFIX=${WORLDTMP}${SHLIBDIR}:${WORLDTMP}/usr/lib/ \
GROFF_FONT_PATH=${WORLDTMP}/usr/share/groff_font \
GROFF_TMAC_PATH=${WORLDTMP}/usr/share/tmac \
LD_LIBRARY_PATH=${TOOLROOT}${SHLIBDIR} \
LIBRARY_PATH=${WORLDTMP}${SHLIBDIR}:${WORLDTMP}/usr/lib
@@ -396,7 +398,7 @@ update:
@echo "--------------------------------------------------------------"
@echo ">>> Updating /usr/src from cvs repository" ${CVSROOT}
@echo "--------------------------------------------------------------"
cd ${.CURDIR}; cvs -q update -P -d
cd ${.CURDIR}; cvs -q update -rRELENG_3 -P -d
.endif
#
+1 -1
View File
@@ -35,7 +35,7 @@ bin System/User commands.
contrib Packages contributed by 3rd parties.
crypto Export controlled stuff (see crypto/README).
crypto Cryptography stuff (see crypto/README).
etc Template files for /etc
+3 -134
View File
@@ -1,137 +1,6 @@
Updating Information for FreeBSD current users
Updating Information for FreeBSD Stable users
This file is maintained by [email protected]. Please send new entries
directly to him. See end of file for further details.
19990510:
Previously, one would define "NOAOUT" to keep from building
the legacy a.out bits. Now one would define "WANT_AOUT" to
build them.
19990507:
New devstat API requires recompilation of libdevstat, systat,
iostat, vmstat and rpc.rstatd. A new kernel is also required.
make world + building a kernel should do all of this. Any
ports that use devstat need to be recompiled as well.
19990424:
The 'nlpt' driver has changed names to become the 'lpt' driver.
See ppbus(4) or http://www.freebsd.org/~nsouch/ppbus.html
for proper configuration details.
19990209:
New devstat API requires recompilation of libdevstat, systat,
iostat, vmstat and rpc.rstatd. A new kernel is also required.
make world + building a kernel should do all of this. Any
ports that use devstat need to be recompiled as well.
19990125:
Linux threads options has gone away (they are now standard in
the FreeBSD kernel). A recompile of all libkvm using programs
is in order (or better yet a make world).
19990122:
On or about this date there was a small window when the boot
blocks had some minor problems which seemed to force one to
edit /etc/fstab. This has been corrected, if you are seeing this
problem, please rebuild and reinstall your boot blocks.
19990121:
Vinum has changed. The "vinum read" command has changed. For
updates, please see
http://www.freebsd.org/cgi/getmsg.cgi?fetch=800363+0+current/freebsd-current
for details.
19990120:
Stable branch created. You might want to consider using this
branch. It is tagged with RELENG_3.
19990119:
More work on the syscons driver has been committed. Since
files moved around, you will need to reconfigure your kernel,
and make clean; make depend before rebuilding the kernel. No
config file changes are needed.
19990111:
New keyboard and video card drivers are introduced as the first
stage of console driver reorganization. You are required to
update the kernel configuration file and rebuild the kernel.
kbdcontrol, vidcontrol, and screen savers also need recompilation.
The instruction can be found in
http://www.freebsd.org/~yokota/sc_update.txt
It has notes on splash screen too.
19990106:
Robert Nordier was kind enough to make this page to enable people to
install the new bootblocks:
http://www.freebsd.org/~rnordier/boot.txt
When updating to ELF, make sure that you have updated your
/etc/rc files which have different ldconfig invocations for
elf and aout. Otherwise things like X will stop working with
messages about being unable to find library files. The
mergemaster utility in ports/sysutils/mergemaster helps to
keep critical files like this in sync, and its use is
recommended.
19990104:
Information about ELF day (see 19981230) can be found in
http://www.freebsd.org/~peter/elfday.html
about the upcoming change, its motivations and instructions
for doing the upgrade.
19981230:
You should install new bootblocks now. The ELF kernel will
become default soon. In addition, you'll need to upgrade
your userland programs to ELF before then as well. Use
make aout-to-elf to upgrade your userland programs (old
a.out programs in, for example, /usr/local/bin will
continue to work, even after the upgrade). See src/Makefile
for more details.
19981224:
The old wcd driver has been deleted from the kernel. The
driver that replaces it is named acd. You'll need to change
this in your configuration files.
Failure to do this will result in "ATAPI CD-ROMs not
configured" at boot time.
The floppy tape driver (ft) has been removed from the kernel,
with no replacement driver.
19981202:
New groups from 19981201 commented out of mtree, so they
aren't strictly needed, but still a good idea to have.
19981201:
New user/group added: bind. From src/etc/master.passwd and
src/etc/group:
% grep <newstuff> /usr/src/etc/group
bind:*:53:
% grep <newstuff> /usr/src/etc/master.passwd
tty:*:4:65533::0:0:Tty Sandbox:/:/sbin/nologin
kmem:*:5:65533::0:0:KMem Sandbox:/:/sbin/nologin
bind:*:53:53::0:0:Bind Sandbox:/:/sbin/nologin
19981118:
PAM integrated into the tree. Requires new /etc/pam.conf file
to silence warnings from authentication programs (login, etc).
See src/etc/pam.conf for a sample.
This file contains a list, in reverse chronologocal order, of major
breakages in tracking -stable. Not all things will be listed here,
and it only starts on Novemeber 18, 1998. If you have an earlier
version of FreeBSD, you are on your own to get to November 18, 1998.
Please filter your entries through Warner ([email protected]) so that
the style, formatting, etc of this file can be maintained.
When updating to 4.x-stable from 3.x-stable, please read src/UPDATING
after updating to the new sources for important information.
$FreeBSD$
+12 -3
View File
@@ -47,6 +47,7 @@
.Fl f
.Fl R
.Op Fl H | Fl L | Fl P
.Fl v
.Oc
.Ar mode
.Ar file ...
@@ -64,7 +65,8 @@ The options are as follows:
If the
.Fl R
option is specified, symbolic links on the command line are followed.
(Symbolic links encountered in the tree traversal are not followed.)
(Symbolic links encountered in the tree traversal are not followed by
default.)
.It Fl L
If the
.Fl R
@@ -81,6 +83,10 @@ Do not display a diagnostic message if
.Nm
could not modify the mode for
.Va file .
.It Fl v
Cause
.Nm
to be verbose, showing files as the mode is modified.
.El
.Pp
Symbolic links do not have modes, so unless the
@@ -166,9 +172,8 @@ others, and no set-uid or set-gid behaviour is 755
The symbolic mode is described by the following grammar:
.Bd -literal -offset indent
mode ::= clause [, clause ...]
clause ::= [who ...] [action ...] last_action
clause ::= [who ...] [action ...] action
action ::= op [perm ...]
last_action ::= op [perm ...]
who ::= a | u | g | o
op ::= + | \- | =
perm ::= r | s | t | w | x | X | u | g | o
@@ -307,6 +312,10 @@ set the group bits equal to the user bits, but clear the group write bit.
There's no
.Ar perm
option for the naughty bits.
.Sh COMPATIBILITY
The
.Fl v
option is non-standard and its use in scripts is not recommended.
.Sh SEE ALSO
.Xr chflags 1 ,
.Xr install 1 ,
+10 -3
View File
@@ -70,12 +70,13 @@ main(argc, argv)
long val;
int oct, omode;
int Hflag, Lflag, Pflag, Rflag, ch, fflag, fts_options, hflag, rval;
int vflag;
char *ep, *mode;
set = NULL;
omode = 0;
Hflag = Lflag = Pflag = Rflag = fflag = hflag = 0;
while ((ch = getopt(argc, argv, "HLPRXfgorstuwx")) != -1)
Hflag = Lflag = Pflag = Rflag = fflag = hflag = vflag = 0;
while ((ch = getopt(argc, argv, "HLPRXfgorstuvwx")) != -1)
switch (ch) {
case 'H':
Hflag = 1;
@@ -118,6 +119,9 @@ main(argc, argv)
argv[optind - 1][2] == '\0')
--optind;
goto done;
case 'v':
vflag = 1;
break;
case '?':
default:
usage();
@@ -191,6 +195,9 @@ done: argv += optind;
getmode(set, p->fts_statp->st_mode)) && !fflag) {
warn(p->fts_path);
rval = 1;
} else {
if (vflag)
(void)printf("%s\n", p->fts_accpath);
}
}
if (errno)
@@ -203,6 +210,6 @@ void
usage()
{
(void)fprintf(stderr,
"usage: chmod [-f -R [-H | -L | -P]] mode file ...\n");
"usage: chmod [-fv] [-R [-H | -L | -P]] mode file ...\n");
exit(1);
}
+4 -2
View File
@@ -875,7 +875,8 @@ to remind you which command is being continued, and cause the command
to resume execution. Unless any input files in use by the suspended
command have been changed in the meantime, the suspension has no effect
whatsoever on the execution of the command. This feature can be very useful
during editing, when you need to look at another file before continuing. An
during editing, when you need to look at another file before continuing.
An
example of command suspension follows.
.DS
% mail harold
@@ -903,7 +904,8 @@ suspended, it typed `Stopped' and prompted for a new command. Then the
.I ls
command was typed to find out the name of the file. The
.I jobs
command was run to find out which command was suspended. At this time the
command was run to find out which command was suspended.
At this time the
.I fg
command was typed to continue execution of the mail program. Input
to the mail program was then continued and ended with a ^D
+2 -1
View File
@@ -678,7 +678,8 @@ the same until the job terminates and then are re-used.
.PP
When a job is started in the backgound using `&', its number, as well
as the process numbers of all its (top level) commands, is typed by the shell
before prompting you for another command. For example,
before prompting you for another command.
For example,
.DS
% ls \-s | sort \-n > usage &
[2] 2034 2035
+2 -1
View File
@@ -224,7 +224,8 @@ is quite special and is replaced by the next line of input read from
the shell's standard input (not the script it is reading). This is
useful for writing shell scripts that are interactive, reading
commands from the terminal, or even writing a shell script that
acts as a filter, reading lines from its input file. Thus the sequence
acts as a filter, reading lines from its input file.
Thus the sequence
.DS
echo 'yes or no?\ec'
set a=($<)
+6 -7
View File
@@ -59,7 +59,7 @@ and a C-like syntax.
It is used both as an interactive login shell and
a shell script command processor.
.Ss Argument list processing
If the first argument (argument 0) to the shell is
If the shell is executed with a program name starting with
.Ql Fl \& ,
then this is a login shell.
A login shell also can be specified by invoking the shell with the
@@ -132,12 +132,11 @@ variable to be set even before
.Pa .cshrc
is executed.
.It Fl X
Is to
.Fl x
as
.Fl V
is to
.Fl v .
Cause the
.Ar echo
variable to be set even before
.Pa .cshrc
is executed.
.El
.Pp
After processing of flag arguments, if arguments remain but none of the
+13 -5
View File
@@ -40,6 +40,7 @@ static const char rcsid[] =
#endif
#endif /* not lint */
#include <sys/time.h>
#include <sys/types.h>
#include <fcntl.h>
#include <errno.h>
@@ -850,13 +851,20 @@ heredoc(term)
Char **vp;
bool quoted;
char *tmp;
struct timeval tv;
if (creat(tmp = short2str(shtemp), 0600) < 0)
stderror(ERR_SYSTEM, tmp, strerror(errno));
(void) close(0);
if (open(tmp, O_RDWR) < 0) {
again:
tmp = short2str(shtemp);
if (open(tmp, O_RDWR|O_CREAT|O_TRUNC|O_EXCL, 0600) < 0) {
int oerrno = errno;
if (errno == EEXIST) {
if (unlink(tmp) == -1) {
(void) gettimeofday(&tv, NULL);
shtemp = Strspl(STRtmpsh, putn((((int)tv.tv_sec) ^
((int)tv.tv_usec) ^ ((int)getpid())) & 0x00ffffff));
}
goto again;
}
(void) unlink(tmp);
errno = oerrno;
stderror(ERR_SYSTEM, tmp, strerror(errno));
+31 -3
View File
@@ -92,9 +92,14 @@ option stops
.Nm
from setting the time for other than the current machine.
.It Fl r
Print out the date and time in
Print out the date and time that is
.Ar seconds
from the Epoch.
from the Epoch
.Po
00:00:00 UTC, January 1, 1970;
see
.Xr time 3
.Pc .
.It Fl t
Set the kernel's value for minutes west of
.Tn GMT .
@@ -117,7 +122,9 @@ or backwards according to the remaining string, otherwise the relevant
part of the date is set. The date can be adjusted as many times as
required using these flags. Flags are processed in the order given.
.Pp
Seconds are in the range 0-59, minutes are in the range 0-59, hours are
When setting values
.Pq rather than adjusting them ,
seconds are in the range 0-59, minutes are in the range 0-59, hours are
in the range 1-12, month days are in the range 1-31, week days are in the
range 0-6 (Sun-Sat), months are in the range 1-12 (Jan-Dec) and years are
in the range 80-38 or 1980-2038.
@@ -141,6 +148,27 @@ will be put forwards (or backwards) to the next (previous) date that
matches the given week day or month. This will not adjust the date
if the given week day or month is the same as the current one.
.Pp
When a date is adjusted to a specific value or in units greater than hours,
daylight savings time considerations are ignored.
Adjustments in units of hours or less honour daylight savings time.
So, assuming the current date is March 26, 0:30 and that the DST adjustment
means that the clock goes forward at 01:00 to 02:00, using
.Fl v No +1H
will adjust the date to March 26, 2:30.
Likewise, if the date is October 29, 0:30 and the DST adjustment means that
the clock goes back at 02:00 to 01:00, using
.Fl v No +3H
will be necessary to reach October 20, 2:30.
.Pp
When the date is adjusted to a specific value that doesn't actually exist
.Pq for example March 26, 1:30 BST 2000 ,
the date will be silently adjusted forwards in units of one hour until it
reaches a valid time.
When the date is adjusted to a specific value that occurs twice
.Pq for example October 29, 1:30 2000 ,
the resulting timezone will be set so that the date matches the earlier of
the two times.
.Pp
Refer to the examples below for further details.
.El
.Pp
+132 -89
View File
@@ -41,8 +41,8 @@ struct trans {
static struct trans trans_mon[] = {
{ 1, "january" }, { 2, "february" }, { 3, "march" }, { 4, "april" },
{ 6, "june" }, { 7, "july" }, { 8, "august" }, { 9, "september" },
{ 10, "october" }, { 11, "november" }, { 12, "december" },
{ 5, "may"}, { 6, "june" }, { 7, "july" }, { 8, "august" },
{ 9, "september" }, { 10, "october" }, { 11, "november" }, { 12, "december" },
{ -1, NULL }
};
@@ -53,6 +53,19 @@ static struct trans trans_wday[] = {
};
static char digits[] = "0123456789";
static int adjhour(struct tm *, char, int, int);
static int
domktime(struct tm *t, char type)
{
time_t ret;
while ((ret = mktime(t)) == -1 && t->tm_year > 68 && t->tm_year < 138)
/* While mktime() fails, adjust by an hour */
adjhour(t, type == '-' ? type : '+', 1, 0);
return ret;
}
static int
trans(const struct trans t[], const char *arg)
@@ -112,7 +125,7 @@ daysinmonth(const struct tm *t)
static int
adjyear(struct tm *t, char type, int val)
adjyear(struct tm *t, char type, int val, int mk)
{
switch (type) {
case '+':
@@ -129,45 +142,51 @@ adjyear(struct tm *t, char type, int val)
t->tm_year -= 1900; /* struct tm holds years since 1900 */
break;
}
return mktime(t) != -1;
return !mk || domktime(t, type) != -1;
}
static int
adjmon(struct tm *t, char type, int val, int istext)
adjmon(struct tm *t, char type, int val, int istext, int mk)
{
if (val < 0)
return 0;
switch (type) {
case '+':
if (istext)
if (istext) {
if (val <= t->tm_mon)
val += 11 - t->tm_mon; /* early next year */
else
val -= t->tm_mon + 1; /* later this year */
if (!adjyear(t, '+', (t->tm_mon + val) / 12))
return 0;
val %= 12;
t->tm_mon += val;
if (t->tm_mon > 11)
t->tm_mon -= 12;
}
if (val) {
if (!adjyear(t, '+', (t->tm_mon + val) / 12, 0))
return 0;
val %= 12;
t->tm_mon += val;
if (t->tm_mon > 11)
t->tm_mon -= 12;
}
break;
case '-':
if (istext)
if (istext) {
if (val-1 > t->tm_mon)
val = 13 - val + t->tm_mon; /* later last year */
else
val = t->tm_mon - val + 1; /* early this year */
if (!adjyear(t, '-', val / 12))
return 0;
val %= 12;
if (val > t->tm_mon) {
if (!adjyear(t, '-', 1))
return 0;
val -= 12;
}
t->tm_mon -= val;
if (val) {
if (!adjyear(t, '-', val / 12, 0))
return 0;
val %= 12;
if (val > t->tm_mon) {
if (!adjyear(t, '-', 1, 0))
return 0;
val -= 12;
}
t->tm_mon -= val;
}
break;
default:
@@ -176,13 +195,14 @@ adjmon(struct tm *t, char type, int val, int istext)
t->tm_mon = --val;
}
return mktime(t) != -1;
return !mk || domktime(t, type) != -1;
}
static int
adjday(struct tm *t, char type, int val)
adjday(struct tm *t, char type, int val, int mk)
{
int mdays;
switch (type) {
case '+':
while (val) {
@@ -190,7 +210,7 @@ adjday(struct tm *t, char type, int val)
if (val > mdays - t->tm_mday) {
val -= mdays - t->tm_mday + 1;
t->tm_mday = 1;
if (!adjmon(t, '+', 1, 0))
if (!adjmon(t, '+', 1, 0, 0))
return 0;
} else {
t->tm_mday += val;
@@ -203,7 +223,7 @@ adjday(struct tm *t, char type, int val)
if (val >= t->tm_mday) {
val -= t->tm_mday;
t->tm_mday = 1;
if (!adjmon(t, '-', 1, 0))
if (!adjmon(t, '-', 1, 0, 0))
return 0;
t->tm_mday = daysinmonth(t);
} else {
@@ -219,11 +239,11 @@ adjday(struct tm *t, char type, int val)
break;
}
return mktime(t) != -1;
return !mk || domktime(t, type) != -1;
}
static int
adjwday(struct tm *t, char type, int val, int istext)
adjwday(struct tm *t, char type, int val, int istext, int mk)
{
if (val < 0)
return 0;
@@ -236,54 +256,62 @@ adjwday(struct tm *t, char type, int val, int istext)
else
val -= t->tm_wday; /* later this week */
else
val *= 7; /* "-W +5" == "5 weeks in the future" */
return adjday(t, '+', val);
val *= 7; /* "-v+5w" == "5 weeks in the future" */
return !val || adjday(t, '+', val, mk);
case '-':
if (istext)
if (istext) {
if (val > t->tm_wday)
val = 7 - val + t->tm_wday; /* later last week */
else
val = t->tm_wday - val; /* early this week */
else
val *= 7; /* "-W -5" == "5 weeks ago" */
return adjday(t, '-', val);
} else
val *= 7; /* "-v-5w" == "5 weeks ago" */
return !val || adjday(t, '-', val, mk);
default:
if (val < t->tm_wday)
return adjday(t, '-', t->tm_wday - val);
return adjday(t, '-', t->tm_wday - val, mk);
else if (val > 6)
return 0;
else if (val > t->tm_wday)
return adjday(t, '+', val - t->tm_wday);
return adjday(t, '+', val - t->tm_wday, mk);
}
return 1;
}
static int
adjhour(struct tm *t, char type, int val)
adjhour(struct tm *t, char type, int val, int mk)
{
if (val < 0)
return 0;
switch (type) {
case '+':
if (!adjday(t, '+', (t->tm_hour + val) / 24))
return 0;
val %= 24;
t->tm_hour += val;
if (t->tm_hour > 23)
t->tm_hour -= 24;
if (val) {
int days;
days = (t->tm_hour + val) / 24;
val %= 24;
t->tm_hour += val;
t->tm_hour %= 24;
if (!adjday(t, '+', days, 0))
return 0;
}
break;
case '-':
if (!adjday(t, '-', val / 24))
return 0;
val %= 24;
if (val > t->tm_hour) {
if (!adjday(t, '-', 1))
if (val) {
int days;
days = val / 24;
val %= 24;
if (val > t->tm_hour) {
days++;
val -= 24;
}
t->tm_hour -= val;
if (!adjday(t, '-', days, 0))
return 0;
val -= 24;
}
t->tm_hour -= val;
break;
default:
@@ -292,35 +320,39 @@ adjhour(struct tm *t, char type, int val)
t->tm_hour = val;
}
return mktime(t) != -1;
return !mk || domktime(t, type) != -1;
}
static int
adjmin(struct tm *t, char type, int val)
adjmin(struct tm *t, char type, int val, int mk)
{
if (val < 0)
return 0;
switch (type) {
case '+':
if (!adjhour(t, '+', (t->tm_min + val) / 60))
return 0;
val %= 60;
t->tm_min += val;
if (t->tm_min > 59)
t->tm_min -= 60;
if (val) {
if (!adjhour(t, '+', (t->tm_min + val) / 60, 0))
return 0;
val %= 60;
t->tm_min += val;
if (t->tm_min > 59)
t->tm_min -= 60;
}
break;
case '-':
if (!adjhour(t, '-', val / 60))
return 0;
val %= 60;
if (val > t->tm_min) {
if (!adjhour(t, '-', 1))
if (val) {
if (!adjhour(t, '-', val / 60, 0))
return 0;
val -= 60;
val %= 60;
if (val > t->tm_min) {
if (!adjhour(t, '-', 1, 0))
return 0;
val -= 60;
}
t->tm_min -= val;
}
t->tm_min -= val;
break;
default:
@@ -329,35 +361,39 @@ adjmin(struct tm *t, char type, int val)
t->tm_min = val;
}
return mktime(t) != -1;
return !mk || domktime(t, type) != -1;
}
static int
adjsec(struct tm *t, char type, int val)
adjsec(struct tm *t, char type, int val, int mk)
{
if (val < 0)
return 0;
switch (type) {
case '+':
if (!adjmin(t, '+', (t->tm_sec + val) / 60))
return 0;
val %= 60;
t->tm_sec += val;
if (t->tm_sec > 59)
t->tm_sec -= 60;
if (val) {
if (!adjmin(t, '+', (t->tm_sec + val) / 60, 0))
return 0;
val %= 60;
t->tm_sec += val;
if (t->tm_sec > 59)
t->tm_sec -= 60;
}
break;
case '-':
if (!adjmin(t, '-', val / 60))
return 0;
val %= 60;
if (val > t->tm_sec) {
if (!adjmin(t, '-', 1))
if (val) {
if (!adjmin(t, '-', val / 60, 0))
return 0;
val -= 60;
val %= 60;
if (val > t->tm_sec) {
if (!adjmin(t, '-', 1, 0))
return 0;
val -= 60;
}
t->tm_sec -= val;
}
t->tm_sec -= val;
break;
default:
@@ -366,7 +402,7 @@ adjsec(struct tm *t, char type, int val)
t->tm_sec = val;
}
return mktime(t) != -1;
return !mk || domktime(t, type) != -1;
}
const struct vary *
@@ -389,15 +425,18 @@ vary_apply(const struct vary *v, struct tm *t)
if (len < 2)
return v;
if (type == '\0')
t->tm_isdst = -1;
if (strspn(arg, digits) != len-1) {
val = trans(trans_wday, arg);
if (val != -1) {
if (!adjwday(t, type, val, 1))
if (!adjwday(t, type, val, 1, 1))
return v;
} else {
val = trans(trans_mon, arg);
if (val != -1) {
if (!adjmon(t, type, val, 1))
if (!adjmon(t, type, val, 1, 1))
return v;
} else
return v;
@@ -408,31 +447,35 @@ vary_apply(const struct vary *v, struct tm *t)
switch (which) {
case 'S':
if (!adjsec(t, type, val))
if (!adjsec(t, type, val, 1))
return v;
break;
case 'M':
if (!adjmin(t, type, val))
if (!adjmin(t, type, val, 1))
return v;
break;
case 'H':
if (!adjhour(t, type, val))
if (!adjhour(t, type, val, 1))
return v;
break;
case 'd':
if (!adjday(t, type, val))
t->tm_isdst = -1;
if (!adjday(t, type, val, 1))
return v;
break;
case 'w':
if (!adjwday(t, type, val, 0))
t->tm_isdst = -1;
if (!adjwday(t, type, val, 0, 1))
return v;
break;
case 'm':
if (!adjmon(t, type, val, 0))
t->tm_isdst = -1;
if (!adjmon(t, type, val, 0, 1))
return v;
break;
case 'y':
if (!adjyear(t, type, val))
t->tm_isdst = -1;
if (!adjyear(t, type, val, 1))
return v;
break;
default:
+2 -1
View File
@@ -282,7 +282,8 @@ appended.
.El
.El
.Pp
Where sizes are specified, a decimal number of bytes is expected.
Where sizes are specified, a decimal, octal, or hexadecimal number of
bytes is expected.
If the number ends with a ``b'', ``k'', ``m'', ``g'', or ``w'', the
number is multiplied by 512, 1024 (1K), 1048576 (1M), 1073741824 (1G)
or the number of bytes in an integer, respectively.
+2
View File
@@ -8,6 +8,8 @@ BINMODE=2555
MOUNT= ${.CURDIR}/../../sbin/mount
CFLAGS+= -I${MOUNT}
LDADD+= ${LIBM}
DPADD+= ${LIBM}
.PATH: ${MOUNT}
.include <bsd.prog.mk>
+28 -1
View File
@@ -40,7 +40,11 @@
.Nd display free disk space
.Sh SYNOPSIS
.Nm df
.Op Fl ikn
.Oo
.Fl b | h | H | k |
.Fl m | P
.Oc
.Op Fl in
.Op Fl t Ar type
.Op Ar file | Ar filesystem ...
.Sh DESCRIPTION
@@ -59,6 +63,19 @@ option below).
.Pp
The following options are available:
.Bl -tag -width Ds
.It Fl b
Use 512-byte blocks rather than the default. Note that
this overrides the
.Ev BLOCKSIZE
specification from the environment.
.It Fl H
"Human-readable" output. Use unit suffixes: Byte, Kilobyte, Megabyte,
Gigabyte, Terabyte and Petabyte in order to reduce the number of
digits to three or less using base 10 for sizes.
.It Fl h
"Human-readable" output. Use unit suffixes: Byte, Kilobyte, Megabyte,
Gigabyte, Terabyte and Petabyte in order to reduce the number of
digits to three or less using base 2 for sizes.
.It Fl i
Include statistics on the number of free inodes.
.It Fl k
@@ -66,6 +83,11 @@ Use 1024-byte (1-Kbyte) blocks rather than the default. Note that
this overrides the
.Ev BLOCKSIZE
specification from the environment.
.It Fl m
Use 1048576-byte (1-Mbyte) blocks rather than the default. Note that
this overrides the
.Ev BLOCKSIZE
specification from the environment.
.It Fl n
Print out the previously obtained statistics from the filesystems.
This option should be used if it is possible that one or more
@@ -75,6 +97,11 @@ When this option is specified,
.Nm
will not request new statistics from the filesystems, but will respond
with the possibly stale statistics that were previously obtained.
.It Fl P
Use POSIX compliant output of 512-byte blocks rather than the default.
Note that this overrides the
.Ev BLOCKSIZE
specification from the environment.
.It Fl t
Only print out statistics for filesystems of the specified types.
More than one type may be specified in a comma separated list.
+133 -12
View File
@@ -59,21 +59,55 @@ static const char rcsid[] =
#include <err.h>
#include <errno.h>
#include <fcntl.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sysexits.h>
#include <unistd.h>
#define UNITS_SI 1
#define UNITS_2 2
#define KILO_SZ(n) (n)
#define MEGA_SZ(n) ((n) * (n))
#define GIGA_SZ(n) ((n) * (n) * (n))
#define TERA_SZ(n) ((n) * (n) * (n) * (n))
#define PETA_SZ(n) ((n) * (n) * (n) * (n) * (n))
#define KILO_2_SZ (KILO_SZ(1024ULL))
#define MEGA_2_SZ (MEGA_SZ(1024ULL))
#define GIGA_2_SZ (GIGA_SZ(1024ULL))
#define TERA_2_SZ (TERA_SZ(1024ULL))
#define PETA_2_SZ (PETA_SZ(1024ULL))
#define KILO_SI_SZ (KILO_SZ(1000ULL))
#define MEGA_SI_SZ (MEGA_SZ(1000ULL))
#define GIGA_SI_SZ (GIGA_SZ(1000ULL))
#define TERA_SI_SZ (TERA_SZ(1000ULL))
#define PETA_SI_SZ (PETA_SZ(1000ULL))
unsigned long long vals_si [] = {1, KILO_SI_SZ, MEGA_SI_SZ, GIGA_SI_SZ, TERA_SI_SZ, PETA_SI_SZ};
unsigned long long vals_base2[] = {1, KILO_2_SZ, MEGA_2_SZ, GIGA_2_SZ, TERA_2_SZ, PETA_2_SZ};
unsigned long long *valp;
typedef enum { NONE, KILO, MEGA, GIGA, TERA, PETA, UNIT_MAX } unit_t;
int unitp [] = { NONE, KILO, MEGA, GIGA, TERA, PETA };
int checkvfsname __P((const char *, char **));
char **makevfslist __P((char *));
long regetmntinfo __P((struct statfs **, long, char **));
int bread __P((off_t, void *, int));
char *getmntpt __P((char *));
void prthuman __P((struct statfs *, long));
void prthumanval __P((double));
void prtstat __P((struct statfs *, int));
int ufs_df __P((char *, int));
unit_t unit_adjust __P((double *));
void usage __P((void));
int iflag, nflag;
int hflag, iflag, nflag;
struct ufs_args mdev;
int
@@ -88,13 +122,32 @@ main(argc, argv)
char *mntpt, *mntpath, **vfslist;
vfslist = NULL;
while ((ch = getopt(argc, argv, "iknt:")) != -1)
while ((ch = getopt(argc, argv, "bHhikmnPt:")) != -1)
switch (ch) {
case 'b':
/* FALLTHROUGH */
case 'P':
putenv("BLOCKSIZE=512");
hflag = 0;
break;
case 'H':
hflag = UNITS_SI;
valp = vals_si;
break;
case 'h':
hflag = UNITS_2;
valp = vals_base2;
break;
case 'i':
iflag = 1;
break;
case 'k':
putenv("BLOCKSIZE=1k");
hflag = 0;
break;
case 'm':
putenv("BLOCKSIZE=1m");
hflag = 0;
break;
case 'n':
nflag = 1;
@@ -130,8 +183,9 @@ main(argc, argv)
maxwidth = width;
}
}
for (i = 0; i < mntsize; i++)
for (i = 0; i < mntsize; i++) {
prtstat(&mntbuf[i], maxwidth);
}
exit(rv);
}
@@ -243,6 +297,61 @@ regetmntinfo(mntbufp, mntsize, vfslist)
return (j);
}
/*
* Output in "human-readable" format. Uses 3 digits max and puts
* unit suffixes at the end. Makes output compact and easy to read,
* especially on huge disks.
*
*/
unit_t
unit_adjust(val)
double *val;
{
double abval;
unit_t unit;
unsigned int unit_sz;
abval = fabs(*val);
unit_sz = abval ? ilogb(abval) / 10 : 0;
if (unit_sz >= UNIT_MAX) {
unit = NONE;
} else {
unit = unitp[unit_sz];
*val /= (double)valp[unit_sz];
}
return (unit);
}
void
prthuman(sfsp, used)
struct statfs *sfsp;
long used;
{
prthumanval((double)sfsp->f_blocks * (double)sfsp->f_bsize);
prthumanval((double)used * (double)sfsp->f_bsize);
prthumanval((double)sfsp->f_bavail * (double)sfsp->f_bsize);
}
void
prthumanval(bytes)
double bytes;
{
unit_t unit;
unit = unit_adjust(&bytes);
if (bytes == 0)
(void)printf(" 0B");
else if (bytes > 10)
(void)printf(" %5.0f%c", bytes, "BKMGTPE"[unit]);
else
(void)printf(" %5.1f%c", bytes, "BKMGTPE"[unit]);
}
/*
* Convert statfs returned filesystem size into BLOCKSIZE units.
* Attempts to avoid overflow for large filesystems.
@@ -267,9 +376,16 @@ prtstat(sfsp, maxwidth)
if (maxwidth < 11)
maxwidth = 11;
if (++timesthrough == 1) {
header = getbsize(&headerlen, &blocksize);
(void)printf("%-*.*s %s Used Avail Capacity",
maxwidth, maxwidth, "Filesystem", header);
if (hflag) {
header = " Size";
headerlen = strlen(header);
(void)printf("%-*.*s %-s Used Avail Capacity",
maxwidth, maxwidth, "Filesystem", header);
} else {
header = getbsize(&headerlen, &blocksize);
(void)printf("%-*.*s %-s Used Avail Capacity",
maxwidth, maxwidth, "Filesystem", header);
}
if (iflag)
(void)printf(" iused ifree %%iused");
(void)printf(" Mounted on\n");
@@ -277,10 +393,14 @@ prtstat(sfsp, maxwidth)
(void)printf("%-*.*s", maxwidth, maxwidth, sfsp->f_mntfromname);
used = sfsp->f_blocks - sfsp->f_bfree;
availblks = sfsp->f_bavail + used;
(void)printf(" %*ld %8ld %8ld", headerlen,
fsbtoblk(sfsp->f_blocks, sfsp->f_bsize, blocksize),
fsbtoblk(used, sfsp->f_bsize, blocksize),
fsbtoblk(sfsp->f_bavail, sfsp->f_bsize, blocksize));
if (hflag) {
prthuman(sfsp, used);
} else {
(void)printf(" %*ld %8ld %8ld", headerlen,
fsbtoblk(sfsp->f_blocks, sfsp->f_bsize, blocksize),
fsbtoblk(used, sfsp->f_bsize, blocksize),
fsbtoblk(sfsp->f_bavail, sfsp->f_bsize, blocksize));
}
(void)printf(" %5.0f%%",
availblks == 0 ? 100.0 : (double)used / (double)availblks * 100.0);
if (iflag) {
@@ -376,7 +496,8 @@ bread(off, buf, cnt)
void
usage()
{
(void)fprintf(stderr,
"usage: df [-ikn] [-t type] [file | filesystem ...]\n");
exit(1);
"usage: df [-b | -H | -h | -k | -m | -P] [-ain] [-t type] [file | filesystem ...]\n");
exit(EX_USAGE);
}
+11 -1
View File
@@ -59,12 +59,22 @@ Do not print the trailing newline character. This may also be
achieved by appending `\ec' to the end of the string, as is done
by iBCS2 compatible systems.
.El
.Pp
Some shells may provide a builtin
.Nm
command which is similar or identical to this utility.
Consult the
.Xr builtin 1
manual page.
.Sh DIAGNOSTICS
The
.Nm
utility exits 0 on success, and >0 if an error occurs.
.Sh SEE ALSO
.Xr printf 1
.Xr builtin 1 ,
.Xr csh 1 ,
.Xr printf 1 ,
.Xr sh 1
.Sh STANDARDS
The
.Nm
+12 -6
View File
@@ -4,7 +4,8 @@
.Os
.Sh NAME
.\" ed, red \- text editor
.Nm ed
.Nm ed ,
.Nm red
.Nd text editor
.Sh SYNOPSIS
.Nm ed
@@ -115,7 +116,8 @@ default addresses are supplied.
The following options are available:
.Bl -tag -width indent
.It Fl s
Suppress diagnostics. This should be used if
Suppress diagnostics.
This should be used if
.Nm Ns 's
standard input is from a script.
.It Fl x
@@ -174,7 +176,8 @@ This means "before the first line,"
and is legal wherever it makes sense.
.Pp
An address range is two addresses separated either by a comma or
semi-colon. The value of the first address in a range cannot exceed the
semi-colon.
The value of the first address in a range cannot exceed the
value of the second. If only one address is given in a range, then
the second address is set to the given address. If an
.Em n Ns -tuple
@@ -452,7 +455,8 @@ The current address is set to last line entered.
.It (.,.)d
Delete the addressed lines from the buffer.
If there is a line after the deleted range, then the current address is set
to this line. Otherwise the current address is set to the line
to this line.
Otherwise the current address is set to the line
before the deleted range.
.It e Ar file
Edit
@@ -587,7 +591,8 @@ Print the addressed lines along with
their line numbers. The current address is set to the last line
printed.
.It (.,.)p
Print the addressed lines. The current address is set to the last line
Print the addressed lines.
The current address is set to the last line
printed.
.It P
Toggle the command prompt on and off.
@@ -830,7 +835,8 @@ attempts to write the buffer if the terminal hangs up
USD:12-13
.Rs
.%A B. W. Kernighan and P. J. Plauger
.%A B. W. Kernighan
.%A P. J. Plauger
.%B Software Tools in Pascal
.%O Addison-Wesley
.%D 1981
+5 -3
View File
@@ -175,7 +175,9 @@ top:
if (read_file(*argv, 0) < 0 && !isatty(0))
quit(2);
else if (**argv != '!')
strcpy(old_filename, *argv);
if (strlcpy(old_filename, *argv, sizeof(old_filename))
>= sizeof(old_filename))
quit(2);
} else if (argc) {
fputs("?\n", stderr);
if (**argv == '\0')
@@ -1345,8 +1347,8 @@ strip_escapes(s)
int i = 0;
REALLOC(file, filesz, MAXPATHLEN + 1, NULL);
/* assert: no trailing escape */
while ((file[i++] = (*s == '\\') ? *++s : *s))
while (i < filesz - 1 /* Worry about a possible trailing escape */
&& (file[i++] = (*s == '\\') ? *++s : *s))
s++;
return file;
}
+6 -1
View File
@@ -50,6 +50,10 @@ network initialization script
.Pa /etc/rc.network ,
normally run at boot
time.
This script uses the
.Va hostname
variable in
.Pa /etc/rc.conf .
.Pp
Options:
.Bl -tag -width flag
@@ -58,7 +62,8 @@ Trim off any domain information from the printed
name.
.El
.Sh SEE ALSO
.Xr gethostname 3
.Xr gethostname 3 ,
.Xr rc.conf 5
.Sh HISTORY
The
.Nm
+6 -9
View File
@@ -110,17 +110,14 @@ ALRM (alarm clock)
TERM (software termination signal)
.El
.Pp
.Nm Kill
is a built-in to
.Xr csh 1 ;
it allows job specifiers of the form ``%...'' as arguments
so process id's are not as often used as
Some shells may provide a builtin
.Nm
arguments.
See
.Xr csh 1
for details.
command which is similar or identical to this utility.
Consult the
.Xr builtin 1
manual page.
.Sh SEE ALSO
.Xr builtin 1 ,
.Xr csh 1 ,
.Xr killall 1 ,
.Xr ps 1 ,
+3
View File
@@ -5,4 +5,7 @@ PROG= ln
MAN1= ln.1
MAN7= symlink.7
LINKS= ${BINDIR}/ln ${BINDIR}/link
MLINKS= ln.1 link.1
.include <bsd.prog.mk>
+27 -3
View File
@@ -39,17 +39,20 @@
.Dt LN 1
.Os BSD 4
.Sh NAME
.Nm ln
.Nm ln ,
.Nm link
.Nd make links
.Sh SYNOPSIS
.Nm ln
.Op Fl fs
.Op Fl fsv
.Ar source_file
.Op target_file
.Nm ln
.Op Fl fs
.Op Fl fsv
.Ar source_file ...
.Op target_dir
.Nm link
.Ar source_file Ar target_file
.Sh DESCRIPTION
The
.Nm
@@ -72,6 +75,10 @@ The options are as follows:
Unlink any already existing file, permitting the link to occur.
.It Fl s
Create a symbolic link.
.It Fl v
Cause
.Nm
to be verbose, showing files as they are processed.
.El
.Pp
By default,
@@ -118,6 +125,15 @@ makes links in
.Ar target_dir
to all the named source files.
The links made will have the same name as the files being linked to.
.Pp
When the utility is called as
.Nm link ,
exactly two arguments must be supplied,
neither of which may specify a directory.
No options may be supplied in this simple mode of operation,
which performs a
.Xr link 2
operation using the two passed arguments.
.Sh SEE ALSO
.Xr link 2 ,
.Xr lstat 2 ,
@@ -125,8 +141,16 @@ The links made will have the same name as the files being linked to.
.Xr stat 2 ,
.Xr symlink 2 ,
.Xr symlink 7
.Sh COMPATIBILITY
The
.Fl v
option is non-standard and its use in scripts is not recommended.
.Sh HISTORY
An
.Nm
command appeared in
.At v1 .
The simplified
.Nm link
command conforms to
.St -susv2 .
+31 -5
View File
@@ -57,8 +57,10 @@ static const char rcsid[] =
int fflag; /* Unlink existing files. */
int sflag; /* Symbolic, not hard, link. */
int vflag; /* Verbose output. */
/* System link call. */
int (*linkf) __P((const char *, const char *));
char linkch;
int linkit __P((char *, char *, int));
void usage __P((void));
@@ -71,9 +73,26 @@ main(argc, argv)
extern int optind;
struct stat sb;
int ch, exitval;
char *sourcedir;
char *p, *sourcedir;
while ((ch = getopt(argc, argv, "fs")) != -1)
/*
* Test for the special case where the utility is called as
* "link", for which the functionality provided is greatly
* simplified.
*/
if ((p = rindex(argv[0], '/')) == NULL)
p = argv[0];
else
++p;
if (strcmp(p, "link") == 0) {
if (argc == 3) {
linkf = link;
exit(linkit(argv[1], argv[2], 0));
} else
usage();
}
while ((ch = getopt(argc, argv, "fsv")) != -1)
switch (ch) {
case 'f':
fflag = 1;
@@ -81,6 +100,9 @@ main(argc, argv)
case 's':
sflag = 1;
break;
case 'v':
vflag = 1;
break;
case '?':
default:
usage();
@@ -90,6 +112,7 @@ main(argc, argv)
argc -= optind;
linkf = sflag ? symlink : link;
linkch = sflag ? '-' : '=';
switch(argc) {
case 0:
@@ -153,14 +176,17 @@ linkit(target, source, isdir)
warn("%s", source);
return (1);
}
if (vflag)
(void)printf("%s %c> %s\n", source, linkch, target);
return (0);
}
void
usage()
{
(void)fprintf(stderr, "%s\n%s\n",
"usage: ln [-fs] file1 file2",
" ln [-fs] file ... directory");
(void)fprintf(stderr, "%s\n%s\n%s\n",
"usage: ln [-fsv] file1 file2",
" ln [-fsv] file ... directory",
" link file1 file2");
exit(1);
}
+2 -1
View File
@@ -132,7 +132,8 @@ The
.Bx 4.4
system differs from historical 4BSD systems in that the system call
.Xr chown 2
has been changed to follow symbolic links. The
has been changed to follow symbolic links.
The
.Xr lchown 2
system call was added later when the limitations of the new
.Xr chown 2
+3 -3
View File
@@ -44,10 +44,10 @@ int statcmp __P((const FTSENT *, const FTSENT *));
int revstatcmp __P((const FTSENT *, const FTSENT *));
char *flags_to_string __P((u_long, char *));
void prcopy __P((char *, char *, int));
void printcol __P((DISPLAY *));
void printlong __P((DISPLAY *));
void printscol __P((DISPLAY *));
void usage __P((void));
int len_octal __P((char *, int));
int prn_octal __P((char *));
int len_octal __P((const char *, int));
int prn_octal __P((const char *));
int prn_printable __P((const char *));
+10 -5
View File
@@ -100,7 +100,8 @@ or
options are specified.
.It Fl L
If argument is a symbolic link, list the file or directory the link references
rather than the link itself. This option cancels the
rather than the link itself.
This option cancels the
.Fl P
option.
.It Fl P
@@ -145,7 +146,8 @@ If the
option is specified, print the file size allocation in kilobytes,
not blocks. This option overrides the environment variable BLOCKSIZE.
.It Fl l
(The lowercase letter ``ell.'') List in long format. (See below.)
(The lowercase letter ``ell.'') List in long format.
(See below.)
If the output is to a terminal, a total sum for all the file
sizes is output on a line before the long listing.
.It Fl o
@@ -252,7 +254,8 @@ the numeric ID's are displayed.
.Pp
If the file is a character special or block special file,
the major and minor device numbers for the file are displayed
in the size field. If the file is a symbolic link the pathname of the
in the size field.
If the file is a symbolic link the pathname of the
linked-to file is preceded by
.Dq \-> .
.Pp
@@ -317,7 +320,8 @@ The file is executable or the directory is
searchable.
.It Sy \-
The file is neither readable, writable, executable,
nor set-user-ID nor set-group-ID mode, nor sticky. (See below.)
nor set-user-ID nor set-group-ID mode, nor sticky.
(See below.)
.El
.Pp
These next two apply only to the third character in the last group
@@ -327,7 +331,8 @@ These next two apply only to the third character in the last group
The sticky bit is set
(mode
.Li 1000 ) ,
but not execute or search permission. (See
but not execute or search permission.
(See
.Xr chmod 1
or
.Xr sticky 8 . )
-2
View File
@@ -491,8 +491,6 @@ display(p, list)
continue;
}
}
if (f_nonprint)
prcopy(cur->fts_name, cur->fts_name, cur->fts_namelen);
if (cur->fts_namelen > maxlen)
maxlen = cur->fts_namelen;
if (f_octal || f_octal_escape) {
+1
View File
@@ -48,6 +48,7 @@ extern int f_inode; /* print inode */
extern int f_longform; /* long listing format */
extern int f_octal; /* print unprintables in octal */
extern int f_octal_escape; /* like f_octal but use C escapes if possible */
extern int f_nonprint; /* show unprintables as ? */
extern int f_sectime; /* print the real time for all files */
extern int f_size; /* list size in short listing */
extern int f_statustime; /* use time of last mode change */
+19 -9
View File
@@ -81,6 +81,21 @@ printscol(dp)
}
}
/*
* print name in current style
*/
static int
printname(name)
const char *name;
{
if (f_octal || f_octal_escape)
return prn_octal(name);
else if (f_nonprint)
return prn_printable(name);
else
return printf("%s", name);
}
void
printlong(dp)
DISPLAY *dp;
@@ -127,8 +142,7 @@ printlong(dp)
printtime(sp->st_ctime);
else
printtime(sp->st_mtime);
if (f_octal || f_octal_escape) (void)prn_octal(p->fts_name);
else (void)printf("%s", p->fts_name);
(void)printname(p->fts_name);
if (f_type)
(void)printtype(sp->st_mode);
if (S_ISLNK(sp->st_mode))
@@ -228,8 +242,7 @@ printaname(p, inodefield, sizefield)
if (f_size)
chcnt += printf("%*qd ",
(int)sizefield, howmany(sp->st_blocks, blocksize));
chcnt += (f_octal || f_octal_escape) ? prn_octal(p->fts_name)
: printf("%s", p->fts_name);
chcnt += printname(p->fts_name);
if (f_type)
chcnt += printtype(sp->st_mode);
return (chcnt);
@@ -310,9 +323,6 @@ printlink(p)
return;
}
path[lnklen] = '\0';
if (f_octal || f_octal_escape) {
(void)printf(" -> ");
(void)prn_octal(path);
}
else (void)printf(" -> %s", path);
(void)printf(" -> ");
printname(path);
}
+13 -11
View File
@@ -56,17 +56,19 @@ static const char rcsid[] =
#include "ls.h"
#include "extern.h"
void
prcopy(src, dest, len)
char *src, *dest;
int len;
int
prn_printable(s)
const char *s;
{
unsigned char ch;
unsigned char c;
int n;
while (len--) {
ch = *src++;
*dest++ = isprint(ch) ? ch : '?';
}
for (n = 0; (c = *s) != '\0'; ++s, ++n)
if (isprint(c))
putchar(c);
else
putchar('?');
return n;
}
/*
@@ -84,7 +86,7 @@ prcopy(src, dest, len)
int
len_octal(s, len)
char *s;
const char *s;
int len;
{
int r = 0;
@@ -96,7 +98,7 @@ len_octal(s, len)
int
prn_octal(s)
char *s;
const char *s;
{
unsigned char ch;
int len = 0;
+12 -1
View File
@@ -221,7 +221,7 @@ do_move(from, to)
* it's a regular file, do the copy internally; otherwise, use
* cp and rm.
*/
if (stat(from, &sb)) {
if (lstat(from, &sb)) {
warn("%s", from);
return (1);
}
@@ -290,6 +290,17 @@ err: if (unlink(to))
}
if (fchmod(to_fd, sbp->st_mode))
warn("%s: set mode (was: 0%03o)", to, oldmode);
/*
* XXX
* NFS doesn't support chflags; ignore errors unless there's reason
* to believe we're losing bits. (Note, this still won't be right
* if the server supports flags and we were trying to *remove* flags
* on a file that we copied, i.e., that we didn't create.)
*/
errno = 0;
if (fchflags(to_fd, sbp->st_flags))
if (errno != EOPNOTSUPP || sbp->st_flags != 0)
warn("%s: set flags (was: 0%07o)", to, sbp->st_flags);
tval[0].tv_sec = sbp->st_atime;
tval[1].tv_sec = sbp->st_mtime;
+4 -2
View File
@@ -480,7 +480,8 @@ cannot be opened for reading and writing.
.It Fl k
Do not overwrite existing files.
.It Fl l
Link files. (The letter ell).
Link files.
(The letter ell).
In the
.Em copy
mode (
@@ -623,7 +624,8 @@ The optional trailing
.Cm g
continues to apply the substitution expression to the pathname substring
which starts with the first character following the end of the last successful
substitution. The first unsuccessful substitution stops the operation of the
substitution.
The first unsuccessful substitution stops the operation of the
.Cm g
option.
The optional trailing
+1 -1
View File
@@ -358,7 +358,7 @@ main(argc, argv)
*/
printheader();
if (nentries == 0)
exit(0);
exit(1);
/*
* sort proc list
*/
+13 -3
View File
@@ -47,6 +47,13 @@
.Nm Pwd
writes the absolute pathname of the current working directory to
the standard output.
.Pp
Some shells may provide a builtin
.Nm
command which is similar or identical to this utility.
Consult the
.Xr builtin 1
manual page.
.Sh DIAGNOSTICS
The
.Nm
@@ -58,14 +65,17 @@ utility is expected to be
.St -p1003.2
compatible.
.Sh SEE ALSO
.Xr builtin 1 ,
.Xr cd 1 ,
.Xr csh 1 ,
.Xr getcwd 3
.Xr getcwd 3 ,
.Xr sh 1
.Sh BUGS
In
.Xr csh 1
the command
.Ic dirs
is always faster (although it can give a different answer in the rare case
is always faster because it is built into that shell.
However, it can give a different answer in the rare case
that the current directory or a containing directory was moved after
the shell descended into it).
the shell descended into it.
+9 -4
View File
@@ -55,7 +55,9 @@ copies files between machines. Each
or
.Ar directory
argument is either a remote file name of the
form ``rname@rhost:path'', or a local file name (containing no `:' characters,
form
.Dq rname@rhost:path ,
or a local file name (containing no `:' characters,
or a `/' before any `:'s).
.Pp
The following options are available:
@@ -69,7 +71,7 @@ to obtain tickets
for the remote host in realm
.Ar realm
instead of the remote host's realm as determined by
.Xr krb_realmofhost 3 .
.Xr krb_realmofhost 3 .
.It Fl p
Cause
.Nm
@@ -129,7 +131,9 @@ configure authentication services
.Xr cp 1 ,
.Xr ftp 1 ,
.Xr rlogin 1 ,
.Xr rsh 1
.Xr rsh 1 ,
.Xr auth.conf 5 ,
.Xr hosts.equiv 5 .
.Sh HISTORY
The
.Nm
@@ -152,7 +156,8 @@ or
file on the remote host.
.Pp
The destination user and hostname may have to be specified as
``rhost.rname'' when the destination machine is running the
.Dq rhost.rname
when the destination machine is running the
.Bx 4.2
version of
.Nm Ns .
+3
View File
@@ -4,6 +4,9 @@
PROG= rm
SRCS= rm.c stat_flags.c
LINKS= ${BINDIR}/rm ${BINDIR}/unlink
MLINKS= rm.1 unlink.1
.PATH: ${.CURDIR}/../ls
.include <bsd.prog.mk>
+19 -1
View File
@@ -39,12 +39,15 @@
.Dt RM 1
.Os
.Sh NAME
.Nm rm
.Nm rm ,
.Nm unlink
.Nd remove directory entries
.Sh SYNOPSIS
.Nm rm
.Op Fl dfiPRrvW
.Ar file ...
.Nm unlink
.Ar file
.Sh DESCRIPTION
The
.Nm
@@ -116,6 +119,16 @@ It is an error to attempt to remove the files
or
.Dq .. .
.Pp
When the utility is called as
.Nm unlink ,
only one argument,
which must not be a directory,
may be supplied.
No options may be supplied in this simple mode of operation,
which performs an
.Xr unlink 2
operation on the passed argument.
.Pp
The
.Nm
utility exits 0 if all of the named files or file hierarchies were removed,
@@ -193,6 +206,11 @@ option if such behavior is desired. This follows the historical
behavior of
.Nm
with respect to directories.
.Pp
The simplified
.Nm unlink
command conforms to
.St -susv2 .
.Sh HISTORY
A
.Nm
+21 -1
View File
@@ -86,6 +86,24 @@ main(argc, argv)
char *argv[];
{
int ch, rflag;
char *p;
/*
* Test for the special case where the utility is called as
* "unlink", for which the functionality provided is greatly
* simplified.
*/
if ((p = rindex(argv[0], '/')) == NULL)
p = argv[0];
else
++p;
if (strcmp(p, "unlink") == 0) {
if (argc == 2) {
rm_file(&argv[1]);
exit(eval);
} else
usage();
}
Pflag = rflag = 0;
while ((ch = getopt(argc, argv, "dfiPRrvW")) != -1)
@@ -472,6 +490,8 @@ void
usage()
{
(void)fprintf(stderr, "usage: rm [-f | -i] [-dPRrvW] file ...\n");
(void)fprintf(stderr, "%s\n%s\n",
"usage: rm [-f | -i] [-dPRrvW] file ...",
" unlink file");
exit(EX_USAGE);
}
+1
View File
@@ -109,6 +109,7 @@ setalias(name, val)
ap->val[len+1] = '\0';
}
#endif
ap->flag = 0;
ap->next = *app;
*app = ap;
INTON;
+1 -1
View File
@@ -342,7 +342,7 @@ getpwd()
INTOFF;
if (pipe(pip) < 0)
error("Pipe call failed");
error("Pipe call failed: %s", strerror(errno));
jp = makejob((union node *)NULL, 1);
if (forkshell(jp, (union node *)NULL, FORK_NOJOB) == 0) {
(void) close(pip[0]);
+1
View File
@@ -51,6 +51,7 @@ static const char rcsid[] =
#include "options.h"
#include "output.h"
#include "error.h"
#include "nodes.h" /* show.h needs nodes.h */
#include "show.h"
#include "trap.h"
#include <signal.h>
+31 -4
View File
@@ -45,6 +45,7 @@ static const char rcsid[] =
#include <signal.h>
#include <unistd.h>
#include <sys/wait.h> /* For WIFSIGNALED(status) */
#include <errno.h>
/*
* Evaluate a command.
@@ -488,7 +489,7 @@ evalpipe(n)
if (lp->next) {
if (pipe(pip) < 0) {
close(prevfd);
error("Pipe call failed");
error("Pipe call failed: %s", strerror(errno));
}
}
if (forkshell(jp, lp->n, n->npipe.backgnd) == 0) {
@@ -556,7 +557,7 @@ evalbackcmd(n, result)
} else {
exitstatus = 0;
if (pipe(pip) < 0)
error("Pipe call failed");
error("Pipe call failed: %s", strerror(errno));
jp = makejob(n, 1);
if (forkshell(jp, n, FORK_NOJOB) == 0) {
FORCEINTON;
@@ -611,12 +612,14 @@ evalcommand(cmd, flags, backcmd)
volatile int e;
char *lastarg;
int realstatus;
int do_clearcmdentry;
#if __GNUC__
/* Avoid longjmp clobbering */
(void) &argv;
(void) &argc;
(void) &lastarg;
(void) &flags;
(void) &do_clearcmdentry;
#endif
/* First expand the arguments. */
@@ -625,6 +628,7 @@ evalcommand(cmd, flags, backcmd)
arglist.lastp = &arglist.list;
varlist.lastp = &varlist.list;
varflag = 1;
do_clearcmdentry = 0;
oexitstatus = exitstatus;
exitstatus = 0;
for (argp = cmd->ncmd.args ; argp ; argp = argp->narg.next) {
@@ -687,8 +691,29 @@ evalcommand(cmd, flags, backcmd)
* is present
*/
for (sp = varlist.list ; sp ; sp = sp->next)
if (strncmp(sp->text, PATH, sizeof(PATH) - 1) == 0)
if (strncmp(sp->text, PATH, sizeof(PATH) - 1) == 0) {
path = sp->text + sizeof(PATH) - 1;
/*
* On `PATH=... command`, we need to make
* sure that the command isn't using the
* non-updated hash table of the outer PATH
* setting and we need to make sure that
* the hash table isn't filled with items
* from the temporary setting.
*
* It would be better to forbit using and
* updating the table while this command
* runs, by the command finding mechanism
* is heavily integrated with hash handling,
* so we just delete the hash before and after
* the command runs. Partly deleting like
* changepatch() does doesn't seem worth the
* bookinging effort, since most such runs add
* diretories in front of the new PATH.
*/
clearcmdentry(0);
do_clearcmdentry = 1;
}
find_command(argv[0], &cmdentry, 1, path);
if (cmdentry.cmdtype == CMDUNKNOWN) { /* command not found */
@@ -728,7 +753,7 @@ evalcommand(cmd, flags, backcmd)
if (flags & EV_BACKCMD) {
mode = FORK_NOJOB;
if (pipe(pip) < 0)
error("Pipe call failed");
error("Pipe call failed: %s", strerror(errno));
}
if (forkshell(jp, cmd, mode) != 0)
goto parent; /* at end of routine */
@@ -886,6 +911,8 @@ parent: /* parent process gets here (if we forked) */
out:
if (lastarg)
setvar("_", lastarg, 0);
if (do_clearcmdentry)
clearcmdentry(0);
popstackmark(&smark);
}
+1 -2
View File
@@ -104,7 +104,6 @@ STATIC void tryexec __P((char *, char **, char **));
STATIC void execinterp __P((char **, char **));
#endif
STATIC void printentry __P((struct tblentry *, int));
STATIC void clearcmdentry __P((int));
STATIC struct tblentry *cmdlookup __P((char *, int));
STATIC void delete_cmd_entry __P((void));
@@ -640,7 +639,7 @@ changepath(newval)
* PATH which has changed.
*/
STATIC void
void
clearcmdentry(firstchange)
int firstchange;
{
+1
View File
@@ -69,3 +69,4 @@ void addcmdentry __P((char *, struct cmdentry *));
void defun __P((char *, union node *));
int unsetfunc __P((char *));
int typecmd __P((int, char **));
void clearcmdentry __P((int));
+5 -4
View File
@@ -315,7 +315,7 @@ done:
goto lose;
*p = c;
while ((c = *home++) != '\0') {
if (quotes && SQSYNTAX[c] == CCTL)
if (quotes && c >= 0 && SQSYNTAX[(int)c] == CCTL)
STPUTC(CTLESC, expdest);
STPUTC(c, expdest);
}
@@ -478,7 +478,7 @@ expbackq(cmd, quoted, flag)
}
lastc = *p++;
if (lastc != '\0') {
if (quotes && syntax[lastc] == CCTL)
if (quotes && lastc >= 0 && syntax[(int)lastc] == CCTL)
STPUTC(CTLESC, dest);
STPUTC(lastc, dest);
}
@@ -694,7 +694,8 @@ again: /* jump here after setting a variable with ${var=text} */
}
else {
while (*val) {
if (quotes && syntax[*val] == CCTL)
if (quotes && *val >= 0 &&
syntax[(int)*val] == CCTL)
STPUTC(CTLESC, expdest);
STPUTC(*val++, expdest);
}
@@ -865,7 +866,7 @@ varvalue(name, quoted, allow_split)
if (allow_split) { \
syntax = quoted? DQSYNTAX : BASESYNTAX; \
while (*p) { \
if (syntax[*p] == CCTL) \
if (*p >= 0 && syntax[(int)*p] == CCTL) \
STPUTC(CTLESC, expdest); \
STPUTC(*p++, expdest); \
} \
+1 -2
View File
@@ -232,7 +232,6 @@ preadbuffer()
char *p, *q;
int more;
int something;
extern EditLine *el;
char savec;
if (parsefile->strpush) {
@@ -384,7 +383,7 @@ setinputfile(fname, push)
INTOFF;
if ((fd = open(fname, O_RDONLY)) < 0)
error("Can't open %s", fname);
error("Can't open %s: %s", fname, strerror(errno));
if (fd < 10) {
fd2 = copyfd(fd, 10);
close(fd);
+5 -3
View File
@@ -594,7 +594,7 @@ forkshell(jp, n, mode)
if (pid == -1) {
TRACE(("Fork failed, errno=%d\n", errno));
INTON;
error("Cannot fork");
error("Cannot fork: %s", strerror(errno));
}
if (pid == 0) {
struct job *p;
@@ -636,7 +636,8 @@ forkshell(jp, n, mode)
! fd0_redirected_p ()) {
close(0);
if (open("/dev/null", O_RDONLY) != 0)
error("Can't open /dev/null");
error("Can't open /dev/null: %s",
strerror(errno));
}
}
#else
@@ -647,7 +648,8 @@ forkshell(jp, n, mode)
! fd0_redirected_p ()) {
close(0);
if (open("/dev/null", O_RDONLY) != 0)
error("Can't open /dev/null");
error("Can't open /dev/null: %s",
strerror(errno));
}
}
#endif
+1 -1
View File
@@ -300,7 +300,7 @@ readcmdfile(name)
if ((fd = open(name, O_RDONLY)) >= 0)
setinputfd(fd, 1);
else
error("Can't open %s", name);
error("Can't open %s: %s", name, strerror(errno));
INTON;
cmdloop(0);
popfile();
-4
View File
@@ -187,10 +187,6 @@ popstackmark(mark)
INTOFF;
while (stackp != mark->stackp) {
if (stackp == NULL) {
write(2, "Oops, stackp deleted\n", 21);
abort();
}
sp = stackp;
stackp = sp->prev;
ckfree(sp);
+4 -1
View File
@@ -348,6 +348,9 @@ static const struct limits limits[] = {
#endif
#ifdef RLIMIT_SWAP
{ "swap limit", "kbytes", RLIMIT_SWAP, 1024, 'w' },
#endif
#ifdef RLIMIT_SBSIZE
{ "sbsize", "bytes", RLIMIT_SBSIZE, 1, 'b' },
#endif
{ (char *) 0, (char *)0, 0, 0, '\0' }
};
@@ -367,7 +370,7 @@ ulimitcmd(argc, argv)
struct rlimit limit;
what = 'f';
while ((optc = nextopt("HSatfdsmcnul")) != '\0')
while ((optc = nextopt("HSatfdsmcnulb")) != '\0')
switch (optc) {
case 'H':
how = HARD;
+2 -1
View File
@@ -66,6 +66,7 @@ static const char rcsid[] =
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#include <errno.h>
/*
@@ -478,7 +479,7 @@ ckfopen(file, mode)
FILE *fp;
if ((fp = fopen(file, mode)) == NULL) {
fprintf(stderr, "Can't open %s\n", file);
fprintf(stderr, "Can't open %s: %s\n", file, strerror(errno));
exit(2);
}
return fp;
+4 -3
View File
@@ -56,6 +56,7 @@ static const char rcsid[] =
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#ifdef __STDC__
#include <stdarg.h>
#else
@@ -123,7 +124,7 @@ main(argc, argv)
if (argc != 3)
error("usage: mknodes file");
if ((infp = fopen(argv[1], "r")) == NULL)
error("Can't open %s", argv[1]);
error("Can't open %s: %s", argv[1], strerror(errno));
while (readline()) {
if (line[0] == ' ' || line[0] == '\t')
parsefield();
@@ -232,9 +233,9 @@ output(file)
char *p;
if ((patfile = fopen(file, "r")) == NULL)
error("Can't open %s", file);
error("Can't open %s: %s", file, strerror(errno));
if ((hfile = fopen("nodes.h", "w")) == NULL)
error("Can't create nodes.h");
error("Can't create nodes.h: %s", strerror(errno));
if ((cfile = fopen("nodes.c", "w")) == NULL)
error("Can't create nodes.c");
fputs(writer, hfile);
+1 -1
View File
@@ -350,7 +350,7 @@ print(name)
*/
static char *macro[] = {
"#define is_digit(c)\t((is_type+SYNBASE)[c] & ISDIGIT)",
"#define is_digit(c)\t((c >= 0 && is_type+SYNBASE)[c] & ISDIGIT)",
"#define is_alpha(c)\t((c) != PEOF && ((c) < CTLESC || (c) > CTLENDARI) && isalpha((unsigned char) (c)))",
"#define is_name(c)\t((c) != PEOF && ((c) < CTLESC || (c) > CTLENDARI) && ((c) == '_' || isalpha((unsigned char) (c))))",
"#define is_in_name(c)\t((c) != PEOF && ((c) < CTLESC || (c) > CTLENDARI) && ((c) == '_' || isalnum((unsigned char) (c))))",
+15 -6
View File
@@ -868,6 +868,7 @@ readtoken1(firstc, syntax, eofmark, striptabs)
int parenlevel; /* levels of parens in arithmetic */
int oldstyle;
char const *prevsyntax; /* syntax before arithmetic */
int synentry;
#if __GNUC__
/* Avoid longjmp clobbering */
(void) &out;
@@ -879,6 +880,7 @@ readtoken1(firstc, syntax, eofmark, striptabs)
(void) &oldstyle;
(void) &prevsyntax;
(void) &syntax;
(void) &synentry;
#endif
startlinno = plinno;
@@ -906,7 +908,13 @@ readtoken1(firstc, syntax, eofmark, striptabs)
CHECKEND(); /* set c to PEOF if at end of here document */
for (;;) { /* until end of line or end of word */
CHECKSTRSPACE(3, out); /* permit 3 calls to USTPUTC */
switch(syntax[c]) {
if (c < 0 && c != PEOF)
synentry = CWORD;
else
synentry = syntax[c];
switch(synentry) {
case CNL: /* '\n' */
if (syntax == BASESYNTAX)
goto endword; /* exit outer loop */
@@ -937,10 +945,11 @@ readtoken1(firstc, syntax, eofmark, striptabs)
else
setprompt(0);
} else {
if (dblquote && c != '\\' && c != '`' && c != '$'
&& (c != '"' || eofmark != NULL))
if (dblquote && c != '\\' &&
c != '`' && c != '$' &&
(c != '"' || eofmark != NULL))
USTPUTC('\\', out);
if (SQSYNTAX[c] == CCTL)
if (c >= 0 && SQSYNTAX[c] == CCTL)
USTPUTC(CTLESC, out);
else if (eofmark == NULL)
USTPUTC(CTLQUOTEMARK, out);
@@ -1239,7 +1248,7 @@ badsub: synerror("Bad substitution");
} else {
pungetc();
}
if (dblquote || arinest)
if (subtype != VSLENGTH && (dblquote || arinest))
flags |= VSQUOTE;
*(stackblock() + typeloc) = subtype | flags;
if (subtype != VSNORMAL)
@@ -1457,7 +1466,7 @@ noexpand(text)
continue;
if (c == CTLESC)
p++;
else if (BASESYNTAX[c] == CCTL)
else if (c >= 0 && BASESYNTAX[(int)c] == CCTL)
return 0;
}
return 1;
+1 -1
View File
@@ -246,7 +246,7 @@ openhere(redir)
int len = 0;
if (pipe(pip) < 0)
error("Pipe call failed");
error("Pipe call failed: %s", strerror(errno));
if (redir->type == NHERE) {
len = strlen(redir->nhere.doc->narg.text);
if (len <= PIPESIZE) {
+3 -1
View File
@@ -1746,7 +1746,7 @@ for commands and tracked aliases
the complete pathname of the command is printed.
.It Xo
.Ic ulimit
.Op Fl HSacdflmnust
.Op Fl HSabcdflmnust
.Op Ar limit
.Xc
Set or display resource limits (see
@@ -1786,6 +1786,8 @@ The remaining options specify which resource value is to be
displayed or modified.
They are mutually exclusive.
.Bl -tag -width Ds
.It Fl b Ar sbsize
The maximum size of socket buffer usage, in bytes.
.It Fl c Ar coredumpsize
The maximal size of core dump files, in 512-byte blocks.
.It Fl d Ar datasize
+1 -1
View File
@@ -420,7 +420,7 @@ opentrace() {
scopy("./trace", s);
#endif /* not_this_way */
if ((tracefile = fopen(s, "a")) == NULL) {
fprintf(stderr, "Can't open %s\n", s);
fprintf(stderr, "Can't open %s: %s\n", s, strerror(errno));
return;
}
#ifdef O_APPEND
+2 -1
View File
@@ -89,7 +89,8 @@ number seconds later:
.Dl (sleep 1800; sh command_file >& errors)&
.Pp
This incantation would wait a half hour before
running the script command_file. (See the
running the script command_file.
(See the
.Xr at 1
utility.)
.Pp
+4 -2
View File
@@ -313,7 +313,8 @@ If
is set, echo control characters as ^X. Otherwise control characters
echo as themselves.
.It Cm echoprt Pq Fl echoprt
For printing terminals. If set, echo erased characters backwards within ``\\''
For printing terminals.
If set, echo erased characters backwards within ``\\''
and ``/''. Otherwise, disable this feature.
.It Cm noflsh Pq Fl noflsh
Disable (enable) flush after
@@ -467,7 +468,8 @@ performed by either the terminal hardware or by the remote side connected
to a pty.
.It Cm raw Pq Fl raw
If set, change the modes of the terminal so that no input or output processing
is performed. If unset, change the modes of the terminal to some reasonable
is performed.
If unset, change the modes of the terminal to some reasonable
state that performs input and output processing. Note that since the
terminal driver no longer has a single
.Dv RAW
+2 -1
View File
@@ -94,7 +94,8 @@ True if
.Ar file
exists and is a symbolic link.
This operator is retained for compatibility with previous versions of
this program. Do not rely on its existence; use
this program.
Do not rely on its existence; use
.Fl L
instead.
.It Fl k Ar file
+6 -1
View File
@@ -163,8 +163,13 @@ main(argc, argv)
char **argv;
{
int res;
char *p;
if (strcmp(argv[0], "[") == 0) {
if ((p = rindex(argv[0], '/')) == NULL)
p = argv[0];
else
p++;
if (strcmp(p, "[") == 0) {
if (strcmp(argv[--argc], "]"))
errx(2, "missing ]");
argv[argc] = NULL;
+2 -2
View File
@@ -335,8 +335,8 @@ Department of Computing, Imperial College, London, UK.
Department of Computer Science, Columbia University,
New York, USA.
.Pp
.An Other authors and contributors to am-utils are listed in the
.Nm AUTHORS
Other authors and contributors to am-utils are listed in the
.Pa AUTHORS
file distributed with am-utils.
.Sh HISTORY
The
+2 -2
View File
@@ -678,8 +678,8 @@ Department of Computer Science, Columbia University, New York, USA.
.An Jan-Simon Pendry Aq [email protected] ,
Department of Computing, Imperial College, London, UK.
.Pp
.An Other Authors and contributers to am-utils are listed in the
.Nm AUTHORS
Other authors and contributers to am-utils are listed in the
.Pa AUTHORS
file distributed with am-utils.
.Sh HISTORY
The
+8 -2
View File
@@ -463,7 +463,13 @@ check_pos:
break;
case '0':
zero_flag = TRUE;
/*
* Only turn on zero_flag if we haven't seen
* the field width or precision yet. Otherwise,
* screws up floating point formatting.
*/
if (cur == & fw)
zero_flag = TRUE;
if (lj)
goto retry;
/* FALL through */
@@ -2006,7 +2012,7 @@ NODE *tree;
free_temp(tmp);
if (do_lint) {
if (uval < 0)
if (d < 0)
warning("compl(%lf): negative value will give strange results", d);
if (double_to_int(d) != d)
warning("compl(%lf): fractional value will be truncated", d);
+610
View File
@@ -1,3 +1,613 @@
--- 8.2.3-REL released ---
1139. [bug] inet_{net_,}ntop() had an off-by-one error.
1138. [bug] purge_nonglue() should only be fatal on master
servers.
1138. [port] add include/errs.h to various ports.
winnt: #1130 caused linkage failures.
--- 8.2.3-RC5 released ---
1137. [bug] rfc1034 escape sequences not processed when replaying
updates.
1136. [port] winnt: named nolonger creates resolv.conf.
1135. [bug] fixup from #1130/1132.
1134. [port] winnt: SIOCGIFADDR, SIOCGIFFLAGS, SIOCGIFDSTADDR and
mkstemp() fixes.
1133. [bug] sorting of SIG/non-SIG records prior to rrset ordering
of was broken.
--- 8.2.3-RC4 released ---
1132. [lint] more #1130.
1131. [support] TTL 0 is now allowed in zone files.
1130. [lint] massive, massive delinting from "gcc -Wall".
1129. [support] "max_log_size_ixfr" is now a scaled number (4m, etc).
1128. [contrib] updated mdnkit.
1127. [port] winnt: support for more interfaces, dnskeygen.
1126. [bug] resolver: close cached file descriptors when socket()
fails.
1125. [bug] when ns_addr_list is rotated, rotate cached file
descriptors.
1124. [bug] the select() timeout was not always being correctly
computed.
1123. [bug] changes to ns_addr_list were not being reflected into
our private copy.
1122. [port] sco: DESTRUN and DESTSBIN can't be the same.
1121. [cleanup] re-word "server is ??? priming" status message.
1120. [bug] more #1108 fine tuning.
1119. [bug] "delete all" RRs were not being printed correctly.
1118. [port] winnt: always install the named executable
1117. [port] linux: turn off returning ICMP port unreachables.
1116. [bug] minor tweak to #1108
1115. [bug] fail if tsig transfers are requested but we can't
communicate the keys to named-xfer.
1114. [bug] remove extraneous semi-colon from ns_parser.y
--- 8.2.3-T9B released ---
1113. [support] show config file name and age in "ndc status"
1112. [support] "ndc status" no longer mentions loading of config.
1111. [port] some versions of sunos don't have _POSIX_PATH_MAX
1110. [bug] zones with Null keys at delegation incorreclty rejected.
1109. [support] named-xfer was bombing on non-TSIG'd zones
1108. [support] ignore queries that come in during long synch ops
1107. [func] allow the default syslog facility to be set by
adding -DISC_FACILITY=<value> to CDEBUG in Makefile.set.
1106. [func] host statistics can now be cleared after they are
dumped. Use "ndc stats clear".
1105. [func] host-statistics-max can be used to set a upper bound
on the number hosts we collect statistics against.
1104. [func] the source of a record is no longer dependent on
setting "host-statistics yes;"
1103. [doc] winnt: updated port specific notes.
1102. [port] winnt: BINDctrl fixes
1101. [port] winnt: install fixes
1100. [bug] named-xfer some memory allocations were not checked.
1099. [bug] more missing INIT_LINK's.
1098. [support] force gmake to fail if the sub-shell fails.
1097. [port] winnt: lower the logging level so that BINDCtrl status
checks do not cause the eventlog to fillup.
1096. [bug] don't pass '-i' to named-xfer unless we are going
to attempt a IXFR.
1095. [bug] dig: report missing arguements.
1094. [port] winnt: more cylink fixes, updated install.
1093. [bug] winnt: build lib cylink correctly
1092. [cleanup] winnt: snmpmib.c is nolonger required
1091. [support] winnt: workout the install directory.
1090. [bug] winnt: install was copying old over new.
1089. [bug] winnt: fix copyright for nameserver.c
winnt: snmpmib.c not needed in libbind.dsp
1088. [bug] #1053 still contained NAPTR problems.
--- 8.2.3-T8B released ---
1087. [port] sunos/gcc _POSIX_PATH_MAX isn't defined when it should
be.
1086. [doc] malformed man page for heap.
1085. [bug] ixfr responses to zones we don't server were malformed.
1084. [bug] INIT_LINK before APPEND in four more places.
1083. [support] only log "no options before zone" config error
before FIRST zone [kjd].
1082. [bug] have client-side IXFR work in single answer mode [kjd].
1081. [bug] have server-side IXFR work in single answer mode [kjd].
1080. [support] still do IXFR's even when a file name is not specified
for zone [kjd].
1079. [support] need to have a file name for a hints zone [kjd].
1078. [port] WinNT interface enumeration fixes from Danny Mayer.
1077. [support] format string audit.
1076. [port] now recognize RH7.0's "strndup()"
1075. [contrib] add contrib/resparse-1.3 [Henning Schulzrinne @CU]
1074. [support] INSIST that lists are correctly managed.
1073. [port] Win/NT port work from Danny Mayer. Dig, host and
nslookup have been added.
1072. [port] work around a gcc bug on solaris.
1071. [bug] memory leak in res_nsendsigned().
1070. [bug] We were accepting non syntactically valis SOA records.
1069. [port] movefile() is now part of libbind as isc_movefile(),
remaining rename() calls converted to isc_movefile().
1068. [bug] purge the zone from memory if an error is detected
on loading.
1067. [bug] reload the parent zone if loading the child zone fails,
the parent zone may otherwise be corrupted.
1066. [bug] refresh/retry timer need to be reset after IXFR
1065. [bug] IXFR change list could be freed to early.
1064. [bug] unchecked memget in sx_send_ixfr().
1063. [bug] fix #1041 was incomplete.
1062. [bug] host printed out address records multiple times if
they were at the end of a CNAME chain.
1061. [bug] host failed to look for A records for the second an
subsequent entries in the search list when using
the default lookup.
1060. [bug] $GENERATE did not reject a out of zone LHS.
1059. [bug] res_findzonecut() contained a bad debugging printf.
1058. [bug] possible NULL pointer de-reference in
dst_key_to_buffer().
1057. [doc] document that bogus causes anti-alias processing.
1056. [bug] ns_sprintrrf() could incorrectly print "." as "@".
1055. [bug] aa was being cleared on notify "queries" prior to
testing.
1054. [bug] NAPTR records were using name compression.
1053. [bug] NAPTR records were not being printed correctly.
1052. [bug] UPDATES w/ NAPTR records were failing.
1051. [contrib] YADDAS: Yet another DNS database awk script.
1050. [bug] named-bootconf did not handle cacheless secondary/stub
zones. NOTE cacheless secondary/stub zones are not
recommended.
1049. [bug] buffer overruns by 1 in getnameinfo().
1048. [bug] ns_ctl_install() was corrupting the server_controls
list.
1047. [bug] req_iquery() wasn't doing a final update on buflenp.
1046. [port] Win/NT port improved by its author.
--- 8.2.3-T7B released ---
1045. [bug] forwarded and initiated TCP queries weren't affected
by the "query-source" config option, and weren't being
set nonblocking.
1044. [support] add HITCOUNTS compile-time option (from [email protected]).
1043. [bug] dnsquery's command line args could overflow buffers.
1042. [doc] maintain-ixfr-base had wrong description in
named.conf(5).
1041. [bug] host assumed axfr returned "one-answer" responses.
1040. [bug] add d_rcnt processing to update processing.
1039. [bug] qcomp wasn't stable.
1038. [port] solaris needs a strerror that does not return NULL,
call isc_strerror instead.
1037. [support] soften #1025 -- continue to accept !AA notify req's.
1036. [debug] add TKEY debugging support.
1035. [bug] ndc's "help" command worked in signal but not channel
mode.
1034. [bug] loc_ntoa() failed to correctly print altitudes in the
range [-0.99 .. -0.01].
1033. [port] Win/NT portability infusion from Larry @NortelNetworks.
1032. [bug] fix minor signal buglet introduced in #1029.
1031. [bug] nslookup now correctly refuses to accept qtypes AXFR
or IXFR. (use nslookup "ls", not queries, for this.)
1030. [protocol] nslookup "ls" command now uses writev() rather than two
write()'s, to get msglen and query into same tcp seg.
--- 8.2.3-T6B released ---
1029. [bug] incredibly busy systems could starve handle_needs().
1028. [protocol] unrecognized TSIG was returning NOERROR (now NOTAUTH).
1027. [support] INSIST(), ENSURE(), et al, now always have sideeffects.
1026. [port] some kernels bogusly return tv_usec>1000000 from
gettimeofday(). panic and dump core when this happens.
1025. [proto] NOTIFY messages should have AA.
1024. [bug] we were unwilling to use the last 10 octets of a
response buffer in certain transaction types.
1023. [port] HP-UX 10.20 was looping inside contrib/dnssigner.
1022. [port] ensure that all handled signals are unblocked.
1021. [bug] the "host" command wasn't properly printing SRV RR's.
1020. [contrib] new "updatehosts" (V1.1.0) contributed by author.
1019. [port] separate CFLAGS and CPPFLAGS for unusual builds.
1018. [bug] When maintain_ixfr_base is set to "no" a zones IXFR
file was still being written too.
1017. [doc] resolver(3) was out of date with respect to recent API
changes.
1016. [bug] nslookup wasn't properly printing SIG RR's.
1015. [bug] when merging group information gr_name and gr_passwd
could be left pointing at freed memory.
1014. [bug] iquery: DoS (potential), information leak.
1013. [bug] mangled hostent structures returned by
gethostbyname_r() and friends.
1012. [doc] add named-bootconf example to INSTALL.
1011. [bug] if spawnxfer() fails we should return immediately.
1010. [bug] bad responses to the initial IXFR/SOA query could
result in using an uninitalised variable.
1009. [port] Add support for darwin / Mac OS X
1008. [doc] specify allow-query default in named.conf.
1007. [bug] only set STREAM_AXFRIXFR if the original query is
an IXFR.
--- 8.2.3-T5B (RC3) released ---
1006. [port] Windows/NT does not have fchown().
1005. [bug] RD was sometimes left set, inappropriately.
1004. [bug] cached NXT's were corrupted.
1003. [bug] correction to #997.
1002. [bug] file descriptor leak in res_nclose().
1001. [port] some builds were too fast.
--- 8.2.3-T4B (RC2) released ---
1000. [bug] #996 was wrongly implemented; replacement fix.
--- 8.2.3-T3B released ---
999. [support] named now makes an effort to create its files with
ownership as specified by -u and -g command options.
998. [support] show version number in NOTIFY log messages.
997. [support] forwarders are now used in order by measured RTT.
996. [protocol] if answering ixfr with full zone, used qtype axfr.
995. [bug] "dig -b" was broken due to missing switch "break;"
994. [bug] named-xfer did not handle empty question sections.
993. [bug] TSIG AXFR was completely broken in DiG.
992. [bug] OPTION_USE_IXFR and OPTION_MAINTAIN_IXFR_BASE had
non-single-bit flag values in src/bin/named/ns_defs.h.
991. [protocol] send A6 glue records in xfr.
990. [bug] we could loose track of a bottom of zone cut if the
write buffer filled up at just the correct moment.
989. [bug] apply to "fetch-glue no;" to notify processing. need
to add A records that would be found this way w/
also-notify.
988. [support] report expired zones when detected in maintainence
pass.
987. [feature] "ndc reconfig -noexpired" skip attempts to load
expired zoned when reconfiguring.
986. [bug] pushlev only needs to be called for axfr/zxfr not ixfr.
--- 8.2.3-T2B released ---
985. [support] remove "view" command from nslookup (it used mktemp()).
984. [bug] always restart processing query from scratch if we
have chased a CNAME as we might still have the answer
in the cache once the CNAME has been resolved.
983. [support] "notify from non-master server" is now debug, not info.
982. [bug] rollback the compression pointers array when a
RRset/RR does not fit.
981. [port] decunix: typedef (u_)int#m_t
980. [bug] mishandled memget failure w/ TCP connections.
979. [bug] we were failing to call ns_stopxfrs() before calling
purge_zone() in some cases.
978. [port] sco50: setsockopt(SO_REUSEADDR) fails on unix domain
sockets
977. [bug] we should be returning notimpl for update forwarding
rather than refused. a client receiving refused
should terminate the update attempt. notimpl should
just cause the client to skip to the next server.
976. [bug] some stats weren't getting incremented, & added a few.
975. [support] SLAVE_FORWARD is now redundant and has been removed.
974. [port] ultrix with vendor's y2k patch explicitly desupported.
973. [bug] some field names added in #935 conflicted with macros.
972. [support] restore heartbeat notifies.
971. [bug] out of order updates in log.
970. [port] solaris: add ipv6 interface scanning support.
969. [bug] post process a zone load to remove any non-glue at
or below bottom of zone.
968. [bug] TSIGs failed to verify if the key name was compressed.
967. [bug] zones signed by the BIND 9 signer failed to load.
--- 8.2.3-T1A released ---
966. [bug] nslookup and dig misprinted root zone in $ORIGIN.
965. [feature] dig's command line input buffer was rather small.
964. [bug] make res_nsearch() behave like res_search() of olde.
963. [bug] res_debug::do_section() can no longer spin all VM.
962. [bug] another almost-complete rewrite of IXFR from kjd (462)
961. [bug] acl "none" now fails to match but doesn't end search.
960. [bug] more hesiod library fixes from danny.
959. [doc] christos fixed several man page typos and brainos.
958. [bug] getnameinfo() should accept experimental/multicast.
957. [port] ultrix again. "cd" now presumed to be silent again.
956. [bug] multiline was not being cleared correctly.
955. [bug] explicit TTL on SOA records were being replaced with
soa minimum.
954. [bug] cannot load a signed root zone.
953. [bug] memory overrun in set_zone_ixfr_file().
952. [bug] errs was not being correctly adjusted if the included
master file did not exist in db_load().
951. [bug] contrib/dns_signer/signer: write_trim_name
array bounds write error.
950. [bug] hesiod: ctx->res was not being initalised.
949. [port] aix32: add prand_conf.h and define WCOREDUMP
948. [bug] fixed logic error in a number of expressions causing
res_ninit() not to be called when it should be.
947. [bug] sanity check in dst_read_key() wasn't.
946. [port] freebsd: threaded library support.
945. [bug] wrong file name logged in ixfr_have_log().
944. [doc] add forwarders to zone types master/slave/stub in
named.conf man page.
943. [bug] raise CNAME and OTHER / multiple CNAME logging to
warning.
942. [bug] bad referrals logged for forwarders.
941. [bug] lame server detection wasn't checking for SOA record.
940. [clarity] unapproved -> denied in log messages.
939. [bug] reload_master and purgeandload should write the zone
if it has been updated.
938. [bug] update and ixfr logs could get corrupted. fseek()
before ftell() on fopen(, "a+") file.
937. [support] allow parallel makes to work.
936. [protocol] add preliminary A6 glue recognition in ns_req.
935. [cleanup] res_nsend() segmented into multiple functions for
readability. also fixed two file descriptor leaks.
CAN_RECONNECT is gone, keep one socket per nameserver.
934. [bug] Perror and Aerror where incorrect if DEBUG is not
defined.
933. [port] cygwin port added
932. [port] sco42 does not have unix domain sockets or gethostid.
931. [bug] eventlib was not handling unix domain sockets
correctly.
930. [bug] we wern't using all the potential compression pointers
in the question section.
929. [bug] we were accepting updates (adds) with illegal ttls.
928. [bug] if we manage to get a illegal ttl stored, print it
unsigened.
927. [port] hpux: (11.* 10.30) Makefile.set.gcc
926. [port] hpux10: gcc needs -D_HPUX_SOURCE and -fPIC
925. [protocol] when a slave loads it should notify others (RFC 1996).
924. [port] sunos solaris: #define NEED_SECURE_DIRECTORY to
secure the directory containing unix domain socket
rather than the socket itself.
923. [support] shutup "make clean" about missing threaded directories.
922. [bug] removing an cached zone file then performing a
"ndc reload zone" should force a zone transfer.
921. [bug] nsupdate: listuprec was not being initalised.
920. [port] aix4: Makefile.set.gcc
aix4: __P was being defined by <net/radix.h>
919 [port] linux: remove one level of symbolic linkage when
performing make links on port/linux/include
918. [bug] update prerequisite could match w/ wildcard.
917. [port] irix: make the current IRIX release (6.5) work by
not patching res_debug.c. see INSTALL if you have
problems with 6.3.
916. [bug] removing / changing a zone type could result in
Z_NOTIFY being cleared / tested against the wrong zone.
915. [bug] evNewWaitList() was not maintaining the prev chain.
914. [bug] signal EWOULDBLOCK if EV_POLL'ing with no timers.
913. [bug] input could get lost on the server side of a ctl sock.
912. [bug] nsupdate now allows explicit 0 TTL's on added RR's.
911. [bug] gethostbyname() should not return duplicate addresses.
910. [bug] address-sorting logic was exiting early.
909. [bug] dig wasn't respecting the +ti and +ret arguments.
908. [contrib] Tony Stoneley sent us an updated misc/makezones.
907. [port] winnt fixes from Larry at Nortel.
906. [bug] res_findzonecut() failed if the NS referred to a CNAME.
905. [doc] Minor fix to doc/man/Makefile for getnameinfo
904. [bug] bin/host wasn't looking up MX records if no
-t flags were passed to it.
--- 8.2.2-P6 released ---
903. [bug] divide by zero bug when querying for SIG records from
a secure zone.
902. [support] don't attempt to set q_fzone if we won't be using it.
901. [support] delay notify timer setting until all zones have been
loaded.
900. [port] hpux10 fix call to bison; sco call bison consistenly.
899. [bug] dynamically allocate buffer used to display RR rather
than uses a fixed sized one. grow as needed.
898. [bug] if truncation caused no RR's to appear in the answer we
mis-classified the answer on a NODATA.
897. [support] descriptors used by named should not be inherited by
named-xfer.
896. [contrib] add contrib/adm/adm-nxt, an exploit for the NXT bug
in 8.2 and 8.2.1. as before, we do not recommend its
use, and we do recommend that you run the latest BIND.
--- 8.2.2-P5 released ---
895. [port] minor NT build and documentation improvements.
+17 -5
View File
@@ -1,23 +1,26 @@
Systems it is known to compile and run on:
BSD/OS 3.1, 4.0.1
FreeBSD 3.1, 3.2, 3.3
FreeBSD 3.3, 3.4
RH Linux 5.2 (don't use "make links" when building, though)
Debian GNU/Linux 2.2.9 ("unreleased")
Digital UNIX 3.2C, 4.0, 5.0
NetBSD/i386 1.3.2, 1.4
Darwin 1.x (Mac OS X)
SunOS 5.6 (Solaris 2.6), SunOS 5.7 (Solaris 7)
SCO UnixWare 7.0, 7.0.1, 7.1
IRIX 6.5
Systems it has been known in the past to compile and run on:
AIX 4.x
A/UX 3.1.1
Digital ULTRIX 4.5
Digital ULTRIX 4.5 (without Compaq's Y2K kit installed)
HP MPE
HP-UX 9.x, 10.20
IRIX 5.3, 6.2, 6.4
LynxOS
FreeBSD 3.1, 3.2
NetBSD 1.2, 1.3
OpenBSD 2.1
QNX
@@ -139,6 +142,12 @@ Operating System Notes
The kit should compile even if you have intalled the KAME
IPv6 kit.
IRIX
build problems have been reported w/ IRIX 6.3, res_debug.c
and #include <stdlib.h>. You may need to comment out
the #include <stdlib.h> and declare
"void *malloc(size_t size)" to get named to compile on 6.3.
Linux
"make links" and "make stdlinks" cause problems on
@@ -166,7 +175,7 @@ Operating System Notes
"port/solaris/Makefile.set.gcc" to "port/solaris/Makefile.set".
If you're using a Solaris release earlier than 2.5 and you have
a large number of interfaces on your system, you many need
a large number of interfaces on your system, you many need to
use a script to "limit descriptors N" (where 'N' is a
suitably large number) before execing "named". On Solaris
2.5 and later, the server will do this itself.
@@ -257,8 +266,11 @@ Using the Server
there are lots of {curly braces} and it takes some getting used to.
You may get a lot more help from the example file (which is
bin/named/named.conf) than from the documentation (see ../doc/html).
You can convert your named.boot file to a named.conf file if you have
Perl; see bin/named/named-bootconf.pl.
You can convert your named.boot file to a named.conf file using
bin/named-bootconf/named-bootconf.
e.g.
named-bootconf < /etc/named.boot > /etc/named.conf
All the files that used to be created in /var/tmp, e.g. named.run,
will now be created in the directory specified in the options
+2 -2
View File
@@ -1,4 +1,4 @@
## Copyright (c) 1993-1999 by Internet Software Consortium.
## Copyright (c) 1993-2000 by Internet Software Consortium, Inc.
##
## Permission to use, copy, modify, and distribute this software for any
## purpose with or without fee is hereby granted, provided that the above
@@ -19,4 +19,4 @@
Tel: 1-888-868-1001 (toll free in U.S.)
Tel: 1-650-779-7091
Fax: 1-650-779-7055
Email: [email protected]
Email: <[email protected]>
+3 -3
View File
@@ -13,7 +13,7 @@
## ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
## SOFTWARE.
# $Id: Makefile,v 8.51 1999/11/06 03:24:02 vixie Exp $
# $Id: Makefile,v 8.52 2000/11/21 12:54:37 marka Exp $
TOP=
SUBDIRS= include port lib bin
@@ -37,7 +37,7 @@ all clean depend install distclean:: FRC
eval "${MAKE} $$settings ${MARGS} SYSTYPE=$$systype \
VER=$$version \
$@"; \
); \
) || exit 1; \
done \
fi
@@ -52,7 +52,7 @@ links: FRC
( mkdir $$x; cd $$x; pwd; ln -s ../SRC/$$x SRC; \
cp SRC/Makefile Makefile; chmod +w Makefile; \
${MAKE} ${MARGS} SYSTYPE=$$systype links; \
); \
) || exit 1; \
done
stdlinks: FRC
+17 -20
View File
@@ -1,5 +1,5 @@
This is the source portion of BIND version 8.2.2, Patchlevel 5. Its
companions are "doc" and "contrib" so you are probably not missing anything.
This is the source portion of BIND version 8. Its companions are "doc" and
"contrib" so you are probably not missing anything.
See the CHANGES file for a detailed listing of all changes. See the INSTALL
file for information on building and installing BIND.
@@ -7,17 +7,19 @@ file for information on building and installing BIND.
See the SUPPORT file for information on obtaining commercial support for ISC
artifacts including BIND, INN, and DHCP.
SECURITY NOTE:
Note that BIND 8 is in "end-of-life", having been replaced by BIND 9. See
http://www.isc.org/ for more details.
Solaris and other pre-4.4BSD kernels do not respect ownership or
protections on UNIX-domain sockets. This means that the default
path for the NDC control socket (/var/run/ndc) is such that any
user (root or other) on such systems can issue any NDC command
except "start" and "restart". The short term fix for this is to
override the default path and put such control sockets into root-
owned directories which do not permit non-root to r/w/x through them.
The medium term fix is for BIND to enforce this requirement internally.
The long term fix is for all kernels to upgrade to 4.4BSD semantics.
BIND 8.2.3 Highlights
Improved support for Windows NT and Windows 2000.
Host stats are no longer required to track the source of a record.
IXFR improvements.
Forwarders track and use RTT to select fastest.
Unix domain sockets implementions that require the directory
to be secure, are now secured.
Many minor problems fixed.
Linux DoS removed.
BIND 8.2.2 patchlevel 5 Highlights
@@ -47,7 +49,6 @@ BIND 8.2.2 Highlights
New global options for "transfer-source" and "also-notify".
$GENERATE now supports more record types, and options.
BIND 8.2.1 Highlights
Bug fixes, especially to DNSSEC, TSIG, IXFR, and selective forwarding.
@@ -72,7 +73,6 @@ BIND 8.2 Highlights
Documentation improvements
Performance enhancements
BIND 8.1.2 Highlights
Security fixes for a number of problems including:
@@ -133,7 +133,6 @@ BIND 8.1.2 Highlights
Experimental -u (set user id), -g (set group id), and -t (chroot)
command line options. See the INSTALL file for details.
BIND 8 Features
-> DNS Dynamic Updates (RFC 2136)
@@ -155,7 +154,6 @@ BIND 8 Features
-> Many bug fixes
File and Directory Overview
CHANGES history of added features and
@@ -196,7 +194,6 @@ Kits, Questions, Comments, and Bug Reports
<URL:http://www.isc.org/bind.html> the BIND home page
<URL:mailto:[email protected]> bug reports
To Support the Effort
Note that BIND is supported by the Internet Software Consortium, and
@@ -208,6 +205,6 @@ To Support the Effort
The Internet Software Consortium has also commissioned a DHCP server
implementation, has taken over official support/release of the INN
system, and supports the Kerberos Version 5 effort at MIT. You can
learn more about the ISC's goals and accomplishments from the web page
at <URL:http://www.isc.org/>.
system, and has supported the Kerberos Version 5 effort at MIT. You
can learn more about the ISC's goals and accomplishments from the web
page at <URL:http://www.isc.org/>.
+9 -10
View File
@@ -1,10 +1,9 @@
> The Internet Software Consortium now offers support agreements for ISC
> software. Under these programs, organizations using BIND, DHCP or INN
> from ISC can obtain a range of on call assistance, bug fixes, training and
> consultation services. These programs are documented on our web page at:
>
> http://www.isc.org/support.html
>
> Discussion about programs to meet your needs is welcome at
> [email protected]. Please forward your questions there or call us at
> +1 650 779-7018 to speak with the Director of Client Services.
The Internet Software Consortium offers, through certified providers, support,
training, and consulting for BIND and DHCP. These programs are documented on
our web page at:
http://www.isc.org/support.html
Discussion about programs to meet your needs is welcome at [email protected].
Please forward your questions there or call us at +1 650 779-7018 to speak
with the Director of Client Services.
+1 -1
View File
@@ -1 +1 @@
8.2.2-P5-NOESW
8.2.3-REL
+9 -8
View File
@@ -13,16 +13,16 @@
## ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
## SOFTWARE.
# $Id: Makefile,v 8.27 1999/08/08 17:13:24 vixie Exp $
# $Id: Makefile,v 8.30 2000/12/23 08:02:48 vixie Exp $
DESTDIR=
CC= cc
SHELL= /bin/sh
CDEBUG= -g
CDEBUG= -g -Wall
#(net2 and its descendents)
SYSTYPE = bsdos
SYSTYPE = freebsd
TOP = ..
O=o
A=a
@@ -54,11 +54,12 @@ MARGS = "SYSTYPE=${SYSTYPE}" "SHELL=${SHELL}" "A=${A}" "O=${O}" \
"RANLIB=${RANLIB}" "AR=${AR}" "ARPREF=${ARPREF}" "ARSUFF=${ARSUFF}" \
"INCL=../${INCL}" "PORTINCL=../${PORTINCL}" "EXE=${EXE}" \
"LIBBIND=../${LIBBIND}" "LIBPORT=../${LIBPORT}" \
"INSTALL=${INSTALL}" "CPPFLAGS=${CPPFLAGS}" "TOP=../${TOP}" \
"INSTALL=${INSTALL}" "TOP=../${TOP}" \
"VER=${VER}" "STRIP=${STRIP}" "PS=${PS}" "INSTALL_LIB=${INSTALL_LIB}" \
"INSTALL_EXEC=${INSTALL_EXEC}" "BOUNDS=${BOUNDS}"
CFLAGS= ${CDEBUG} -I${PORTINCL} -I${INCL}
CFLAGS= ${CDEBUG}
CPPFLAGS= -I${PORTINCL} -I${INCL}
SUBDIRS = addr nslookup dig dnsquery host named named-xfer ndc nsupdate \
mkservdb irpd dnskeygen named-bootconf
@@ -66,11 +67,11 @@ SUBDIRS = addr nslookup dig dnsquery host named named-xfer ndc nsupdate \
all: ${SUBDIRS}
${SUBDIRS}: FRC
@(cd $@; pwd; ${MAKE} ${MARGS})
@(cd $@; pwd; ${MAKE} ${MARGS}) || exit 1
install depend tags clean distclean::
@for x in ${SUBDIRS}; do \
(cd $$x; pwd; ${MAKE} ${MARGS} $@); \
(cd $$x; pwd; ${MAKE} ${MARGS} $@) || exit 1; \
done
distclean:: clean
@@ -84,7 +85,7 @@ links: FRC
( mkdir $$x; cd $$x; pwd; ln -s ../SRC/$$x SRC; \
cp SRC/Makefile Makefile; chmod +w Makefile; \
$(MAKE) $(MARGS) links; \
); \
) || exit 1; \
done
FRC:
+5 -4
View File
@@ -13,16 +13,16 @@
## ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
## SOFTWARE.
# $Id: Makefile,v 8.25 1999/08/08 17:51:00 vixie Exp $
# $Id: Makefile,v 8.27 2000/12/23 08:02:49 vixie Exp $
DESTDIR=
CC= cc
SHELL= /bin/sh
CDEBUG= -g
CDEBUG= -g -Wall
#(net2 and its descendents)
SYSTYPE = bsdos
SYSTYPE = freebsd
TOP = ../..
INCL = ${TOP}/include
PORTINCL = ${TOP}/port/${SYSTYPE}/include
@@ -42,7 +42,8 @@ INSTALL_EXEC=
INSTALL_LIB=-o bin -g bin
LDFLAGS=
CFLAGS= ${CDEBUG} -I${PORTINCL} -I${INCL}
CFLAGS= ${CDEBUG}
CPPFLAGS= -I${PORTINCL} -I${INCL}
PROG= addr
SRCS= ${PROG}.c
+5 -4
View File
@@ -13,16 +13,16 @@
## ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
## SOFTWARE.
# $Id: Makefile,v 8.25 1999/08/08 17:51:01 vixie Exp $
# $Id: Makefile,v 8.27 2000/12/23 08:02:50 vixie Exp $
DESTDIR=
CC= cc
SHELL= /bin/sh
CDEBUG= -g
CDEBUG= -g -Wall
#(net2 and its descendents)
SYSTYPE = bsdos
SYSTYPE = freebsd
TOP = ../..
INCL = ${TOP}/include
PORTINCL = ${TOP}/port/${SYSTYPE}/include
@@ -42,7 +42,8 @@ INSTALL_EXEC=
INSTALL_LIB=-o bin -g bin
LDFLAGS=
CFLAGS= ${CDEBUG} -I${PORTINCL} -I${INCL}
CFLAGS= ${CDEBUG}
CPPFLAGS= -I${PORTINCL} -I${INCL}
NSLOOKUP_OBJS= \
../nslookup/subr.${O} ../nslookup/send.${O} \
+88 -52
View File
@@ -1,5 +1,5 @@
#ifndef lint
static const char rcsid[] = "$Id: dig.c,v 8.36 1999/11/05 05:05:14 vixie Exp $";
static const char rcsid[] = "$Id: dig.c,v 8.44 2000/12/23 08:14:31 vixie Exp $";
#endif
/*
@@ -167,6 +167,7 @@ static const char rcsid[] = "$Id: dig.c,v 8.36 1999/11/05 05:05:14 vixie Exp $";
#include <isc/dst.h>
#include <assert.h>
#include <ctype.h>
#include <errno.h>
#include <fcntl.h>
@@ -184,8 +185,8 @@ static const char rcsid[] = "$Id: dig.c,v 8.36 1999/11/05 05:05:14 vixie Exp $";
/* Global. */
#define VERSION 82
#define VSTRING "8.2"
#define VERSION 83
#define VSTRING "8.3"
#define PRF_DEF 0x2ff9
#define PRF_MIN 0xA930
@@ -200,7 +201,6 @@ static const char rcsid[] = "$Id: dig.c,v 8.36 1999/11/05 05:05:14 vixie Exp $";
static int eecode = 0;
static FILE * qfp;
static int sockFD;
static char *defsrv, *srvmsg;
static char defbuf[40] = "default -- ";
static char srvbuf[60];
@@ -227,7 +227,7 @@ char *pager = NULL;
/* Forward. */
static void Usage(void);
static int SetOption(const char *);
static int setopt(const char *);
static void res_re_init(void);
static int xstrtonum(char *);
static int printZone(ns_type, const char *,
@@ -270,19 +270,17 @@ main(int argc, char **argv) {
ns_type xfr = ns_t_invalid;
int bytes_out, bytes_in;
char cmd[256];
char cmd[512];
char domain[MAXDNAME];
char msg[120], *msgptr;
char **vtmp;
char msg[120], **vtmp;
char *args[DIG_MAXARGS];
char **ax;
int once = 1, dofile = 0; /* batch -vs- interactive control */
char fileq[100];
char fileq[384];
int fp;
int wait=0, delay;
int envset=0, envsave=0;
struct __res_state res_x, res_t;
char *pp;
ns_tsig_key key;
char *keyfile = NULL, *keyname = NULL;
@@ -348,6 +346,7 @@ main(int argc, char **argv) {
res.id = 1;
gettimeofday(&tv1, NULL);
assert(tv1.tv_usec >= 0 && tv1.tv_usec < 1000000);
/*
* Main section: once if cmd-line query
@@ -357,8 +356,10 @@ main(int argc, char **argv) {
while ((dofile && fgets(fileq, sizeof fileq, qfp) != NULL) ||
(!dofile && once--))
{
if (*fileq == '\n' || *fileq == '#' || *fileq==';')
continue; /* ignore blank lines & comments */
if (*fileq == '\n' || *fileq == '#' || *fileq==';') {
printf("%s", fileq); /* echo but otherwise ignore */
continue; /* blank lines and comments */
}
/*
* "Sticky" requests that before current parsing args
@@ -398,7 +399,7 @@ main(int argc, char **argv) {
if (**argv == '%')
continue;
if (**argv == '+') {
SetOption(*argv+1);
setopt(*argv+1);
continue;
}
if (**argv == '=') {
@@ -422,11 +423,16 @@ main(int argc, char **argv) {
if (**argv == '-') {
switch (argv[0][1]) {
case 'T':
wait = atoi(*++argv);
if (*++argv == NULL)
printf("; no arg for -T?\n");
else
wait = atoi(*argv);
break;
case 'c':
if ((tmp = atoi(*++argv))
|| *argv[0]=='0') {
if(*++argv == NULL)
printf("; no arg for -c?\n");
else if ((tmp = atoi(*argv))
|| *argv[0] == '0') {
queryClass = tmp;
} else if ((tmp = StringToClass(*argv,
0, NULL)
@@ -439,7 +445,9 @@ main(int argc, char **argv) {
}
break;
case 't':
if ((tmp = atoi(*++argv))
if (*++argv == NULL)
printf("; no arg for -t?\n");
else if ((tmp = atoi(*argv))
|| *argv[0]=='0') {
queryType = tmp;
qtypeSet++;
@@ -452,17 +460,15 @@ main(int argc, char **argv) {
printf(
"; invalid type specified\n"
);
}
}
break;
case 'x':
if (!qtypeSet) {
queryType = T_ANY;
qtypeSet++;
}
if (!(addrc = *++argv)) {
printf(
"; no arg for -x?\n"
);
if ((addrc = *++argv) == NULL) {
printf("; no arg for -x?\n");
break;
}
addrend = addrc + strlen(addrc);
@@ -480,8 +486,10 @@ main(int argc, char **argv) {
case 'p':
if (argv[0][2] != '\0')
port = ntohs(atoi(argv[0]+2));
else if (*++argv == NULL)
printf("; no arg for -p?\n");
else
port = htons(atoi(*++argv));
port = htons(atoi(*argv));
break;
case 'P':
if (argv[0][2] != '\0')
@@ -492,16 +500,21 @@ main(int argc, char **argv) {
case 'n':
if (argv[0][2] != '\0')
res.ndots = atoi(argv[0]+2);
else if (*++argv == NULL)
printf("; no arg for -n?\n");
else
res.ndots = atoi(*++argv);
res.ndots = atoi(*argv);
break;
case 'b': {
char *a, *p;
if (argv[0][2] != '\0')
a = argv[0]+2;
else
a = *++argv;
else if (*++argv == NULL) {
printf("; no arg for -b?\n");
break;
} else
a = *argv;
if ((p = strchr(a, ':')) != NULL) {
*p++ = '\0';
myaddress.sin_port =
@@ -512,14 +525,18 @@ main(int argc, char **argv) {
";; bad -b addr\n");
exit(1);
}
}
}
break;
case 'k':
/* -k keydir:keyname */
if (argv[0][2] != '\0')
keyfile = argv[0]+2;
else
keyfile = *++argv;
else if (*++argv == NULL) {
printf("; no arg for -k?\n");
break;
} else
keyfile = *argv;
keyname = strchr(keyfile, ':');
if (keyname == NULL) {
@@ -845,6 +862,7 @@ main(int argc, char **argv) {
if (res.pfcode & RES_PRF_HEAD1)
fp_resstat(&res, stdout);
(void) gettimeofday(&start_time, NULL);
assert(start_time.tv_usec >= 0 && start_time.tv_usec < 1000000);
if (keyfile)
n = res_nsendsigned(&res, packet, n, &key, answer, sizeof answer);
else
@@ -869,10 +887,9 @@ main(int argc, char **argv) {
}
}
(void) gettimeofday(&end_time, NULL);
assert(end_time.tv_usec >= 0 && end_time.tv_usec < 1000000);
if (res.pfcode & RES_PRF_STATS) {
time_t t;
query_time = difftv(start_time, end_time);
printf(";; Total query time: ");
prnttime(query_time);
@@ -902,6 +919,7 @@ main(int argc, char **argv) {
* batches started at different sites somewhat synchronized.
*/
gettimeofday(&tv2, NULL);
assert(tv2.tv_usec >= 0 && tv2.tv_usec < 1000000);
delay = (int)(tv2.tv_sec - tv1.tv_sec);
if (delay < wait) {
sleep(wait - delay);
@@ -946,13 +964,13 @@ where: server,\n\
fputs("\
notes: defname and search don't work; use fully-qualified names.\n\
this is DiG version " VSTRING "\n\
$Id: dig.c,v 8.36 1999/11/05 05:05:14 vixie Exp $\n\
$Id: dig.c,v 8.44 2000/12/23 08:14:31 vixie Exp $\n\
", stderr);
}
static int
SetOption(const char *string) {
char option[NAME_LEN], type[NAME_LEN], *ptr;
setopt(const char *string) {
char option[NAME_LEN], *ptr;
int i;
i = pickString(string, option, sizeof option);
@@ -1104,6 +1122,7 @@ res_re_init() {
static char localdomain[] = "LOCALDOMAIN";
u_long pfcode = res.pfcode, options = res.options;
unsigned ndots = res.ndots;
int retrans = res.retrans, retry = res.retry;
char *buf;
/*
@@ -1116,6 +1135,8 @@ res_re_init() {
res.pfcode = pfcode;
res.options = options;
res.ndots = ndots;
res.retrans = retrans;
res.retry = retry;
}
/*
@@ -1173,19 +1194,18 @@ printZone(ns_type xfr, const char *zone, const struct sockaddr_in *sin,
static int answerLen = 0;
querybuf buf;
HEADER *headerPtr;
int msglen, amtToRead, numRead, result = 0, sockFD, len;
int count, type, class, rlen, done, n;
int numAnswers = 0, numRecords = 0, soacnt = 0;
u_char *cp, tmp[NS_INT16SZ];
char dname[2][NS_MAXDNAME], file[NAME_LEN];
char dname[2][NS_MAXDNAME];
enum { NO_ERRORS, ERR_READING_LEN, ERR_READING_MSG, ERR_PRINTING }
error = NO_ERRORS;
pid_t zpid;
u_char *newmsg;
int newmsglen;
ns_tcp_tsig_state tsig_state;
int tsig_ret;
int tsig_ret, tsig_required, tsig_present;
switch (xfr) {
case ns_t_axfr:
@@ -1403,18 +1423,6 @@ printZone(ns_type xfr, const char *zone, const struct sockaddr_in *sin,
break;
}
/*
* Verify the TSIG
*/
if (key) {
tsig_ret = ns_verify_tcp(answer, &len, &tsig_state, 1);
if (tsig_ret == 0)
printf("; TSIG ok\n");
else
printf("; TSIG invalid\n");
}
result = print_axfr(stdout, answer, len);
if (result != 0) {
error = ERR_PRINTING;
@@ -1475,6 +1483,30 @@ printZone(ns_type xfr, const char *zone, const struct sockaddr_in *sin,
break;
}
}
/*
* Verify the TSIG
*/
if (key) {
if (ns_find_tsig(answer, answer + len) != NULL)
tsig_present = 1;
else
tsig_present = 0;
if (numAnswers == 1 || soacnt > 1)
tsig_required = 1;
else
tsig_required = 0;
tsig_ret = ns_verify_tcp(answer, &len, &tsig_state,
tsig_required);
if (tsig_ret == 0) {
if (tsig_present)
printf("; TSIG ok\n");
}
else
printf("; TSIG invalid\n");
}
}
printf(";; Received %d answer%s (%d record%s).\n",
@@ -1504,7 +1536,7 @@ printZone(ns_type xfr, const char *zone, const struct sockaddr_in *sin,
return (ERROR);
}
printf(";; pid %lu: exit %d, signal %d, core %c\n",
pid, WEXITSTATUS(status),
(u_long)pid, WEXITSTATUS(status),
WIFSIGNALED(status) ? WTERMSIG(status) : 0,
WCOREDUMP(status) ? 't' : 'f');
}
@@ -1570,8 +1602,12 @@ print_axfr(FILE *file, const u_char *msg, size_t msglen) {
}
name = ns_rr_name(rr);
if (origin[0] == '\0' && name[0] != '\0') {
fprintf(file, "$ORIGIN %s.\n", name);
strcpy(origin, name);
if (strcmp(name, ".") != 0)
strcpy(origin, name);
fprintf(file, "$ORIGIN %s.\n", origin);
if (strcmp(name, ".") == 0)
strcpy(origin, name);
strcpy(name_ctx, "@");
}
if (ns_sprintrr(&handle, &rr, name_ctx, origin,
buf, sizeof buf) < 0) {
+5 -4
View File
@@ -13,16 +13,16 @@
## ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
## SOFTWARE.
# $Id: Makefile,v 1.5 1999/08/08 17:51:01 vixie Exp $
# $Id: Makefile,v 1.7 2000/12/23 08:02:50 vixie Exp $
DESTDIR=
CC= cc
SHELL= /bin/sh
CDEBUG= -g
CDEBUG= -g -Wall
#(net2 and its descendents)
SYSTYPE = bsdos
SYSTYPE = freebsd
TOP = ../..
INCL = ${TOP}/include
PORTINCL = ${TOP}/port/${SYSTYPE}/include
@@ -44,7 +44,8 @@ INSTALL_LIB=-o bin -g bin
PS=ps
LDFLAGS=
CFLAGS= ${CDEBUG} -I${PORTINCL} -I${INCL}
CFLAGS= ${CDEBUG}
CPPFLAGS= -I${PORTINCL} -I${INCL}
PROG= dnskeygen
SRCS= dnskeygen.c
+4 -3
View File
@@ -1,5 +1,5 @@
#if !defined(lint) && !defined(SABER)
static const char rcsid[] = "$Id: dnskeygen.c,v 1.9 1999/10/13 16:38:59 vixie Exp $";
static const char rcsid[] = "$Id: dnskeygen.c,v 1.11 2000/12/23 08:14:31 vixie Exp $";
#endif /* not lint */
/*
@@ -50,9 +50,8 @@ main(int argc, char **argv) {
int size = -1, exp = 0;
int no_auth = 0, no_conf = 0;
int sign_val = 0, flags = 0, protocol = -1;
int i, err = 0, n;
int i, err = 0;
extern char *optarg;
char array[1024];
dst_init();
if ((prog = strrchr(argv[0],'/')) == NULL)
@@ -216,6 +215,8 @@ main(int argc, char **argv) {
}
else if (size < 0)
usage("No size specified", 0);
else /* size == 0 */
sign_val = 0;
if (err)
usage("errors encountered/unknown flag", 1);
+5 -4
View File
@@ -13,16 +13,16 @@
## ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
## SOFTWARE.
# $Id: Makefile,v 8.24 1999/08/08 17:51:01 vixie Exp $
# $Id: Makefile,v 8.26 2000/12/23 08:02:51 vixie Exp $
DESTDIR=
CC= cc
SHELL= /bin/sh
CDEBUG= -g
CDEBUG= -g -Wall
#(net2 and its descendents)
SYSTYPE = bsdos
SYSTYPE = freebsd
TOP = ../..
INCL = ${TOP}/include
PORTINCL = ${TOP}/port/${SYSTYPE}/include
@@ -42,7 +42,8 @@ INSTALL_EXEC=
INSTALL_LIB=-o bin -g bin
LDFLAGS=
CFLAGS= ${CDEBUG} -I${PORTINCL} -I${INCL}
CFLAGS= ${CDEBUG}
CPPFLAGS= -I${PORTINCL} -I${INCL}
PROG= dnsquery
SRCS= ${PROG}.c
+16 -5
View File
@@ -1,5 +1,5 @@
#if !defined(lint) && !defined(SABER)
static const char rcsid[] = "$Id: dnsquery.c,v 8.13 1999/10/13 16:38:59 vixie Exp $";
static const char rcsid[] = "$Id: dnsquery.c,v 8.15 2000/12/23 08:14:32 vixie Exp $";
#endif /* not lint */
/*
@@ -55,7 +55,6 @@ main(int argc, char *argv[]) {
struct hostent *q_nsname;
extern int optind, opterr;
extern char *optarg;
HEADER *hp;
int stream = 0, debug = 0;
/* set defaults */
@@ -80,7 +79,12 @@ main(int argc, char *argv[]) {
case 'p' : res.retrans = atoi(optarg);
break;
case 'h' : strcpy(name, optarg);
case 'h' : if (strlen(optarg) >= sizeof(name)) {
fprintf(stderr,
"Domain name too long (%s)\n", optarg);
exit(-1);
} else
strcpy(name, optarg);
break;
case 'c' : {
@@ -157,8 +161,15 @@ main(int argc, char *argv[]) {
exit(-1);
}
}
if (optind < argc)
strcpy(name, argv[optind]);
if (optind < argc) {
if (strlen(argv[optind]) >= sizeof(name)) {
fprintf(stderr,
"Domain name too long (%s)\n", argv[optind]);
exit(-1);
} else {
strcpy(name, argv[optind]);
}
}
len = sizeof(answer);
+5 -4
View File
@@ -13,16 +13,16 @@
## ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
## SOFTWARE.
# $Id: Makefile,v 8.24 1999/08/08 17:51:01 vixie Exp $
# $Id: Makefile,v 8.26 2000/12/23 08:02:51 vixie Exp $
DESTDIR=
CC= cc
SHELL= /bin/sh
CDEBUG= -g
CDEBUG= -g -Wall
#(net2 and its descendents)
SYSTYPE = bsdos
SYSTYPE = freebsd
TOP = ../..
INCL = ${TOP}/include
PORTINCL = ${TOP}/port/${SYSTYPE}/include
@@ -42,7 +42,8 @@ INSTALL_EXEC=
INSTALL_LIB=-o bin -g bin
LDFLAGS=
CFLAGS= ${CDEBUG} -I${PORTINCL} -I${INCL}
CFLAGS= ${CDEBUG}
CPPFLAGS= -I${PORTINCL} -I${INCL}
PROG= host
SRCS= ${PROG}.c
+94 -57
View File
@@ -1,5 +1,5 @@
#ifndef lint
static const char rcsid[] = "$Id: host.c,v 8.34 1999/11/11 19:39:10 cyarnell Exp $";
static const char rcsid[] = "$Id: host.c,v 8.42 2000/12/23 08:14:32 vixie Exp $";
#endif /* not lint */
/*
@@ -126,6 +126,9 @@ static const char copyright[] =
#define SUCCESS 0
#define TIME_OUT -1
#define NO_INFO -2
#ifdef ERROR
#undef ERROR
#endif
#define ERROR -3
#define NONAUTH -4
@@ -166,12 +169,13 @@ static u_char hostbuf[NS_MAXDNAME];
static int sockFD;
static FILE *filePtr;
static struct __res_state res, orig;
static struct __res_state res;
static char *cname = NULL;
static const char *progname = "amnesia";
static int getclass = ns_c_in, verbose = 0, list = 0;
static int server_specified = 0;
static int gettype;
static int gettype = 0;
static int querytype = 0;
static char getdomain[NS_MAXDNAME];
/* Forward. */
@@ -221,9 +225,9 @@ main(int argc, char **argv) {
struct in_addr addr;
struct hostent *hp;
char *s;
int inverse = 0, waitmode = 0;
int waitmode = 0;
int ncnames, ch;
int nkeychains, i;
int nkeychains;
dst_init();
@@ -237,7 +241,7 @@ main(int argc, char **argv) {
switch (ch) {
case 'a':
verbose = 1;
gettype = ns_t_any;
querytype = ns_t_any;
break;
case 'c':
getclass = parseclass(optarg);
@@ -255,7 +259,7 @@ main(int argc, char **argv) {
sigchase = 1;
break;
case 't':
gettype = parsetype(optarg);
querytype = parsetype(optarg);
break;
case 'v':
verbose = 1;
@@ -270,10 +274,10 @@ main(int argc, char **argv) {
/*NOTREACHED*/
}
}
if (gettype == 0) {
if ((querytype == 0) && (sigchase)) {
if (verbose)
printf ("Forcing `-t a' for signature trace.\n");
gettype = ns_t_a;
querytype = ns_t_a;
}
argc -= optind;
argv += optind;
@@ -320,7 +324,7 @@ main(int argc, char **argv) {
res.options &= ~RES_DEFNAMES;
if (list)
exit(ListHosts(getdomain, gettype ? gettype : ns_t_a));
exit(ListHosts(getdomain, querytype ? querytype : ns_t_a));
ncnames = 5; nkeychains = 18;
while (hp == NULL && res.res_h_errno == TRY_AGAIN) {
if (addr.s_addr == INADDR_NONE) {
@@ -336,18 +340,17 @@ main(int argc, char **argv) {
/* start new query, for KEY */
strcpy (getdomain, chase_signer);
strcat (getdomain, ".");
gettype = ns_t_key;
querytype = ns_t_key;
} else if (!(chase_step & SD_BADSIG)) {
/* start new query, for SIG */
strcpy (getdomain, chase_domain);
strcat (getdomain, ".");
gettype = ns_t_sig;
querytype = ns_t_sig;
} else if (hp && !(chase_step & SD_SIG) &&
(chase_step & SD_BADSIG)) {
printf ("%s for %s not found, last verified key %s\n",
chase_step & SD_SIG ? "Key" : "Signature",
chase_step & SD_SIG ? chase_signer : chase_domain,
chase_domain,
chase_lastgoodkey ? chase_lastgoodkey : "None");
}
}
@@ -536,7 +539,7 @@ gethostinfo(char *name) {
char *cp, **domain;
char tmp[NS_MAXDNAME];
const char *tp;
int hp, nDomain;
int hp;
int asis = 0;
u_int n;
@@ -587,8 +590,8 @@ static int
getdomaininfo(const char *name, const char *domain) {
int val1, val2;
if (gettype)
return (getinfo(name, domain, gettype));
if (querytype)
return (getinfo(name, domain, gettype=querytype));
else {
val1 = getinfo(name, domain, gettype=ns_t_a);
if (cname || verbose)
@@ -600,11 +603,9 @@ getdomaininfo(const char *name, const char *domain) {
static int
getinfo(const char *name, const char *domain, int type) {
HEADER *hp;
u_char *eom, *bp, *cp;
u_char *eom;
querybuf buf, answer;
int n, n1, i, j, nmx, ancount, nscount, arcount, qdcount, buflen;
u_short pref, class;
int n;
char host[NS_MAXDNAME];
if (domain == NULL)
@@ -634,8 +635,7 @@ getinfo(const char *name, const char *domain, int type) {
static int
printinfo(const querybuf *answer, const u_char *eom, int filter, int isls) {
int n, n1, i, j, nmx, ancount, nscount, arcount, qdcount, buflen, savesigchase;
u_short pref, class;
int n, nmx, ancount, nscount, arcount, qdcount, buflen, savesigchase;
const u_char *bp, *cp;
const HEADER *hp;
@@ -696,8 +696,18 @@ printinfo(const querybuf *answer, const u_char *eom, int filter, int isls) {
if (!hp->ad)
if (verbose && isls == 0)
printf("The following answer is not verified as authentic by the server:\n");
while (--ancount >= 0 && cp && cp < eom)
while (--ancount >= 0 && cp && cp < eom) {
cp = pr_rr(cp, answer->qb2, stdout, filter);
/*
* When we ask for address and there is a CNAME, it
* seems to return both the CNAME and the address.
* Since we trace down the CNAME chain ourselves, we
* don't really want to print the address at this
* point.
*/
if (cname && ! verbose)
return (1);
}
}
if (!verbose)
return (1);
@@ -967,24 +977,24 @@ pr_rr(const u_char *cp, const u_char *msg, FILE *file, int filter) {
}
if (doprint)
fprintf(file, "(\n\t\t\t%ld\t;serial (version)",
fprintf(file, "(\n\t\t\t%lu\t;serial (version)",
ns_get32(cp));
cp += INT32SZ;
if (doprint)
fprintf(file, "\n\t\t\t%ld\t;refresh period",
fprintf(file, "\n\t\t\t%lu\t;refresh period",
ns_get32(cp));
cp += INT32SZ;
if (doprint)
fprintf(file,
"\n\t\t\t%ld\t;retry refresh this often",
"\n\t\t\t%lu\t;retry refresh this often",
ns_get32(cp));
cp += INT32SZ;
if (doprint)
fprintf(file, "\n\t\t\t%ld\t;expiration period",
fprintf(file, "\n\t\t\t%lu\t;expiration period",
ns_get32(cp));
cp += INT32SZ;
if (doprint)
fprintf(file, "\n\t\t\t%ld\t;minimum TTL\n\t\t\t)",
fprintf(file, "\n\t\t\t%lu\t;minimum TTL\n\t\t\t)",
ns_get32(cp));
cp += INT32SZ;
break;
@@ -1043,7 +1053,7 @@ pr_rr(const u_char *cp, const u_char *msg, FILE *file, int filter) {
cp += sizeof(u_short);
cp = (u_char *)pr_cdname(cp, msg, name, sizeof(name));
if (doprint)
fprintf(file,"%s",name);
fprintf(file, " %s", name);
break;
case ns_t_naptr:
@@ -1235,15 +1245,15 @@ pr_rr(const u_char *cp, const u_char *msg, FILE *file, int filter) {
/* original ttl */
origttl = cp;
if (doprint && verbose)
fprintf(file, " %d", ns_get32(cp));
fprintf(file, " %ld", ns_get32(cp));
cp += INT32SZ;
/* signature expiration */
if (doprint && verbose)
fprintf(file, " %d", ns_get32(cp));
fprintf(file, " %ld", ns_get32(cp));
cp += INT32SZ;
/* time signed */
if (doprint && verbose)
fprintf(file, " %d", ns_get32(cp));
fprintf(file, " %ld", ns_get32(cp));
cp += INT32SZ;
/* key footprint */
if (doprint && verbose)
@@ -1265,7 +1275,7 @@ pr_rr(const u_char *cp, const u_char *msg, FILE *file, int filter) {
if (sigchase && !(chase_step & SD_SIG) &&
strcmp (chase_domain, thisdomain) == 0 &&
chase_class == class & chase_type == tc)
chase_class == class && chase_type == tc)
{
u_char cdname[NS_MAXCDNAME];
@@ -1336,7 +1346,7 @@ pr_rr(const u_char *cp, const u_char *msg, FILE *file, int filter) {
if (sigchase && (chase_step & (SD_SIG|SD_RR)) &&
strcmp (getdomain, name) == 0 &&
getclass == class & gettype == type)
getclass == class && gettype == type)
{
DST_KEY *dstkey;
int rc, len, i, j;
@@ -1452,7 +1462,7 @@ pr_rr(const u_char *cp, const u_char *msg, FILE *file, int filter) {
u_char cdname[NS_MAXCDNAME];
if (doprint && !verbose)
fprintf (file, " (chasing signature)", sigchase-1);
fprintf(file, " (chasing signature)");
/* unpack rr */
@@ -1566,6 +1576,7 @@ ListHosts(char *namePtr, int queryType) {
int nshaveaddr[NUMNS];
struct in_addr nsipaddr[NUMNSADDR];
int numns, numnsaddr, thisns;
int qdcount, ancount;
/*
* Normalize to not have trailing dot. We do string compares below
@@ -1638,7 +1649,8 @@ ListHosts(char *namePtr, int queryType) {
cp = answer.qb2 + HFIXEDSZ;
eom = answer.qb2 + msglen;
if (ntohs(answer.qb1.qdcount) > 0) {
qdcount = ntohs(answer.qb1.qdcount);
while (qdcount-- > 0) {
n = dn_skipname(cp, eom);
if (n < 0) {
printf("Form error.\n");
@@ -1876,35 +1888,60 @@ ListHosts(char *namePtr, int queryType) {
}
numAnswers++;
cp = buf.qb2 + HFIXEDSZ;
if (ntohs(buf.qb1.qdcount) > 0) {
qdcount = ntohs(buf.qb1.qdcount);
while (qdcount-- > 0) {
n = dn_skipname(cp, buf.qb2 + len);
if (n < 0) {
if (n <= 0) {
error = ERR_PRINTING;
break;
}
if (cp + n + QFIXEDSZ > buf.qb2 + len) {
error = ERR_PRINTING;
break;
}
cp += n + QFIXEDSZ;
}
nmp = cp;
n = dn_skipname(cp, buf.qb2 + len);
if (n < 0) {
error = ERR_PRINTING;
ancount = ntohs(buf.qb1.ancount);
while (ancount-- > 0) {
nmp = cp;
n = dn_skipname(cp, buf.qb2 + len);
if (n <= 0) {
error = ERR_PRINTING;
break;
}
cp += n;
if (cp + INT16SZ > buf.qb2 + len) {
error = ERR_PRINTING;
break;
}
type = ns_get16(cp);
cp += INT16SZ;
if (type == ns_t_soa) {
(void) dn_expand(buf.qb2, buf.qb2 + len, nmp,
dname[soacnt], sizeof dname[0]);
if (soacnt) {
if (ns_samename(dname[0], dname[1]) == 1)
goto done;
} else
soacnt++;
}
if (cp + INT16SZ*2 + INT32SZ > buf.qb2 + len) {
error = ERR_PRINTING;
break;
}
cp += INT32SZ + INT16SZ;
dlen = ns_get16(cp);
cp += INT16SZ;
if (cp + dlen > buf.qb2 + len) {
error = ERR_PRINTING;
break;
}
cp += dlen;
}
if (error != NO_ERRORS)
break;
}
cp += n;
if (cp + INT16SZ > buf.qb2 + len) {
error = ERR_PRINTING;
break;
}
if ((ns_get16(cp) == ns_t_soa)) {
(void) dn_expand(buf.qb2, buf.qb2 + len, nmp,
dname[soacnt], sizeof dname[0]);
if (soacnt) {
if (ns_samename(dname[0], dname[1]) == 1)
break;
} else
soacnt++;
}
}
done:
(void) close(sockFD);
sockFD = -1;
+8 -5
View File
@@ -13,16 +13,16 @@
## ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
## SOFTWARE.
# $Id: Makefile,v 1.3 1999/02/22 02:47:55 vixie Exp $
# $Id: Makefile,v 1.7 2000/12/23 08:02:52 vixie Exp $
DESTDIR=
CC= cc
SHELL= /bin/sh
CDEBUG= -g
CDEBUG= -g -Wall
#(net2 and its descendents)
SYSTYPE = bsdos
SYSTYPE = freebsd
TOP = ../..
INCL = ${TOP}/include
PORTINCL = ${TOP}/port/${SYSTYPE}/include
@@ -46,7 +46,8 @@ STRIP=-s
PS=ps
LDFLAGS=
CFLAGS= ${CDEBUG} -I${PORTINCL} -I${INCL} -I${TOP}/lib/irs ${DEFS}
CFLAGS= ${CDEBUG}
CPPFLAGS= -I${PORTINCL} -I${INCL} -I${TOP}/lib/irs ${DEFS}
VER= LOCAL-`date +%y%m%d.%H%M%S`
HOSTNAMECMD= hostname || uname -n
@@ -61,6 +62,8 @@ all: ${PROG}${EXE}
${PROG}${EXE}: irpd.${O} tmp_version.${O} ${LIBBIND}
${CC} ${CDEBUG} ${LDFLAGS} -o ${PROG}${EXE} ${OBJS} tmp_version.${O} \
${LIBBIND} ${SYSLIBS}
.c.${O}:
${CC} ${CPPFLAGS} ${CFLAGS} ${BOUNDS} -c $*.c
tmp_version.${O}: tmp_version.c
@@ -68,7 +71,7 @@ tmp_version.c: version.c Makefile ../Makefile ${SRCS} ${HDRS}
(u=$${USER-root} d=`pwd` h=`${HOSTNAMECMD}` t=`date`; \
sed -e "s|%WHEN%|$${t}|" -e "s|%VERSION%|"${VER}"|" \
-e "s|%WHOANDWHERE%|$${u}@$${h}:$${d}|" \
< version.c > tmp_version.c)
< version.c > tmp_version.c); sleep 1
distclean: clean
+16 -138
View File
@@ -37,7 +37,7 @@ seem to be so for getnetbyaddr
#endif
#if defined(LIBC_SCCS) && !defined(lint)
static const char rcsid[] = "$Id: irpd.c,v 1.7 1999/10/13 16:26:23 vixie Exp $";
static const char rcsid[] = "$Id: irpd.c,v 1.10 2000/12/23 08:14:33 vixie Exp $";
#endif /* LIBC_SCCS and not lint */
/* Imports. */
@@ -144,7 +144,6 @@ static struct response_buff *newbuffer(u_int length);
static void release_buffer(struct response_buff *b);
static struct arg_s *split_string(const char *string);
static void free_args(struct arg_s *args);
static int is_all_digits(char *p);
static struct client_ctx *make_cli_ctx(void);
static struct net_data *get_net_data(struct ctl_sess *sess);
@@ -248,8 +247,6 @@ static void irpd_abort(struct ctl_sctx *ctx, struct ctl_sess *sess,
const struct ctl_verb *verb, const char *rest,
u_int respflags, void *respctx, void *uctx);
static void irpd_done(struct ctl_sctx *ctx, struct ctl_sess *sess,
void *param);
static void response_done(struct ctl_sctx *ctx, struct ctl_sess *sess,
void *uap);
static void logger(enum ctl_severity, const char *fmt, ...);
@@ -329,9 +326,10 @@ int
main(int argc, char **argv) {
struct ctl_sctx *ctx;
struct sockaddr *addr;
#ifndef NO_SOCKADDR_UN
struct sockaddr_un uaddr;
#endif
struct sockaddr_in iaddr;
log_channel chan;
short port = IRPD_PORT;
char *prog = argv[0];
char *sockname = IRPD_PATH;
@@ -342,7 +340,7 @@ main(int argc, char **argv) {
addr = (struct sockaddr *)&iaddr;
socksize = sizeof iaddr;
openlog("iprd", LOG_CONS|LOG_PID, LOG_DAEMON);
openlog("iprd", LOG_CONS|LOG_PID, ISC_FACILITY);
while ((ch = getopt(argc, argv, "u:p:c:")) != -1) {
switch(ch) {
case 'c':
@@ -358,11 +356,13 @@ main(int argc, char **argv) {
}
break;
#ifndef NO_SOCKADDR_UN
case 'u':
sockname = optarg;
addr = (struct sockaddr *)&uaddr;
socksize = sizeof uaddr;
break;
#endif
case 'h':
case '?':
@@ -374,7 +374,6 @@ main(int argc, char **argv) {
argc -= optind;
argv += optind;
memset(&uaddr, 0, sizeof uaddr);
memset(&iaddr, 0, sizeof iaddr);
#ifdef HAVE_SA_LEN
@@ -384,17 +383,21 @@ main(int argc, char **argv) {
iaddr.sin_port = htons(IRPD_PORT);
iaddr.sin_addr.s_addr = htonl(INADDR_ANY);
uaddr.sun_family = AF_UNIX;
strncpy(uaddr.sun_path, sockname, sizeof uaddr.sun_path);
#ifndef NO_SOCKADDR_UN
memset(&uaddr, 0, sizeof uaddr);
if (addr == (struct sockaddr *)&uaddr) {
uaddr.sun_family = AF_UNIX;
strncpy(uaddr.sun_path, sockname, sizeof uaddr.sun_path);
#ifdef HAVE_SA_LEN
uaddr.sun_len = SUN_LEN(&uaddr);
uaddr.sun_len = SUN_LEN(&uaddr);
#endif
if (addr == (struct sockaddr *)&uaddr)
socksize = SUN_LEN(&uaddr);
/* XXX what if this file is not currently a socket? */
unlink(sockname);
/* XXX what if this file is not currently a socket? */
unlink(sockname);
}
#endif
evCreate(&ev);
@@ -441,7 +444,6 @@ send_hostent(struct ctl_sess *sess, struct hostent *ho) {
if (ho == NULL)
simple_response(sess, IRPD_GETHOST_NONE, "No such host");
else {
size_t need;
struct response_buff *b = newbuffer(0);
if (irp_marshall_ho(ho, &b->buff, &b->bufflen) != 0) {
@@ -493,7 +495,6 @@ irpd_gethostbyname(struct ctl_sctx *ctx, struct ctl_sess *sess,
{
char hname[MAXHOSTNAMELEN];
struct arg_s *args;
int i;
struct net_data *netdata = get_net_data(sess);
INSIST(netdata != NULL);
@@ -532,7 +533,6 @@ irpd_gethostbyname2(struct ctl_sctx *ctx, struct ctl_sess *sess,
{
char hname[MAXHOSTNAMELEN];
struct arg_s *args;
int i;
int af;
struct net_data *netdata = get_net_data(sess);
@@ -584,7 +584,6 @@ irpd_gethostbyaddr(struct ctl_sctx *ctx, struct ctl_sess *sess,
char haddr[MAXHOSTNAMELEN];
char tmpaddr[NS_IN6ADDRSZ];
struct arg_s *args;
int i;
int af;
int addrlen;
struct net_data *netdata = get_net_data(sess);
@@ -650,9 +649,6 @@ irpd_gethostent(struct ctl_sctx *ctx, struct ctl_sess *sess,
u_int respflags, void *respctx, void *uctx)
{
struct hostent *ho;
size_t need;
size_t need_total = 0;
struct response_buff *b;
struct net_data *netdata = get_net_data(sess);
INSIST(netdata != NULL);
@@ -676,10 +672,6 @@ irpd_sethostent(struct ctl_sctx *ctx, struct ctl_sess *sess,
const struct ctl_verb *verb, const char *rest,
u_int respflags, void *respctx, void *uctx)
{
struct hostent *ho;
size_t need;
size_t need_total = 0;
struct response_buff *b;
struct net_data *netdata = get_net_data(sess);
INSIST(netdata != NULL);
@@ -735,8 +727,6 @@ irpd_getpwnam(struct ctl_sctx *ctx, struct ctl_sess *sess,
struct arg_s *args;
struct passwd *pw;
char username[64];
struct response_buff *b;
size_t need;
struct net_data *netdata = get_net_data(sess);
INSIST(netdata != NULL);
@@ -779,8 +769,6 @@ irpd_getpwuid(struct ctl_sctx *ctx, struct ctl_sess *sess,
struct arg_s *args;
struct passwd *pw;
char userid[64];
struct response_buff *b;
size_t need;
struct net_data *netdata = get_net_data(sess);
INSIST(netdata != NULL);
@@ -840,9 +828,6 @@ irpd_getpwent(struct ctl_sctx *ctx, struct ctl_sess *sess,
u_int respflags, void *respctx, void *uctx)
{
struct passwd *pw;
size_t need;
size_t need_total = 0;
struct response_buff *b;
struct net_data *netdata = get_net_data(sess);
INSIST(netdata != NULL);
@@ -865,10 +850,6 @@ irpd_setpwent(struct ctl_sctx *ctx, struct ctl_sess *sess,
const struct ctl_verb *verb, const char *rest,
u_int respflags, void *respctx, void *uctx)
{
struct passwd *pw;
size_t need;
size_t need_total = 0;
struct response_buff *b;
struct net_data *netdata = get_net_data(sess);
INSIST(netdata != NULL);
@@ -908,34 +889,6 @@ send_nwent(struct ctl_sess *sess, struct nwent *nw) {
}
}
/*
* static void
* send_netent(struct ctl_sess *sess, struct netent *ne);
* Sends a NETENT structure over the wire, or "No such
* Network" error if NE is NULL.
*/
static void
send_netent(struct ctl_sess *sess, struct netent *ne) {
if (ne == NULL) {
simple_response(sess, IRPD_GETNET_NONE, "No such net");
} else {
struct response_buff *b = newbuffer(0);
if (irp_marshall_ne(ne, &b->buff,
&b->bufflen) != 0) {
simple_response(sess, IRPD_GETNET_ERROR,
"Internal error");
logger(ctl_warning, "Cant marshall ne\n");
return;
}
strcat(b->buff, "\r\n");
ctl_response(sess, IRPD_GETNET_OK, "Network found", 0, 0,
response_done, b, b->buff, strlen(b->buff));
}
}
/*
* static void
* irpd_getnetbyname(struct ctl_sctx *ctx, struct ctl_sess *sess,
@@ -952,8 +905,6 @@ irpd_getnetbyname(struct ctl_sctx *ctx, struct ctl_sess *sess,
struct netent *ne;
struct nwent *nw;
char netname[MAXNETNAMELEN];
struct response_buff *b;
size_t need;
struct net_data *netdata = get_net_data(sess);
INSIST(netdata != NULL);
@@ -1008,7 +959,6 @@ irpd_getnetbyaddr(struct ctl_sctx *ctx, struct ctl_sess *sess,
char haddr[MAXHOSTNAMELEN];
long tmpaddr;
struct arg_s *args;
int i;
int af;
int addrlen;
int bits;
@@ -1098,9 +1048,6 @@ irpd_getnetent(struct ctl_sctx *ctx, struct ctl_sess *sess,
{
struct netent *ne;
struct nwent *nw;
size_t need;
size_t need_total = 0;
struct response_buff *b;
struct net_data *netdata = get_net_data(sess);
INSIST(netdata != NULL);
@@ -1129,11 +1076,6 @@ irpd_setnetent(struct ctl_sctx *ctx, struct ctl_sess *sess,
const struct ctl_verb *verb, const char *rest,
u_int respflags, void *respctx, void *uctx)
{
struct netent *ne;
struct nwent *nw;
size_t need;
size_t need_total = 0;
struct response_buff *b;
struct net_data *netdata = get_net_data(sess);
INSIST(netdata != NULL);
@@ -1188,8 +1130,6 @@ irpd_getgrnam(struct ctl_sctx *ctx, struct ctl_sess *sess,
struct arg_s *args;
struct group *gr;
char groupname[64];
struct response_buff *b;
size_t need;
struct net_data *netdata = get_net_data(sess);
INSIST(netdata != NULL);
@@ -1232,8 +1172,6 @@ irpd_getgrgid(struct ctl_sctx *ctx, struct ctl_sess *sess,
struct arg_s *args;
struct group *gr;
char groupid[64];
struct response_buff *b;
size_t need;
struct net_data *netdata = get_net_data(sess);
INSIST(netdata != NULL);
@@ -1293,9 +1231,6 @@ irpd_getgrent(struct ctl_sctx *ctx, struct ctl_sess *sess,
u_int respflags, void *respctx, void *uctx)
{
struct group *gr;
size_t need;
size_t need_total = 0;
struct response_buff *b;
struct net_data *netdata = get_net_data(sess);
INSIST(netdata != NULL);
@@ -1318,10 +1253,6 @@ irpd_setgrent(struct ctl_sctx *ctx, struct ctl_sess *sess,
const struct ctl_verb *verb, const char *rest,
u_int respflags, void *respctx, void *uctx)
{
struct group *gr;
size_t need;
size_t need_total = 0;
struct response_buff *b;
struct net_data *netdata = get_net_data(sess);
INSIST(netdata != NULL);
@@ -1365,8 +1296,6 @@ irpd_getservbyname(struct ctl_sctx *ctx, struct ctl_sess *sess,
struct servent *serv;
char servicename[64];
char protoname[10];
struct response_buff *b;
size_t need;
struct net_data *netdata = get_net_data(sess);
INSIST(netdata != NULL);
@@ -1418,8 +1347,6 @@ irpd_getservbyport(struct ctl_sctx *ctx, struct ctl_sess *sess,
struct servent *sv;
char portnum[64];
char protoname[10];
struct response_buff *b;
size_t need;
struct net_data *netdata = get_net_data(sess);
INSIST(netdata != NULL);
@@ -1487,9 +1414,6 @@ irpd_getservent(struct ctl_sctx *ctx, struct ctl_sess *sess,
u_int respflags, void *respctx, void *uctx)
{
struct servent *sv;
size_t need;
size_t need_total = 0;
struct response_buff *b;
struct net_data *netdata = get_net_data(sess);
INSIST(netdata != NULL);
@@ -1512,10 +1436,6 @@ irpd_setservent(struct ctl_sctx *ctx, struct ctl_sess *sess,
const struct ctl_verb *verb, const char *rest,
u_int respflags, void *respctx, void *uctx)
{
struct servent *sv;
size_t need;
size_t need_total = 0;
struct response_buff *b;
struct net_data *netdata = get_net_data(sess);
INSIST(netdata != NULL);
@@ -1570,8 +1490,6 @@ irpd_getprotobyname(struct ctl_sctx *ctx, struct ctl_sess *sess,
struct arg_s *args;
struct protoent *pr;
char protoname[64];
struct response_buff *b;
size_t need;
struct net_data *netdata = get_net_data(sess);
INSIST(netdata != NULL);
@@ -1614,8 +1532,6 @@ irpd_getprotobynumber(struct ctl_sctx *ctx, struct ctl_sess *sess,
struct arg_s *args;
struct protoent *pr;
char protonum[64];
struct response_buff *b;
size_t need;
struct net_data *netdata = get_net_data(sess);
INSIST(netdata != NULL);
@@ -1675,9 +1591,6 @@ irpd_getprotoent(struct ctl_sctx *ctx, struct ctl_sess *sess,
u_int respflags, void *respctx, void *uctx)
{
struct protoent *pr;
size_t need;
size_t need_total = 0;
struct response_buff *b;
struct net_data *netdata = get_net_data(sess);
INSIST(netdata != NULL);
@@ -1700,10 +1613,6 @@ irpd_setprotoent(struct ctl_sctx *ctx, struct ctl_sess *sess,
const struct ctl_verb *verb, const char *rest,
u_int respflags, void *respctx, void *uctx)
{
struct protoent *pr;
size_t need;
size_t need_total = 0;
struct response_buff *b;
struct net_data *netdata = get_net_data(sess);
INSIST(netdata != NULL);
@@ -1750,9 +1659,6 @@ irpd_getnetgrent(struct ctl_sctx *ctx, struct ctl_sess *sess,
const struct ctl_verb *verb, const char *rest,
u_int respflags, void *respctx, void *uctx)
{
char netgroupname[64];
struct response_buff *b = NULL;
size_t need;
struct net_data *netdata = get_net_data(sess);
INSIST(netdata != NULL);
@@ -1787,8 +1693,6 @@ irpd_innetgr(struct ctl_sctx *ctx, struct ctl_sess *sess,
u_int respflags, void *respctx, void *uctx)
{
struct arg_s *args;
struct response_buff *b;
size_t need;
struct net_data *netdata = get_net_data(sess);
char *host;
char *user;
@@ -1830,7 +1734,6 @@ irpd_innetgr(struct ctl_sctx *ctx, struct ctl_sess *sess,
memput(ngtmp, args->iov[1].iov_len + 1);
}
untimely:
free_args(args);
}
@@ -1863,7 +1766,6 @@ irpd_setnetgrent(struct ctl_sctx *ctx, struct ctl_sess *sess,
"setnetgrent ok");
}
untimely:
free_args(args);
}
@@ -1879,7 +1781,6 @@ irpd_endnetgrent(struct ctl_sctx *ctx, struct ctl_sess *sess,
const struct ctl_verb *verb, const char *rest,
u_int respflags, void *respctx, void *uctx)
{
struct arg_s *args;
struct net_data *netdata = get_net_data(sess);
INSIST(netdata != NULL);
@@ -1896,20 +1797,6 @@ irpd_endnetgrent(struct ctl_sctx *ctx, struct ctl_sess *sess,
}
}
/*
* static void
* irpd_done(struct ctl_sctx *ctx, struct ctl_sess *sess, void *param)
* Callback for when QUIT respnse is sent out.
*/
static void
irpd_done(struct ctl_sctx *ctx, struct ctl_sess *sess, void *param) {
struct net_data *netdata = get_net_data(sess);
INSIST(netdata != NULL);
net_data_destroy(netdata);
}
/*
* static void
* irpd_quit(struct ctl_sctx *ctx, struct ctl_sess *sess,
@@ -2232,15 +2119,6 @@ make_cli_ctx(void) {
return (p);
}
static void
release_cli_ctx(struct client_ctx *ctx) {
INSIST(ctx != NULL);
INSIST(ctx->net_data != NULL);
net_data_destroy(ctx->net_data);
memput(ctx, sizeof *ctx);
}
static struct net_data *
get_net_data(struct ctl_sess *sess) {
struct client_ctx *ctx = ctl_getcsctx(sess);
+5 -4
View File
@@ -13,16 +13,16 @@
## ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
## SOFTWARE.
# $Id: Makefile,v 1.6 1999/08/08 17:51:01 vixie Exp $
# $Id: Makefile,v 1.8 2000/12/23 08:02:52 vixie Exp $
DESTDIR=
CC= cc
SHELL= /bin/sh
CDEBUG= -g
CDEBUG= -g -Wall
#(net2 and its descendents)
SYSTYPE = bsdos
SYSTYPE = freebsd
TOP = ../..
INCL = ${TOP}/include
PORTINCL = ${TOP}/port/${SYSTYPE}/include
@@ -41,7 +41,8 @@ INSTALL_EXEC=
INSTALL_LIB=-o bin -g bin
LDFLAGS=
CFLAGS= ${CDEBUG} -I${PORTINCL} -I${INCL}
CFLAGS= ${CDEBUG}
CPPFLAGS= -I${PORTINCL} -I${INCL}
PROG= mkservdb
SRCS= ${PROG}.c
+17 -10
View File
@@ -1,5 +1,5 @@
#if !defined(lint) && !defined(SABER)
static const char rcsid[] = "$Id: mkservdb.c,v 1.6 1999/10/13 16:39:00 vixie Exp $";
static const char rcsid[] = "$Id: mkservdb.c,v 1.9 2001/01/26 06:54:11 vixie Exp $";
#endif /* not lint */
/*
@@ -29,6 +29,7 @@ static const char rcsid[] = "$Id: mkservdb.c,v 1.6 1999/10/13 16:39:00 vixie Exp
#include <ctype.h>
#ifdef IRS_LCL_SV_DB
#include <db.h>
#include <err.h>
#endif
#include <fcntl.h>
#include <limits.h>
@@ -37,9 +38,11 @@ static const char rcsid[] = "$Id: mkservdb.c,v 1.6 1999/10/13 16:39:00 vixie Exp
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "../../include/irs.h"
#include "../../lib/irs/irs_p.h"
#include "../../include/isc/misc.h"
#include "port_after.h"
@@ -61,6 +64,7 @@ main(int argc, char **argv) {
struct servent *getnextent(FILE *);
int
main(int argc, char **argv) {
DB *db;
DBT key;
@@ -112,24 +116,26 @@ main(int argc, char **argv) {
}
data.size = p - dbuf;
if ((r = db->put(db, &key, &data, R_NOOVERWRITE)))
if ((r = db->put(db, &key, &data, R_NOOVERWRITE))) {
if (r < 0)
errx(1, "failed to write %s", key.data);
errx(1, "failed to write %s", (char *)key.data);
else
warnx("will not overwrite %s", key.data);
warnx("will not overwrite %s", (char *)key.data);
}
for (n = 0; sv->s_aliases[n]; ++n) {
if (strlen(sv->s_aliases[n]) + sizeof "/"
+ strlen(sv->s_proto) > sizeof kbuf)
continue;
key.size = SPRINTF((kbuf, "%s/%s",
sv->s_aliases[n], sv->s_proto))+1;
if ((r = db->put(db, &key, &data, R_NOOVERWRITE)))
if ((r = db->put(db, &key, &data, R_NOOVERWRITE))) {
if (r < 0)
errx(1, "failed to write %s",
key.data);
(char *)key.data);
else
warnx("will not overwrite %s",
key.data);
(char *)key.data);
}
}
ports = (u_short *)kbuf;
@@ -152,16 +158,17 @@ main(int argc, char **argv) {
}
data.size = p - dbuf;
if ((r = db->put(db, &key, &data, R_NOOVERWRITE)))
if ((r = db->put(db, &key, &data, R_NOOVERWRITE))) {
if (r < 0)
errx(1, "failed to write %d/%s",
ntohs(sv->s_port), sv->s_proto);
else
warnx("will not overwrite %d/%s",
ntohs(sv->s_port), sv->s_proto);
ntohs(sv->s_port), sv->s_proto);
}
}
db->close(db);
if (rename(tmpdatabase, database))
if (isc_movefile(tmpdatabase, database))
err(1, "rename %s -> %s", tmpdatabase, database);
exit(0);
}
+5 -4
View File
@@ -13,16 +13,16 @@
## ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
## SOFTWARE.
# $Id: Makefile,v 1.1 1999/01/07 02:09:37 vixie Exp $
# $Id: Makefile,v 1.3 2000/12/23 08:02:53 vixie Exp $
DESTDIR=
CC= cc
SHELL= /bin/sh
CDEBUG= -g
CDEBUG= -g -Wall
#(net2 and its descendents)
SYSTYPE = bsdos
SYSTYPE = freebsd
TOP = ../..
INCL = ${TOP}/include
PORTINCL = ${TOP}/port/${SYSTYPE}/include
@@ -41,7 +41,8 @@ INSTALL_EXEC=
INSTALL_LIB=-o bin -g bin
LDFLAGS=
CFLAGS= ${CDEBUG} -I${PORTINCL} -I${INCL}
CFLAGS= ${CDEBUG}
CPPFLAGS= -I${PORTINCL} -I${INCL}
PROG= named-bootconf
@@ -181,19 +181,24 @@ while read CMD ARGS; do
esac
set - X $ARGS
shift
if [ $# -gt 2 ]; then
if [ $# -gt 1 ]; then
ZONE=$1
shift
PRIMARIES=$1
while [ $# -gt 2 ]; do
shift
PRIMARIES=""
while [ $# -gt 1 ]; do
PRIMARIES="$PRIMARIES $1"
shift
done
(echo ""
cat $COMMENTFILE
echo "zone \"$ZONE\" ${class}{"
echo " type slave;"
echo " file \"$2\";"
if expr x"$1" : '^x[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*$' > /dev/null
then
PRIMARIES="$PRIMARIES $1"
else
echo " file \"$1\";"
fi
echo " masters {"
for PRIMARY in $PRIMARIES; do
echo " $PRIMARY;"
@@ -215,19 +220,24 @@ while read CMD ARGS; do
esac
set - X $ARGS
shift
if [ $# -gt 2 ]; then
if [ $# -gt 1 ]; then
ZONE=$1
shift
PRIMARIES=$1
while [ $# -gt 2 ]; do
shift
PRIMARIES=""
while [ $# -gt 1 ]; do
PRIMARIES="$PRIMARIES $1"
shift
done
(echo ""
cat $COMMENTFILE
echo "zone \"$ZONE\" ${class}{"
echo " type stub;"
echo " file \"$2\";"
if expr x"$1" : '^x[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*$' > /dev/null
then
PRIMARIES="$PRIMARIES $1"
else
echo " file \"$1\";"
fi
echo " masters {"
for PRIMARY in $PRIMARIES; do
echo " $PRIMARY;"
+5 -4
View File
@@ -13,16 +13,16 @@
## ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
## SOFTWARE.
# $Id: Makefile,v 8.29 1999/08/08 17:51:02 vixie Exp $
# $Id: Makefile,v 8.31 2000/12/23 08:02:54 vixie Exp $
DESTDIR=
CC= cc
SHELL= /bin/sh
CDEBUG= -g
CDEBUG= -g -Wall
#(net2 and its descendents)
SYSTYPE = bsdos
SYSTYPE = freebsd
TOP = ../..
INCL = ${TOP}/include
PORTINCL = ${TOP}/port/${SYSTYPE}/include
@@ -45,7 +45,8 @@ INSTALL_LIB=-o bin -g bin
PS=ps
LDFLAGS=
CFLAGS= ${CDEBUG} -I${PORTINCL} -I${INCL}
CFLAGS= ${CDEBUG}
CPPFLAGS= -I${PORTINCL} -I${INCL}
NAMED_OBJS= \
../named/db_glue.${O} ../named/ns_glue.${O} ../named/tmp_version.${O}
File diff suppressed because it is too large. Load diff
+7 -6
View File
@@ -1,4 +1,4 @@
## Copyright (c) 1996-1999 by Internet Software Consortium
## Copyright (c) 1996-2000 by Internet Software Consortium
##
## Permission to use, copy, modify, and distribute this software for any
## purpose with or without fee is hereby granted, provided that the above
@@ -13,17 +13,17 @@
## ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
## SOFTWARE.
# $Id: Makefile,v 8.47 1999/08/26 18:42:31 vixie Exp $
# $Id: Makefile,v 8.51 2000/12/23 08:02:53 vixie Exp $
# $FreeBSD$
DESTDIR=
CC= cc
SHELL= /bin/sh
CDEBUG= -g
CDEBUG= -g -Wall
#(net2 and its descendents)
SYSTYPE = bsdos
SYSTYPE = freebsd
TOP = ../..
INCL = ${TOP}/include
PORTINCL = ${TOP}/port/${SYSTYPE}/include
@@ -48,7 +48,8 @@ INSTALL_LIB=-o bin -g bin
PS=ps
LDFLAGS=
CFLAGS= ${CDEBUG} -I${PORTINCL} -I${INCL} ${DEFS}
CFLAGS= ${CDEBUG}
CPPFLAGS= -I${PORTINCL} -I${INCL} ${DEFS}
VER= LOCAL-`date +%Y%m%d.%H%M%S`
HOSTNAMECMD= hostname || uname -n
@@ -87,7 +88,7 @@ tmp_version.c: version.c Makefile ../Makefile ${SRCS} ${HDRS}
(u=$${USER-root} d=`pwd` h=`${HOSTNAMECMD}` t=`date`; \
sed -e "s|%WHEN%|$${t}|" -e "s|%VERSION%|"${VER}"|" \
-e "s|%WHOANDWHERE%|$${u}@$${h}:$${d}|" \
< version.c > tmp_version.c)
< version.c > tmp_version.c); sleep 1
pathnames.h: ${TOP}/.settings Makefile pathtemplate.h
rm -f pathnames.h
+22 -3
View File
@@ -1,6 +1,6 @@
/*
* from db.h 4.16 (Berkeley) 6/1/90
* $Id: db_defs.h,v 8.36 1999/08/26 18:42:32 vixie Exp $
* $Id: db_defs.h,v 8.40 2000/11/29 06:55:46 marka Exp $
*/
/*
@@ -57,7 +57,7 @@
*/
/*
* Portions Copyright (c) 1996-1999 by Internet Software Consortium.
* Portions Copyright (c) 1996-2000 by Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -103,9 +103,17 @@
/*
* Hash table structures.
*/
/*
* XXX
* For IPv6 transport support we need a seperate reference counted
* database of source addresses and d_addr should become a union with
* a pointer into that database. A bit can be robbed from d_rode to
* indicate what the union is being used for. This should require less
* memory than making d_addr a union of struct in6_addr and struct in_addr.
*/
struct databuf {
struct databuf *d_next; /* linked list */
struct nameser *d_ns; /* NS from whence this came */
struct in_addr d_addr; /* NS from whence this came */
u_int32_t d_ttl; /* time to live */
/* if d_zone == DB_Z_CACHE, then
* d_ttl is actually the time when
@@ -125,11 +133,18 @@ struct databuf {
int16_t d_type; /* type number */
int16_t d_size; /* size of data area */
u_int32_t d_rcnt;
#ifdef HITCOUNTS
u_int32_t d_hitcnt; /* Number of requests for this data. */
#endif /* HITCOUNTS */
u_int16_t d_nstime; /* NS response time, milliseconds */
u_char d_data[sizeof(void*)]; /* dynamic (padded) */
};
#define DATASIZE(n) (sizeof(struct databuf) - sizeof(void*) + n)
#ifdef HITCOUNTS
extern u_int32_t db_total_hits;
#endif /* HITCOUNTS */
#ifdef BIND_UPDATE
/*
* d_mark definitions
@@ -307,3 +322,7 @@ struct db_rrset {
if (((x)->d_rcnt)-- == 0) \
ns_panic(ns_log_db, 1, "d_rcnt-- == 0"); \
} while (0)
#define ISVALIDGLUE(xdp) ((xdp)->d_type == T_NS || (xdp)->d_type == T_A \
|| (xdp)->d_type == T_AAAA || (xdp)->d_type == ns_t_a6)
+51 -21
View File
@@ -1,6 +1,6 @@
#if !defined(lint) && !defined(SABER)
static const char sccsid[] = "@(#)db_dump.c 4.33 (Berkeley) 3/3/91";
static const char rcsid[] = "$Id: db_dump.c,v 8.40 1999/10/13 16:39:01 vixie Exp $";
static const char rcsid[] = "$Id: db_dump.c,v 8.48 2000/12/23 08:14:34 vixie Exp $";
#endif /* not lint */
/*
@@ -82,7 +82,7 @@ static const char rcsid[] = "$Id: db_dump.c,v 8.40 1999/10/13 16:39:01 vixie Exp
*/
/*
* Portions Copyright (c) 1996-1999 by Internet Software Consortium.
* Portions Copyright (c) 1996-2000 by Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -125,15 +125,20 @@ static const char rcsid[] = "$Id: db_dump.c,v 8.40 1999/10/13 16:39:01 vixie Exp
#include "named.h"
#ifdef HITCOUNTS
u_int32_t db_total_hits;
#endif /* HITCOUNTS */
static const char *MkCredStr(int);
static int fwd_dump(FILE *fp);
/*
* Dump current data base in a format similar to RFC 883.
*/
void
doadump()
{
doadump(void) {
FILE *fp;
ns_notice(ns_log_db, "dumping nameserver data");
@@ -141,9 +146,15 @@ doadump()
if ((fp = write_open(server_options->dump_filename)) == NULL)
return;
gettime(&tt);
#ifdef HITCOUNTS
if (NS_OPTION_P(OPTION_HITCOUNT))
fprintf(fp, "; Total hits: %d\n",db_total_hits);
#endif /* HITCOUNTS */
fprintf(fp, "; Dumped at %s", ctimel(tt.tv_sec));
if (zones != NULL && nzones != 0)
zt_dump(fp);
if (fwddata != NULL && fwddata_count != 0)
fwd_dump(fp);
fputs(
"; Note: Cr=(auth,answer,addtnl,cache) tag only shown for non-auth RR's\n",
fp);
@@ -203,6 +214,19 @@ zt_dump(FILE *fp) {
return (0);
}
static int
fwd_dump(FILE *fp) {
int i;
fprintf(fp, ";; ++forwarders table++\n");
for (i=0;i<fwddata_count;i++) {
fprintf(fp,"; %s rtt=%d\n",
inet_ntoa(fwddata[i]->fwdaddr.sin_addr),
fwddata[i]->nsdata->d_nstime);
}
fprintf(fp, ";; --forwarders table--\n");
return (0);
}
int
db_dump(struct hashbuf *htp, FILE *fp, int zone, char *origin) {
struct databuf *dp = NULL;
@@ -276,9 +300,9 @@ db_dump(struct hashbuf *htp, FILE *fp, int zone, char *origin) {
fprintf(fp, "%d\t",
(int)(dp->d_ttl - tt.tv_sec));
} else if (dp->d_ttl != USE_MINIMUM)
fprintf(fp, "%d\t", (int)dp->d_ttl);
fprintf(fp, "%u\t", dp->d_ttl);
else
fprintf(fp, "%d\t",
fprintf(fp, "%u\t",
zones[dp->d_zone].z_minimum);
fprintf(fp, "%s\t%s\t",
p_class(dp->d_class),
@@ -457,18 +481,18 @@ db_dump(struct hashbuf *htp, FILE *fp, int zone, char *origin) {
NS_GET16(preference, cp);
fprintf(fp, "%u", preference);
if ((n = *cp++) != 0) {
fprintf(fp, "\"%.*s\"", (int)n, cp);
cp += n;
}
if ((n = *cp++) != 0) {
fprintf(fp, "\"%.*s\"", (int)n, cp);
cp += n;
}
if ((n = *cp++) != 0) {
fprintf(fp, " \"%.*s\"", (int)n, cp);
cp += n;
}
n = *cp++;
fprintf(fp, "\"%.*s\"", (int)n, cp);
cp += n;
n = *cp++;
fprintf(fp, "\"%.*s\"", (int)n, cp);
cp += n;
n = *cp++;
fprintf(fp, " \"%.*s\"", (int)n, cp);
cp += n;
fprintf(fp, " %s.", cp);
break;
@@ -613,18 +637,24 @@ db_dump(struct hashbuf *htp, FILE *fp, int zone, char *origin) {
getname(np, dname, sizeof(dname));
when = db_lame_find(dname, dp);
if (when != 0 && when > tt.tv_sec) {
fprintf(fp, "%sLAME=%d",
fprintf(fp, "%sLAME=%ld",
sep, when - tt.tv_sec);
sep = " ";
}
}
eoln:
if (dp->d_ns != NULL){
if (dp->d_addr.s_addr != htonl(0)) {
fprintf(fp, "%s[%s]",
sep, inet_ntoa(dp->d_ns->addr));
sep, inet_ntoa(dp->d_addr));
sep = " ";
}
#ifdef HITCOUNTS
if (NS_OPTION_P(OPTION_HITCOUNT)) {
fprintf(fp, "%shits=%d", sep, dp->d_hitcnt);
sep=" ";
}
#endif /* HITCOUNTS */
putc('\n', fp);
}
}
+54 -56
View File
@@ -52,7 +52,7 @@
*/
/*
* Portions Copyright (c) 1996-1999 by Internet Software Consortium.
* Portions Copyright (c) 1996-2000 by Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -90,53 +90,53 @@
/* db_proc.h - prototypes for functions in db_*.c
*
* $Id: db_func.h,v 8.40 1999/10/07 08:24:06 vixie Exp $
* $Id: db_func.h,v 8.44 2000/12/02 23:28:33 vixie Exp $
*/
/* ++from db_update.c++ */
extern int db_update(const char *name,
int db_update(const char *name,
struct databuf *odp,
struct databuf *newdp,
struct databuf **savedpp,
int flags,
struct hashbuf *htp,
struct sockaddr_in from),
db_cmp(const struct databuf *, const struct databuf *),
findMyZone(struct namebuf *np, int class);
struct sockaddr_in from);
int db_cmp(const struct databuf *, const struct databuf *);
int findMyZone(struct namebuf *np, int class);
void fixttl(struct databuf *dp);
/* --from db_update.c-- */
/* ++from db_save.c++ */
extern struct namebuf *savename(const char *, int);
extern struct databuf *savedata(int, int, u_int32_t, u_char *, int);
extern struct hashbuf *savehash(struct hashbuf *);
struct namebuf * savename(const char *, int);
struct databuf * savedata(int, int, u_int32_t, u_char *, int);
struct hashbuf * savehash(struct hashbuf *);
/* --from db_save.c-- */
/* ++from db_dump.c++ */
extern int db_dump(struct hashbuf *, FILE *, int, char *),
int db_dump(struct hashbuf *, FILE *, int, char *),
zt_dump(FILE *);
extern void doadump(void);
void doadump(void);
/* --from db_dump.c-- */
/* ++from db_load.c++ */
extern int makename_ok(char *name, const char *origin, int class,
int makename_ok(char *name, const char *origin, int class,
struct zoneinfo *zp,
enum transport transport,
enum context context,
const char *owner, const char *filename,
int lineno, int size);
extern void endline(FILE *);
extern int getword(char *, size_t, FILE *, int),
getttl(FILE *, const char *, int, u_int32_t *, int *),
getnum(FILE *, const char *, int),
db_load(const char *, const char *, struct zoneinfo *,
void endline(FILE *);
int getword(char *, size_t, FILE *, int);
int getttl(FILE *, const char *, int, u_int32_t *, int *);
int getnum(FILE *, const char *, int, int *);
int db_load(const char *, const char *, struct zoneinfo *,
const char *, int);
extern int getnonblank(FILE *, const char *),
getservices(int, char *, FILE *, const char *);
extern char getprotocol(FILE *, const char *);
extern int makename(char *, const char *, int);
extern void db_err(int, char *, int, const char *, int);
extern int parse_sec_rdata(char *inp, int inp_len, int inp_full,
int getnonblank(FILE *, const char *, int);
int getservices(int, char *, FILE *, const char *);
char getprotocol(FILE *, const char *);
int makename(char *, const char *, int);
void db_err(int, char *, int, const char *, int);
int parse_sec_rdata(char *inp, int inp_len, int inp_full,
u_char *data, int data_len,
FILE *fp, struct zoneinfo *zp,
char *domain, u_int32_t ttl,
@@ -146,40 +146,37 @@ extern int parse_sec_rdata(char *inp, int inp_len, int inp_full,
/* --from db_load.c-- */
/* ++from db_glue.c++ */
extern void buildservicelist(void),
destroyservicelist(void),
buildprotolist(void),
destroyprotolist(void),
getname(struct namebuf *, char *, int);
extern int servicenumber(const char *),
protocolnumber(const char *),
get_class(const char *);
extern u_int nhash(const char *);
extern const char *protocolname(int),
*servicename(u_int16_t, const char *);
#ifndef BSD
extern int getdtablesize(void);
#endif
extern struct databuf *rm_datum(struct databuf *,
struct namebuf *,
struct databuf *,
struct databuf **);
extern struct namebuf *rm_name(struct namebuf *,
struct namebuf **,
struct namebuf *);
extern void rm_hash(struct hashbuf *);
extern void db_freedata(struct databuf *);
extern void db_lame_add(char *zone, char *server, time_t when);
extern time_t db_lame_find(char *zone, struct databuf *dp);
extern void db_lame_clean(void);
extern void db_lame_destroy(void);
void buildservicelist(void);
void destroyservicelist(void);
void buildprotolist(void);
void destroyprotolist(void);
void getname(struct namebuf *, char *, int);
int servicenumber(const char *);
int protocolnumber(const char *);
int get_class(const char *);
u_int nhash(const char *);
const char * protocolname(int);
const char * servicename(u_int16_t, const char *);
struct databuf * rm_datum(struct databuf *,
struct namebuf *,
struct databuf *,
struct databuf **);
struct namebuf * rm_name(struct namebuf *,
struct namebuf **,
struct namebuf *);
void rm_hash(struct hashbuf *);
void db_freedata(struct databuf *);
void db_lame_add(char *zone, char *server, time_t when);
time_t db_lame_find(char *zone, struct databuf *dp);
void db_lame_clean(void);
void db_lame_destroy(void);
/* --from db_glue.c-- */
/* ++from db_lookup.c++ */
extern struct namebuf *nlookup(const char *, struct hashbuf **,
const char **, int);
extern struct namebuf *np_parent __P((struct namebuf *));
extern int match(struct databuf *, int, int),
struct namebuf * nlookup(const char *, struct hashbuf **,
const char **, int);
struct namebuf * np_parent(struct namebuf *);
int match(struct databuf *, int, int),
nxtmatch(const char *, struct databuf *,
struct databuf *),
rrmatch(const char *, struct databuf *,
@@ -187,8 +184,8 @@ extern int match(struct databuf *, int, int),
/* --from db_lookup.c-- */
/* ++from db_ixfr.c++ */
struct ns_updrec * ixfr_get_change_list(struct zoneinfo *, u_int32_t,
u_int32_t);
ns_deltalist * ixfr_get_change_list(struct zoneinfo *, u_int32_t,
u_int32_t);
int ixfr_have_log(struct zoneinfo *, u_int32_t,
u_int32_t);
/* --from db_ixfr.c++ */
@@ -204,6 +201,7 @@ int db_set_update(char *name, struct databuf *dp,
int *rrcount, int line,
const char *file);
/* --from db_sec.c-- */
/* ++from db_tsig.c++ */
char * tsig_alg_name(int value);
int tsig_alg_value(char *name);
+3 -2
View File
@@ -1,6 +1,6 @@
/*
* from db.h 4.16 (Berkeley) 6/1/90
* $Id: db_glob.h,v 8.12 1999/08/08 21:10:01 vixie Exp $
* $Id: db_glob.h,v 8.14 2000/04/21 06:54:02 vixie Exp $
*/
/*
@@ -57,7 +57,7 @@
*/
/*
* Portions Copyright (c) 1996-1999 by Internet Software Consortium.
* Portions Copyright (c) 1996-2000 by Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -95,6 +95,7 @@ DECL struct hashbuf *fcachetab INIT(NULL);
/* state of ns_reload() and ns_reconfig(). */
DECL int reloading INIT(0);
DECL int reconfiging INIT(0);
DECL int noexpired INIT(0);
DECL const int hashsizes[]
#ifdef MAIN_PROGRAM
+4 -13
View File
@@ -1,6 +1,6 @@
#if !defined(lint) && !defined(SABER)
static const char sccsid[] = "@(#)db_glue.c 4.4 (Berkeley) 6/1/90";
static const char rcsid[] = "$Id: db_glue.c,v 8.39 1999/10/15 19:48:57 vixie Exp $";
static const char rcsid[] = "$Id: db_glue.c,v 8.42 2000/12/23 08:14:35 vixie Exp $";
#endif /* not lint */
/*
@@ -57,7 +57,7 @@ static const char rcsid[] = "$Id: db_glue.c,v 8.39 1999/10/15 19:48:57 vixie Exp
*/
/*
* Portions Copyright (c) 1996-1999 by Internet Software Consortium.
* Portions Copyright (c) 1996-2000 by Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -345,17 +345,14 @@ rm_datum(struct databuf *dp, struct namebuf *np, struct databuf *pdp,
np->n_data = ndp;
else
pdp->d_next = ndp;
#ifdef BIND_UPDATE
if (savedpp != NULL) {
/* mark deleted or pending deletion */
dp->d_mark |= D_MARK_DELETED;
dp->d_next = *savedpp;
DRCNTINC(dp);
*savedpp = dp;
} else
dp->d_next = NULL;
#else
dp->d_next = NULL;
#endif
dp->d_flags &= ~DB_F_ACTIVE;
DRCNTDEC(dp);
if (dp->d_rcnt) {
@@ -381,10 +378,7 @@ rm_datum(struct databuf *dp, struct namebuf *np, struct databuf *pdp,
"rm_datum: rcnt = %d", dp->d_rcnt);
}
} else
#ifdef BIND_UPDATE
if (savedpp == NULL)
#endif
db_freedata(dp);
db_freedata(dp);
return (ndp);
}
@@ -439,9 +433,6 @@ getname(struct namebuf *np, char *buf, int buflen) {
while (np != NULL) {
i = (int) NAMELEN(*np);
if (i + 1 >= buflen) {
*cp = '\0';
ns_info(ns_log_db,
"domain name too long: %s...", buf);
strcpy(buf, "Name_Too_Long");
return;
}
+151 -88
View File
@@ -1,6 +1,6 @@
#if !defined(lint) && !defined(SABER)
static char rcsid[] = "$Id: db_ixfr.c,v 8.18 1999/10/15 19:48:57 vixie Exp $";
#endif /* not lint */
static char rcsid[] = "$Id: db_ixfr.c,v 8.23 2000/12/23 08:14:35 vixie Exp $";
#endif
/*
* Portions Copyright (c) 1999 by Check Point Software Technologies, Inc.
@@ -51,81 +51,137 @@ static char rcsid[] = "$Id: db_ixfr.c,v 8.18 1999/10/15 19:48:57 vixie Exp $
#include <isc/eventlib.h>
#include <isc/logging.h>
#include <isc/memcluster.h>
#include "port_after.h"
#include "named.h"
#define DBIXFR_ERROR -1
#define DBIXFR_FOUND_RR 2
#define DBIXFR_END 3
#define DBIXFR_ERROR (-1)
#define DBIXFR_FOUND_RR 2
#define DBIXFR_END 3
static int ixfr_getrr(struct zoneinfo *, FILE *, const char *, char *,
ns_updrec **, u_int32_t *, u_int32_t *);
static int ixfr_getdelta(struct zoneinfo *, FILE *, const char *, char *,
ns_updque *, u_int32_t *, u_int32_t *);
ns_updrec *
ns_deltalist *
ixfr_get_change_list(struct zoneinfo *zp,
u_int32_t from_serial, u_int32_t to_serial)
{
FILE * fp;
FILE * fp = NULL;
u_int32_t old_serial, new_serial;
char origin[MAXDNAME];
struct namebuf *np, *listnp, *finlistnp;
LIST(ns_updrec) listuprec;
int ret, mode;
ns_deltalist *dlhead = NULL;
int ret;
ns_updrec *uprec;
ns_delta *dl;
if (SEQ_GT(from_serial, to_serial))
return (NULL);
listnp = finlistnp = NULL;
INIT_LIST(listuprec);
dlhead = memget(sizeof(*dlhead));
if (dlhead == NULL)
return (NULL);
INIT_LIST(*dlhead);
if ((fp = fopen(zp->z_ixfr_base, "r")) == NULL) {
ns_warning(ns_log_db, "%s: %s",
zp->z_ixfr_base, strerror(errno));
return (NULL);
goto cleanup;
}
strcpy(origin, zp->z_origin);
lineno = 1;
np = NULL;
mode = 0;
old_serial = new_serial = 0;
for (;;) {
ret = ixfr_getrr(zp, fp, zp->z_ixfr_base, origin, &uprec,
&old_serial, &new_serial);
dl = memget(sizeof *dl);
if (dl == NULL) {
ns_warning(ns_log_db,
"ixfr_get_change_list: out of memory");
goto cleanup;
}
INIT_LINK(dl, d_link);
INIT_LIST(dl->d_changes);
ret = ixfr_getdelta(zp, fp, zp->z_ixfr_base, origin, &dl->d_changes,
&old_serial, &new_serial);
switch (ret) {
case DBIXFR_ERROR:
(void) my_fclose(fp);
ns_warning(ns_log_db, "Logical error in %s line %d",
zp->z_ixfr_base, lineno);
return (NULL);
ns_warning(ns_log_db, "Logical error in %s: unlinking",
zp->z_ixfr_base);
unlink(zp->z_ixfr_base);
goto cleanup;
case DBIXFR_FOUND_RR:
if (EMPTY(listuprec)) {
ns_debug(ns_log_default, 4, "ixfr_getdelta DBIXFR_FOUND_RR (%s)",
zp->z_origin);
if (EMPTY(*dlhead)) {
/* skip updates prior to the one we want */
if (uprec->r_zone != from_serial) {
while (uprec != NULL) {
ns_updrec *prev;
uprec = HEAD(dl->d_changes);
INSIST(uprec != NULL);
if ((uprec->r_zone < from_serial) ||
(uprec->r_zone > to_serial))
{
while ((uprec = HEAD(dl->d_changes)) != NULL) {
UNLINK(dl->d_changes, uprec, r_link);
if (uprec->r_dp != NULL)
db_freedata(uprec->r_dp);
db_freedata(uprec->r_dp);
uprec->r_dp = NULL;
prev = PREV(uprec, r_link);
res_freeupdrec(uprec);
uprec = prev;
}
memput(dl, sizeof *dl);
break;
}
else if (uprec->r_zone > from_serial) {
/* missed the boat */
ns_debug(ns_log_default, 3,
"ixfr_getdelta first SOA is %d, asked for %d (%s)",
uprec->r_zone,
from_serial,
zp->z_origin);
goto cleanup;
}
}
APPEND(listuprec, uprec, r_link);
/* continue; */
ns_debug(ns_log_default, 4,
"adding to change list (%s)",
zp->z_origin);
APPEND(*dlhead, dl, d_link);
break;
case DBIXFR_END:
ns_debug(ns_log_default, 4,
"ixfr_getdelta DBIXFR_END (%s)",
zp->z_origin);
(void) my_fclose(fp);
return (HEAD(listuprec));
memput(dl, sizeof *dl);
return (dlhead);
default:
(void) my_fclose(fp);
if (dl != NULL)
memput(dl, sizeof *dl);
return (NULL);
}
}
cleanup:
if (fp != NULL)
(void) my_fclose(fp);
while ((dl = HEAD(*dlhead)) != NULL) {
UNLINK(*dlhead, dl, d_link);
while ((uprec = HEAD(dl->d_changes)) != NULL) {
UNLINK(dl->d_changes, uprec, r_link);
if (uprec->r_dp != NULL)
db_freedata(uprec->r_dp);
uprec->r_dp = NULL;
res_freeupdrec(uprec);
}
memput(dl, sizeof *dl);
}
memput(dlhead, sizeof *dlhead);
return (NULL);
}
/*
@@ -137,7 +193,7 @@ ixfr_get_change_list(struct zoneinfo *zp,
*
* returns:
* 0 = serial number is up to date
* 1 = transision is possible
* 1 = transmission is possible
* -1 = error while opening the ixfr transaction log
* -2 = error in parameters
* -3 = logical error in the history file
@@ -147,14 +203,17 @@ ixfr_have_log(struct zoneinfo *zp, u_int32_t from_serial, u_int32_t to_serial)
{
FILE *fp;
u_int32_t old_serial = 0, new_serial = 0;
u_int32_t last_serial = 0;
u_int32_t first_serial = 0;
char buf[BUFSIZ];
char *cp;
struct stat st;
int nonempty_lineno = -1, prev_pktdone = 0, cont = 0,
inside_next = 0;
int err;
int first = 0;
int rval = 0;
int id, rcode = NOERROR;
if (SEQ_GT(from_serial, to_serial))
return (-2);
if (from_serial == to_serial)
@@ -162,6 +221,10 @@ ixfr_have_log(struct zoneinfo *zp, u_int32_t from_serial, u_int32_t to_serial)
/* If there is no log file, just return. */
if (zp->z_ixfr_base == NULL || zp->z_updatelog == NULL)
return (-1);
if (zp->z_serial_ixfr_start > 0) {
if (from_serial >= zp->z_serial_ixfr_start)
return (1);
}
if (stat(zp->z_ixfr_base, &st) < 0) {
if (errno != ENOENT)
ns_error(ns_log_db,
@@ -176,17 +239,18 @@ ixfr_have_log(struct zoneinfo *zp, u_int32_t from_serial, u_int32_t to_serial)
}
if (fgets(buf, sizeof(buf), fp) == NULL) {
ns_error(ns_log_update, "fgets() from %s failed: %s",
zp->z_updatelog, strerror(errno));
zp->z_ixfr_base, strerror(errno));
fclose(fp);
return (-1);
}
if (strcmp(buf, LogSignature) != 0) {
ns_error(ns_log_update, "invalid log file %s",
zp->z_updatelog);
zp->z_ixfr_base);
fclose(fp);
return (-3);
}
lineno = 1;
first = 1;
for (;;) {
if (getword(buf, sizeof buf, fp, 0)) {
nonempty_lineno = lineno;
@@ -214,12 +278,13 @@ ixfr_have_log(struct zoneinfo *zp, u_int32_t from_serial, u_int32_t to_serial)
if (cp != NULL)
lineno++;
if (sscanf((char *) cp, "%u", &old_serial)) {
if (first == 1) {
first = 0;
first_serial = old_serial;
}
last_serial = old_serial;
if (from_serial >= old_serial) {
fclose(fp);
return (1);
} else {
fclose(fp);
return (-1);
rval = 1;
}
}
prev_pktdone = 1;
@@ -232,14 +297,16 @@ ixfr_have_log(struct zoneinfo *zp, u_int32_t from_serial, u_int32_t to_serial)
if (cp == NULL ||
sscanf((char *) cp, "from %u to %u",
&old_serial, &new_serial) != 2) {
fclose(fp);
return (-3);
rval = -3;
break;
} else if (from_serial >= old_serial) {
fclose(fp);
return (1);
if (first == 1) {
first = 0;
first_serial = old_serial;
}
last_serial = old_serial;
rval = 1;
}
fclose(fp);
return (-1);
}
if (prev_pktdone) {
prev_pktdone = 0;
@@ -248,7 +315,19 @@ ixfr_have_log(struct zoneinfo *zp, u_int32_t from_serial, u_int32_t to_serial)
}
}
fclose(fp);
return (0);
if (last_serial +1 < zp->z_serial) {
ns_warning(ns_log_db,
"%s: File Deleted. Found gap between serial:"
" %d and current serial: %d",
zp->z_ixfr_base, last_serial, zp->z_serial);
(void) unlink(zp->z_ixfr_base);
rval = -3;
}
if (from_serial < first_serial || from_serial > last_serial)
rval = -3;
if (rval == 1)
zp->z_serial_ixfr_start = first_serial;
return (rval);
}
/* from db_load.c */
@@ -278,12 +357,7 @@ static struct map m_opcode[] = {
#define M_TYPE_CNT m_type_cnt
/*
* int
* ixfr_getrr(struct zoneinfo *zp, FILE *fp,
* const char *filename, char *origin, struct namebuf **np,
* u_int32_t *old_serial, u_int32_t *new_serial)
*
* read a line from the historic of a zone.
* read a line from the history of a zone.
*
* returns:
*
@@ -292,20 +366,17 @@ static struct map m_opcode[] = {
* DBIXFR_END = end of file
*/
static int
ixfr_getrr(struct zoneinfo *zp, FILE *fp, const char *filename, char *origin,
ns_updrec **uprec, u_int32_t *old_serial,
ixfr_getdelta(struct zoneinfo *zp, FILE *fp, const char *filename, char *origin,
ns_updque *listuprec, u_int32_t *old_serial,
u_int32_t *new_serial)
{
static int read_soa, read_ns, rrcount;
char data[MAXDATA], dnbuf[MAXDNAME], sclass[3];
const char *errtype = "Database";
char *dname, *cp, *cp1;
char buf[MAXDATA];
u_int32_t serial, ttl;
int nonempty_lineno = -1, prev_pktdone = 0, cont = 0,
inside_next = 0;
int id, rcode = NOERROR;
int id;
int i, c, section, opcode, matches, zonenum, err, multiline;
int type, class;
u_int32_t n;
@@ -314,9 +385,7 @@ ixfr_getrr(struct zoneinfo *zp, FILE *fp, const char *filename, char *origin,
int zonelist[MAXDNAME];
struct databuf *dp;
struct in_addr ina;
struct sockaddr_in empty_from;
int datasize;
ns_updque listuprec;
ns_updrec * rrecp;
u_long l;
@@ -325,7 +394,6 @@ ixfr_getrr(struct zoneinfo *zp, FILE *fp, const char *filename, char *origin,
err = 0;
transport = primary_trans;
lineno = 1;
INIT_LIST(listuprec);
for (;;) {
if (!getword(buf, sizeof buf, fp, 0)) {
if (lineno == (nonempty_lineno + 1) && !(feof(fp))) {
@@ -337,11 +405,10 @@ ixfr_getrr(struct zoneinfo *zp, FILE *fp, const char *filename, char *origin,
}
/*
* Empty line or EOF.
*
* Marks completion of current update packet.
*/
if (feof(fp))
break;
inside_next = 0;
prev_pktdone = 1;
cont = 1;
} else {
nonempty_lineno = lineno;
@@ -349,15 +416,12 @@ ixfr_getrr(struct zoneinfo *zp, FILE *fp, const char *filename, char *origin,
if (!strcasecmp(buf, "[DYNAMIC_UPDATE]") ||
!strcasecmp(buf, "[IXFR_UPDATE]")) {
err = 0;
rcode = NOERROR;
cp = fgets(buf, sizeof buf, fp);
if (cp != NULL)
lineno++;
if (cp == NULL || !sscanf((char *) cp, "id %d", &id))
id = -1;
inside_next = 1;
prev_pktdone = 1;
cont = 1;
} else if (!strcasecmp(buf, "[INCR_SERIAL]")) {
/* XXXRTH not enough error checking here */
@@ -380,14 +444,11 @@ ixfr_getrr(struct zoneinfo *zp, FILE *fp, const char *filename, char *origin,
lineno++;
}
if (prev_pktdone) {
if (!EMPTY(listuprec)) {
if (!EMPTY(*listuprec)) {
n++;
*uprec = TAIL(listuprec);
return (DBIXFR_FOUND_RR);
}
prev_pktdone = 0;
if (feof(fp))
break;
}
if (cont) {
cont = 0;
@@ -418,7 +479,7 @@ ixfr_getrr(struct zoneinfo *zp, FILE *fp, const char *filename, char *origin,
cp = fgets(buf, sizeof buf, fp);
if (!cp)
*buf = '\0';
n = sscanf(cp, "origin %s class %s serial %ul",
n = sscanf(cp, "origin %s class %s serial %lu",
origin, sclass, &serial);
if (n != 3 || ns_samename(origin, zp->z_origin) != 1)
err++;
@@ -573,14 +634,15 @@ ixfr_getrr(struct zoneinfo *zp, FILE *fp, const char *filename, char *origin,
err++;
break;
}
c = getnonblank(fp, zp->z_updatelog);
c = getnonblank(fp, zp->z_updatelog, 0);
if (c == '(') {
multiline = 1;
} else {
multiline = 0;
ungetc(c, fp);
}
n = getnum(fp, zp->z_updatelog, GETNUM_SERIAL);
n = getnum(fp, zp->z_updatelog, GETNUM_SERIAL,
&multiline);
if (getnum_error) {
err++;
break;
@@ -600,11 +662,13 @@ ixfr_getrr(struct zoneinfo *zp, FILE *fp, const char *filename, char *origin,
n = l;
PUTLONG(n, cp);
}
if (multiline &&
getnonblank(fp, zp->z_updatelog) != ')')
{
err++;
break;
if (multiline) {
c = getnonblank(fp, zp->z_updatelog, 1);
if (c != ')') {
ungetc(c, fp);
err++;
break;
}
}
endline(fp);
n = cp - data;
@@ -800,9 +864,7 @@ ixfr_getrr(struct zoneinfo *zp, FILE *fp, const char *filename, char *origin,
ns_debug(ns_log_update, 1,
"merge of update id %d failed due to error at line %d",
id, lineno);
memset(&empty_from, 0, sizeof empty_from);
free_rrecp(&listuprec, rcode, empty_from);
continue;
return (DBIXFR_ERROR);
}
rrecp = res_mkupdrec(section, dname, class, type, ttl);
if (section != S_ZONE) {
@@ -822,7 +884,7 @@ ixfr_getrr(struct zoneinfo *zp, FILE *fp, const char *filename, char *origin,
ns_updrec *arp;
int foundmatch;
arp = TAIL(listuprec);
arp = TAIL(*listuprec);
foundmatch = 0;
while (arp) {
if (arp->r_section == S_UPDATE &&
@@ -837,7 +899,7 @@ ixfr_getrr(struct zoneinfo *zp, FILE *fp, const char *filename, char *origin,
db_cmp(arp->r_dp, dp) == 0) {
db_freedata(dp);
db_freedata(arp->r_dp);
UNLINK(listuprec, arp, r_link);
UNLINK(*listuprec, arp, r_link);
res_freeupdrec(arp);
res_freeupdrec(rrecp);
foundmatch = 1;
@@ -849,7 +911,7 @@ ixfr_getrr(struct zoneinfo *zp, FILE *fp, const char *filename, char *origin,
continue;
}
APPEND(listuprec, rrecp, r_link);
APPEND(*listuprec, rrecp, r_link);
/* Override zone number with current zone serial number */
rrecp->r_zone = serial;
}
@@ -859,3 +921,4 @@ ixfr_getrr(struct zoneinfo *zp, FILE *fp, const char *filename, char *origin,
return (DBIXFR_END);
}
+107 -33
View File
@@ -1,6 +1,6 @@
#if !defined(lint) && !defined(SABER)
static const char sccsid[] = "@(#)db_load.c 4.38 (Berkeley) 3/2/91";
static const char rcsid[] = "$Id: db_load.c,v 8.97 1999/10/30 03:21:35 vixie Exp $";
static const char rcsid[] = "$Id: db_load.c,v 8.110 2001/01/25 05:50:53 marka Exp $";
#endif /* not lint */
/*
@@ -82,7 +82,7 @@ static const char rcsid[] = "$Id: db_load.c,v 8.97 1999/10/30 03:21:35 vixie Exp
*/
/*
* Portions Copyright (c) 1996-1999 by Internet Software Consortium.
* Portions Copyright (c) 1996-2000 by Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -252,6 +252,7 @@ db_load(const char *filename, const char *in_origin,
int genstart, genend, genstep;
char *thisfile;
void *state = NULL;
int loggenerr;
empty_from.sin_family = AF_INET;
empty_from.sin_addr.s_addr = htonl(INADDR_ANY);
@@ -267,7 +268,16 @@ db_load(const char *filename, const char *in_origin,
switch (zp->z_type) {
case Z_PRIMARY:
/* Any updates should be saved before we attempt to reload. */
INSIST((zp->z_flags & (Z_NEED_DUMP|Z_NEED_SOAUPDATE)) == 0);
case Z_HINT:
if(filename == NULL) {
ns_error(ns_log_load,
"Required filename not specified for Hint zone");
zp->z_flags |= Z_DB_BAD;
zp->z_ftime = 0;
return (0);
}
transport = primary_trans;
break;
case Z_SECONDARY:
@@ -292,6 +302,7 @@ db_load(const char *filename, const char *in_origin,
default_warn = 1;
clev = nlabels(in_origin);
filenames = NULL;
zp->z_minimum = USE_MINIMUM;
}
ttl = default_ttl;
@@ -311,7 +322,10 @@ db_load(const char *filename, const char *in_origin,
ns_warning(ns_log_load, "db_load could not open: %s: %s",
filename, strerror(errno));
zp->z_ftime = 0;
return (-1);
if (ininclude)
return (-1);
errs = -1;
goto cleanup;
}
if (zp->z_type == Z_HINT) {
dbflags = DB_NODATA | DB_NOHINTS;
@@ -358,7 +372,8 @@ db_load(const char *filename, const char *in_origin,
endline(fp);
}
didinclude = 1;
errs += db_load(buf, tmporigin, zp, domain, ISNOTIXFR);
i = db_load(buf, tmporigin, zp, domain, ISNOTIXFR);
errs += (i == -1) ? 1 : i;
continue;
case ORIGIN:
@@ -410,10 +425,21 @@ db_load(const char *filename, const char *in_origin,
}
if (!getword(genrhs, sizeof(genrhs), fp, 2))
ERRTOZ("$GENERATE missing RHS");
loggenerr = 1;
for (i = genstart; i <= genend; i += genstep) {
if (genname(genlhs, i, origin, domain,
sizeof domain) == -1)
ERRTOZ("$GENERATE genname LHS failed");
if (!ns_samedomain(domain, zp->z_origin)) {
/* Log first per $GENERATE. */
if (loggenerr) {
ns_info(ns_log_load,
"%s:%d: $GENERATE LHS out of zone (ignored)",
filename, lineno);
loggenerr = 0;
}
continue;
}
context = ns_ownercontext(type, transport);
if (!ns_nameok(NULL, domain, class, zp, transport,
context, domain, inaddr_any)) {
@@ -526,7 +552,7 @@ db_load(const char *filename, const char *in_origin,
ns_warning(ns_log_load,
"Zone \"%s\" (file %s): %s",
zp->z_origin, filename,
"No default TTL set using SOA minimum instead");
"No default TTL ($TTL <value>) set, using SOA minimum instead");
default_warn = 0;
}
ttl = (u_int32_t)default_ttl;
@@ -664,7 +690,7 @@ db_load(const char *filename, const char *in_origin,
filename, lineno, domain,
zp->z_origin);
}
c = getnonblank(fp, filename);
c = getnonblank(fp, filename, 0);
if (c == '(') {
multiline = 1;
} else {
@@ -673,7 +699,8 @@ db_load(const char *filename, const char *in_origin,
}
serial = zp->z_serial;
zp->z_serial = getnum(fp, filename,
GETNUM_SERIAL);
GETNUM_SERIAL,
&multiline);
if (getnum_error)
errs++;
n = (u_int32_t) zp->z_serial;
@@ -742,14 +769,15 @@ db_load(const char *filename, const char *in_origin,
zp->z_minimum = 0;
} else
zp->z_minimum = n;
if (default_ttl == USE_MINIMUM)
if (ttl == USE_MINIMUM)
ttl = n;
n = cp - (char *)data;
if (multiline) {
buf[0] = getnonblank(fp, filename);
buf[0] = getnonblank(fp, filename, 1);
buf[1] = '\0';
if (buf[0] != ')')
ERRTO("SOA \")\"");
multiline = 0;
endline(fp);
}
read_soa++;
@@ -802,7 +830,8 @@ db_load(const char *filename, const char *in_origin,
PUTSHORT((u_int16_t)n, cp);
/* Preference */
n = getnum(fp, filename, GETNUM_NONE);
n = getnum(fp, filename, GETNUM_NONE,
&multiline);
if (getnum_error || n > 65536)
ERRTO("NAPTR Preference");
PUTSHORT((u_int16_t)n, cp);
@@ -869,12 +898,14 @@ db_load(const char *filename, const char *in_origin,
PUTSHORT((u_int16_t)n, cp);
if (type == ns_t_srv) {
n = getnum(fp, filename, GETNUM_NONE);
n = getnum(fp, filename, GETNUM_NONE,
&multiline);
if (getnum_error || n > 65536)
ERRTO("SRV RR");
PUTSHORT((u_int16_t)n, cp);
n = getnum(fp, filename, GETNUM_NONE);
n = getnum(fp, filename, GETNUM_NONE,
&multiline);
if (getnum_error || n > 65536)
ERRTO("SRV RR");
PUTSHORT((u_int16_t)n, cp);
@@ -971,7 +1002,10 @@ db_load(const char *filename, const char *in_origin,
case ns_t_cert:
case ns_t_sig: {
char *errmsg = NULL;
int ret = parse_sec_rdata(buf, sizeof(buf), 0,
int ret;
if (ttl == USE_MINIMUM) /* no ttl set */
ttl = 0;
ret = parse_sec_rdata(buf, sizeof(buf), 0,
data, sizeof(data),
fp, zp, domain, ttl,
type, domain_ctx,
@@ -1022,6 +1056,8 @@ db_load(const char *filename, const char *in_origin,
zp->z_origin);
continue;
}
if (ttl == USE_MINIMUM) /* no ttl set */
ttl = 0;
dp = savedata(class, type, (u_int32_t)ttl,
(u_char *)data, (int)n);
dp->d_zone = zp - zones;
@@ -1083,18 +1119,29 @@ db_load(const char *filename, const char *in_origin,
zp->z_origin, filename, msg);
}
}
errs += purge_nonglue(zp->z_origin,
(dataflags & DB_F_HINT) ? fcachetab :
hashtab, zp->z_class,
zp->z_type == z_master);
cleanup:
while (filenames) {
fn = filenames;
filenames = filenames->next;
freestr(fn->name);
memput(fn, sizeof *fn);
}
if (errs != 0)
ns_warning(ns_log_load,
if (errs != 0) {
if (errs != -1)
ns_warning(ns_log_load,
"%s zone \"%s\" (%s) rejected due to errors (serial %u)",
zoneTypeString(zp->z_type), zp->z_origin,
p_class(zp->z_class), zp->z_serial);
else
zoneTypeString(zp->z_type),
zp->z_origin,
p_class(zp->z_class), zp->z_serial);
if ((zp->z_flags & Z_NOTIFY) != 0)
ns_stopnotify(zp->z_origin, zp->z_class);
do_reload(zp->z_origin, zp->z_type, zp->z_class,
loading);
} else
ns_info(ns_log_load,
"%s zone \"%s\" (%s) loaded (serial %u)",
zoneTypeString(zp->z_type), zp->z_origin,
@@ -1115,8 +1162,8 @@ db_load(const char *filename, const char *in_origin,
void
db_err(int err, char *domain, int type, const char *filename, int lineno) {
if (filename != NULL && err == CNAMEANDOTHER)
ns_notice(ns_log_load, "%s:%d:%s: CNAME and OTHER data error",
filename, lineno, domain);
ns_warning(ns_log_load, "%s:%d:%s: CNAME and OTHER data error",
filename, lineno, domain);
if (err != DATAEXISTS)
ns_debug(ns_log_load, 1, "update failed %s %d",
domain, type);
@@ -1353,7 +1400,7 @@ getttl(FILE *fp, const char *fn, int lineno, u_int32_t *ttl, int *multiline) {
return (-1);
}
if (*multiline) {
ch = getnonblank(fp, fn);
ch = getnonblank(fp, fn, 1);
if (ch == EOF)
return (-1);
if (ch == ';')
@@ -1434,7 +1481,7 @@ getallwords(char *buf, size_t size, FILE *fp, int preserve) {
}
int
getnum(FILE *fp, const char *src, int opt) {
getnum(FILE *fp, const char *src, int opt, int *multiline) {
int c, n;
int seendigit = 0;
int seendecimal = 0;
@@ -1448,8 +1495,12 @@ getnum(FILE *fp, const char *src, int opt) {
#endif
for (n = 0; (c = getc(fp)) != EOF; ) {
if (isspace(c)) {
if (c == '\n')
lineno++;
if (c == '\n') {
if (*multiline)
lineno++;
else if (!seendigit)
goto eol;
}
if (seendigit)
break;
continue;
@@ -1457,8 +1508,12 @@ getnum(FILE *fp, const char *src, int opt) {
if (c == ';') {
while ((c = getc(fp)) != EOF && c != '\n')
;
if (c == '\n')
lineno++;
if (c == '\n') {
if (*multiline)
lineno++;
else if (!seendigit)
goto eol;
}
if (seendigit)
break;
continue;
@@ -1528,32 +1583,50 @@ getnum(FILE *fp, const char *src, int opt) {
src, lineno, n+m);
}
return (n + m);
eol:
ns_error(ns_log_db, "%s:%d: unexpected end of line", src, lineno);
getnum_error = 1;
(void) ungetc(c, fp);
return (0);
}
#ifndef BIND_UPDATE
static
#endif
int
getnonblank(FILE *fp, const char *src) {
getnonblank(FILE *fp, const char *src, int multiline) {
int c;
while ((c = getc(fp)) != EOF) {
if (isspace(c)) {
if (c == '\n')
lineno++;
if (c == '\n') {
if (multiline)
lineno++;
else
goto eol;
}
continue;
}
if (c == ';') {
while ((c = getc(fp)) != EOF && c != '\n')
;
if (c == '\n')
lineno++;
if (c == '\n') {
if (multiline)
lineno++;
else
goto eol;
}
continue;
}
return (c);
}
ns_info(ns_log_db, "%s:%d: unexpected EOF", src, lineno);
return (EOF);
eol:
ns_error(ns_log_db, "%s:%d: unexpected end of line", src, lineno);
/* don't ungetc(c, fp); as the caller will do this. */
return(c);
}
/*
@@ -2078,7 +2151,8 @@ parse_sig_rr(char *buf, int buf_len, u_char *data, int data_size,
if (!getmlword(buf, my_buf_size, fp, 0))
ERRTO("Missing label count");
la = wordtouint32(buf);
if (0 == la || wordtouint32_error || 255 <= la)
if (wordtouint32_error || 255 <= la ||
(0 == la && *domain != '\0'))
ERRTO("Bad label count number");
data[i] = (u_char) la;
i++;
@@ -2104,7 +2178,7 @@ parse_sig_rr(char *buf, int buf_len, u_char *data, int data_size,
} else {
/* Parse and output OTTL; scan TEXP */
origTTL = wordtouint32(buf);
if (0 >= origTTL || wordtouint32_error ||
if (origTTL >= 0 || wordtouint32_error ||
(origTTL > 0x7fffffff))
ERRTO("Original TTL value bad");
cp = &data[i];
+14 -4
View File
@@ -1,6 +1,6 @@
#if !defined(lint) && !defined(SABER)
static const char sccsid[] = "@(#)db_lookup.c 4.18 (Berkeley) 3/21/91";
static const char rcsid[] = "$Id: db_lookup.c,v 8.24 1999/10/15 19:48:58 vixie Exp $";
static const char rcsid[] = "$Id: db_lookup.c,v 8.26 2000/04/21 06:54:03 vixie Exp $";
#endif /* not lint */
/*
@@ -57,7 +57,7 @@ static const char rcsid[] = "$Id: db_lookup.c,v 8.24 1999/10/15 19:48:58 vixie E
*/
/*
* Portions Copyright (c) 1996-1999 by Internet Software Consortium.
* Portions Copyright (c) 1996-2000 by Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -291,8 +291,18 @@ nxtlower(const char *name, struct databuf *dp) {
int
nxtmatch(const char *name, struct databuf *dp1, struct databuf *dp2) {
int dp1_lower, dp2_lower;
if (dp1->d_type != ns_t_nxt || dp2->d_type != ns_t_nxt)
int type1, type2;
if (dp1->d_type == ns_t_sig)
type1 = SIG_COVERS(dp1);
else
type1 = dp1->d_type;
if (dp2->d_type == ns_t_sig)
type2 = SIG_COVERS(dp2);
else
type2 = dp2->d_type;
if (type1 != ns_t_nxt || type2 != ns_t_nxt)
return (0);
dp1_lower = nxtlower(name, dp1);
dp2_lower = nxtlower(name, dp2);
+3 -3
View File
@@ -1,6 +1,6 @@
#if !defined(lint) && !defined(SABER)
static const char sccsid[] = "@(#)db_save.c 4.16 (Berkeley) 3/21/91";
static const char rcsid[] = "$Id: db_save.c,v 8.26 1999/10/13 16:39:02 vixie Exp $";
static const char rcsid[] = "$Id: db_save.c,v 8.28 2000/11/29 06:55:48 marka Exp $";
#endif /* not lint */
/*
@@ -57,7 +57,7 @@ static const char rcsid[] = "$Id: db_save.c,v 8.26 1999/10/13 16:39:02 vixie Exp
*/
/*
* Portions Copyright (c) 1996-1999 by Internet Software Consortium.
* Portions Copyright (c) 1996-2000 by Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -156,7 +156,7 @@ savedata(class, type, ttl, data, size)
dp->d_clev = 0;
dp->d_secure = DB_S_INSECURE;
dp->d_rcode = NOERROR;
dp->d_ns = NULL;
dp->d_addr.s_addr = htonl(0);
dp->d_nstime = 0;
memcpy(dp->d_data, data, dp->d_size);
return (dp);
Loaded 100 of 2983 files, more files were not shown because too many files have changed in this diff. Show more