Commit Graph

2763 Commits

Author SHA1 Message Date
augustss d7a044aeec Add -m option to display minutes left. From dbj@netbsd.org 1999-01-15 00:29:02 +00:00
he 8344625106 Apply patches for mtrace in bin/5598 by yours truly.
This adds decoding of more error and result codes when tracing through
cisco routers running PIM and/or MBGP.
1999-01-14 21:54:10 +00:00
drochner 4ce0dc1c12 enable wsconscfg + wsfontload 1999-01-13 19:43:41 +00:00
garbled 04739cc2af Back out previous removal of BUGS section. 1999-01-13 19:17:14 +00:00
drochner 536eedcc4b utility to download fonts to s wscons display device, currently only
useful for VGA
1999-01-13 19:02:34 +00:00
drochner b43055f3fc add a tool to add/delete virtual screens at runtime 1999-01-13 17:15:44 +00:00
mjacob b81c39082c recover from errno.h changes- how tiresome 1999-01-13 01:01:26 +00:00
garbled 1c8910db02 Inform users of the kernel options necc. to run these programs, and
point them to options(4) for more details.  Also point out that ipf
is necc. for ipnat to function.  Oh, and convert ipnat.8 to mandoc
while I was in here... was easier to convert it then rewrite my stuff
after I noticed..
Closes PR# 4813 by Jeff Thieleke
1999-01-12 18:41:07 +00:00
christos f3fc048278 iPr/6121: Mycroft, diagnostics messages were not helpful. 1999-01-12 15:11:53 +00:00
garbled 1afdca9280 Remove bugs section and blackhole email address per PR# 5247. 1999-01-12 06:53:09 +00:00
kleink 3ed4fcf61e In userland, pull in <errno.h> instead of <sys/errno.h> for the declaration
of errno.
1999-01-11 22:39:59 +00:00
jwise 2badef4d79 Add four big changes:
* portmap is now tcp-wrapped (i.e. obeys hosts.{allow,deny})
	  both for lookups (as `portmap') and for forwarded calls to
	  specific services.

	* the new -l flag, analagous to inetd -l, logs all connections
	  to portmap.

	* the new -s flag causes portmap to suid to the user daemon
	  after binding it's port, so that outgoing connections do
	  not come from privileged ports.  This prevents users from
	  using portmap to get a free privileged port.

	* portmap now _only_ accepts SETs and UNSETs on the loopback
	  interface.  In the past, anyone in the world could do all
	  sorts of nasty things to your portmap tables.  Note that
	  our libc already_only_ uses the loopback interface to
	  register rpc ports.

This work is modeled after/partially taken from Wietse Venema's tcp-
wrapped version of the BSD 4.3 portmap.  It has benefitted greatly from my
discussions with Luke, Matt and many others.
1999-01-11 20:51:09 +00:00
bouyer c8c04d5b9e Properly define ufs_args_t and HAVE_FIELD_UFS_ARGS_T_FSPEC, so that automount
of FFS filesystems works.
1999-01-11 15:57:49 +00:00
tron 4c07384685 Avoid problems when trying to link BIND 8 statically, fixes PR bin/6717
by gnatios Souvatzis.
1999-01-04 00:04:04 +00:00
tron 81714a52c8 Patches supplied by Greg A. Woods in PR bin/6626 to make "pkg_info"
recognize the width of the current terminal.
1998-12-31 00:04:07 +00:00
mcr 63d650cccb HTML documentation files for XNTP, installed in /usr/share/doc/xntp 1998-12-30 20:19:29 +00:00
augustss 0a52ae7e58 Update for the ioctl(USB_DEVICEINFO) API change. 1998-12-29 15:29:41 +00:00
perry 180c29c35d Add the "mailwrapper" program, which is designed to act as a switch
permitting users to choose between sendmail and other mail systems with a
simple configuration file change. Not yet turned on -- this is being
committed so people can beat on it.
1998-12-25 22:06:58 +00:00
christos 62871103f9 Appease gcc-2.8.1, make printf formats more portable. 1998-12-19 15:38:45 +00:00
christos ac20cbee1c PR/6606: Johnny C. Lam: Add -l flag to apmd so that it suspends automagically
when the is a battery low event.
1998-12-19 15:27:58 +00:00
sommerfe 4b41ddc197 Double-check tcp/udp checksum if we get enough data to do it. 1998-12-18 20:28:54 +00:00
thorpej cdee73fd5b Add support for WSCONS, and default to it. If the platform also has
Sun-style fbio, add support for determining this at run-time and switching
to that mode.
1998-12-18 01:15:43 +00:00
perry 3c8d14096b Change hard links for newaliases and mailq into symlinks, to make it
easier to integrate alternative mailers.
1998-12-16 00:48:22 +00:00
tron 5b7db9e865 Remove "named-bootconf" while doing "make clean". 1998-12-15 01:06:04 +00:00
tron 572fc80939 * use better method to write comments to the correct location
* always create an "option" section because "named" will complain
  otherwise
* don't check if directory exists while converting a "directory"
  statement because we might do it on another machine
1998-12-15 01:00:53 +00:00
lukem 2cc5fd4000 * add support for /CHAOS and /HS suffixes to primary & secondary
directives, and add appropriate directives to the zone {} blocks
* change comment delimiter from '//' to '#' (which is more intuitive
  for unix config files)
* KNF formatting (single space indenting is hard to read)
1998-12-14 15:39:12 +00:00
tron 8c2d809b71 Use a little bit of magic suggested by Ken Hornstein to find an
appropriate source address for the UDP packets. Fixes PR bin/4427
by Luke Mewburn.
1998-12-09 22:53:29 +00:00
christos c9f7267c6b Print a clear error message when the reason for not being able to create
the password lock is other than EEXIST.
1998-12-09 12:40:15 +00:00
mrg fdca644f9d - fix typo in a comment
- use the last connection RMPCONN cache correctly, and do not leak
  memory for each connection.
1998-12-09 03:41:42 +00:00
augustss 1b498d2b39 Slight code rearrangement. 1998-12-09 00:57:19 +00:00
jwise 2e6cacfae6 Add an `md5' keyword to mtree, which takes as an argument the MD5 cryptographic
checksum of the file in question, optionally preceeded by `0x'.

This has been tested, and does work, AFAICT.  There is currently no md5 equivalent
of the '-s' flag for use with checksum.
1998-12-06 19:07:53 +00:00
jonathan 92fda0ceb3 Define NLIST_ELF32 for mips native format. Also NLIST_ECOFF (pmax, arc PROMs)
NLIST_AOUT (old pmax bootblocks).
1998-12-05 07:30:38 +00:00
itohy 6b676a3cca getcwd() is not equivalent of getwd() if you want to print an error message. 1998-12-05 03:29:25 +00:00
abs 05c432cdd9 From OpenBSD: ignore requests with bogus network types
Also fix 'from from' -> 'from'
1998-12-04 18:24:16 +00:00
thorpej 6b7fe574f7 Use getcwd(3) instead of getwd(3). 1998-12-03 23:33:10 +00:00
fair 2fc486ea01 This seemingly trivial (and computationally pointless) change shuts up
GCC 2.7.2.2 about "loff" being uninitialized on line 142 on m68k.
1998-12-03 11:20:50 +00:00
msaitoh c4cc4294b5 swap arguments of kill (from am-utils-6.0b2s3) 1998-12-01 12:03:16 +00:00
thorpej e8153d28ba Even though they're u_quad_t's, GCC expects unsigned long long if using
%qu, and u_quad_t's are unsigned longs on LP64 platforms.  So, cast them.
1998-11-29 23:51:44 +00:00
sakamoto 6cd8c4c69f Define NLIST_ELF32 on PowerPC. 1998-11-26 08:11:33 +00:00
augustss 9726cfd1fb Make the copyright header conform to the NetBSD template. 1998-11-25 22:17:06 +00:00
ross efccda2e04 Needs <string.h> 1998-11-24 06:06:31 +00:00
ross 096af13560 Needs an LP64 fix plus a <string.h> 1998-11-24 06:06:10 +00:00
ross a19fc46ab9 Needs <string.h> 1998-11-24 06:05:34 +00:00
ross 0cb059b1db Incorrect void * casts on ns_panic() calls...LP64 warnings...kill kill kill 1998-11-24 06:05:07 +00:00
ross 40ed59e2df Needs <string.h> 1998-11-24 06:00:30 +00:00
msaitoh 89dc16d4dc fix a roff bug 1998-11-22 23:30:29 +00:00
hubertf 9854172140 Remove extra : printed for @cwd,
per PR 6481 by Jim Bernard <jbernard@ox.mines.edu>
1998-11-22 16:22:41 +00:00
mrg 78db9d7d95 merge ipf 3.2.10 1998-11-22 15:17:18 +00:00
mrg 5af5d89cf3 ip filter version 3.2.10 1998-11-22 14:21:44 +00:00
kml fa0f88251d Tweaks to document and support HIPPI-FP driver 1998-11-20 17:23:27 +00:00
tron d993679e1b Add manual page for "named-bootconf". 1998-11-19 21:11:45 +00:00
tron 512419d83a Fix comment. 1998-11-19 19:51:47 +00:00
tron f6d7c60a19 BIND 8 is the default now. 1998-11-19 19:47:33 +00:00
kenh 0c2d06b6ae Add support for running scripts for line power to battery transitions
(and vice versa).
1998-11-19 19:39:14 +00:00
kleink 364dab0e26 If HAVE_STRERROR is defined, be nice and portable and don't grovel sys_errlist. 1998-11-17 18:14:17 +00:00
ws b6cbdcb3ec Shorten name line to fit.
Thanks to Hubert Feyrer (feyrer@rfhs8012.fh-regensburg.de) for pointing this out
1998-11-17 13:04:30 +00:00
ws 2cf75c4c03 Add a utility to allow access to the partitions of a
MBR labeled disk (i.e. a disk partitioned by fdisk)
on any platform (including extended partitions).
1998-11-16 18:44:25 +00:00
abs b0ebb38178 momentarily -> in a moment, to avoid ambiguity. 1998-11-13 22:44:17 +00:00
thorpej e22f339ee7 Direct the user to use nfsstat to print nfs statistics. 1998-11-13 20:56:21 +00:00
thorpej 54ac7be242 Implement support for the vfs. toplevel. 1998-11-13 20:16:49 +00:00
hubertf ba73896f0c Fix some bugs discovered tonight when installing on a fresh 1.3.2
machine:
 - create /var/db/pkg if not there
 - fix wrong handling of findmatchingname() return code, resulting
   in missing /var/db/pkg dir being interpreted as match found
 - only move +BUILD_VERSION and +BUILD_INFO files if they're
   actually present (old pkgs don't have them!)
1998-11-07 23:16:50 +00:00
christos f4e84d3075 PR/6409: Martin Husemann: /etc/exports parsing breaks if file has empty lines. 1998-11-07 18:31:36 +00:00
is f12b956e84 Allow changing of formerly empty passwords. 1998-11-06 13:07:18 +00:00
christos e091e64548 Namespace protection against MAXUID etc. 1998-11-03 15:14:40 +00:00
frueauf d09e131d17 Don't mention /var/yp/yppasswdd.log, nothing supports it. Fixes pr 6393
by Martin J. Laubach and pr 5704 by Geoff Wing.
1998-11-03 10:33:23 +00:00
christos 5b514fad6f include fcntl.h to get O_RDONLY; our headers include too much stuff. 1998-11-02 22:40:11 +00:00
christos a8fd643677 free line returned by fparseln(). 1998-11-02 15:38:26 +00:00
kim be631b22d4 Type mismatch in declaration... NOT (reverted previous change). 1998-11-02 04:00:24 +00:00
kim e756534f00 Renamed USE_VMAILER to NO_SENDMAIL 1998-11-02 03:32:03 +00:00
christos 337e834927 Initialize struct statfs properly while parsing each line. 1998-11-01 18:30:26 +00:00
lukem 5e14541b5b use YPREFIX 1998-11-01 03:51:16 +00:00
hwr 87caa3339a Fix some Typos. 1998-10-31 13:07:02 +00:00
matt e09bc9ea4d Use CPPFLAGS+= for -I addition, not CFLAGS+= 1998-10-30 16:55:13 +00:00
ws e07c836847 Bail out instead of core-dumping if we don't understand the port range operator. 1998-10-30 15:42:57 +00:00
christos bfef833a84 fix the size_t printf and initialize lineno. 1998-10-29 14:13:27 +00:00
christos 11cf3e1970 - KNF, remove extraneous casts
- split up parsing code
- centralize malloc checking
- use fparseln.
1998-10-29 12:57:02 +00:00
ross 5a7c45f748 Fix two ancient bugs involving netgroups where mountd may try to free(3)
a string constant in one place and a null char ** in another.  Why the
recent rather minor changes by Christos uncovered these bugs after so much
time is a mystery to me.
1998-10-29 00:12:11 +00:00
agc 48b4d2e2ba Instead of ignoring any SIGINTs when cleaning up, allow them. The
user might actually know better, just this once.
1998-10-27 19:27:17 +00:00
agc 266128247c Always tell the user about the temporary directory we're about to delete. 1998-10-26 18:01:22 +00:00
agc 3fdf3a6fae Modify pkg_create to recognise Build Information and Version files, when
creating packages, and modify pkg_add to copy the files when a binary
package is added. This preserves the fine-grained version information in
a binary package, and also the options with which the binary package was
built.
1998-10-26 17:39:20 +00:00
hubertf ee768386ba s/freebsd/netbsd/, pointed out by Heiko Rupp 1998-10-26 11:35:00 +00:00
frueauf 26adfcb85a Fix grammatical error, closes pr 6105 by Mason Loring Bliss. 1998-10-24 19:54:44 +00:00
christos dd9db0b0d4 Our MD4Update takes number of bytes not bits. This should fix NT authentication 1998-10-24 18:14:13 +00:00
agc ff77ebb33f Add a -B option to pkg_info to print out the "Build Information" for
packages.
1998-10-21 09:54:09 +00:00
matt f8bd2123f3 vax -> __vax__ 1998-10-20 01:48:14 +00:00
agc e758d0c608 Make the new symlink relative to the name of the symlink, rather than
the target.
1998-10-19 20:15:24 +00:00
perry 33b847b7b8 Don't build sendmail if USE_VMAILER is defined in mk.conf.
This is a temporary kludge to make it easier for vmailer users not to
accidently blow away vmailer when building the world.
1998-10-18 01:06:31 +00:00
christos c5b62f45b1 - rename err -> herr so that we don't conflict with libc
- KNF
- use herr when opening the files too, producing a more useful message.
1998-10-16 14:27:17 +00:00
drochner 452c73a1a2 Prevent sscanf() from overflowing its output buffer(s) if the input
string contains a hostname longer than 255 chars.
Truncates silently now - still better than crashing.
1998-10-15 12:34:21 +00:00
mycroft 4dadf81abe Add a config file for minbar/cvs.fi.
Extract common config switches into a separate file.
1998-10-15 10:24:26 +00:00
tron f3b515c1ec Put back RCS Ids which got clobbered during import. 1998-10-14 20:56:49 +00:00
kim 98c529f1c2 Type mismatch in declaration. 1998-10-14 08:42:21 +00:00
agc 9aea3f2ecb Add -b argument to pkg_info to display the +BUILD_VERSION file for the
binary package, should it exist.
1998-10-13 17:08:28 +00:00
agc 67f5c7183e Get rid of YES and NO definitions. NO was defined but never used.
YES was defined, and one variable was set to YES.  However, it was
never checked, just non-zero comparison was used.
1998-10-13 10:05:38 +00:00
agc 5e8df8cb74 Fixes for Alpha, from Hideo MASUDA (h-masuda@jm3spa.felix.or.jp), in
PR bin/6284, slightly munged about for platforms which aren't LP64.

Also, don't use hardcoded strings (or their lengths) when we've
already defined them in a common header file.
1998-10-13 10:00:09 +00:00
aidan e04cec137b Allow quote-escaping of environment variable names so that they may contain
spaces again.
1998-10-12 22:15:47 +00:00
agc 959d0a0cde + Remove obsolete and unused string functions.
+ Fix a bug introduced when the package name comparison routines were moved -
alternate matching now completes and works properly.
+ Add -R argument to pkg_create, which re-orders any directories in the
generated PLIST into reverse alphabetic order.
+ Add -l argument to pkg_create, which checks that any symbolic links in
the package are relative-to-$PREFIX pathnames, rather than full pathnames.
+ General cleanup elsewhere.
1998-10-12 12:03:24 +00:00
kim b894c055c6 Before running "rm -rf" on a directory chmod the directory and its parent
to u+rwx to make our chances of success better.  The modes for directories
are reset at the end of a sup run, so we don't need to worry about that.

This possibly might mess up the mode of the parent of the top-level dir,
if the top-level changed to a non-directory.  This is probably rare enough
not to care too much about.

XXX: Should probably chmod the containing directory for each non-directory
removal as well, so there wouldn't be complaints about them.  Please feel
free to send in your opinions on that...
1998-10-12 05:19:48 +00:00
scw cae1a093d5 Quell a compiler warning introduced by the last change. 1998-10-11 10:27:46 +00:00
mrg f2fb63efda add support for 4.4BSD file flags. we take a `flags=xxx' parameter,
using the same style of naming as chflags, ls & xinstall use, plus an
additional `none' to turn off a default setting.
1998-10-10 07:50:27 +00:00
agc 7bdbc205e5 Use the same table for input and output of PLISTs. 1998-10-09 19:51:21 +00:00
tron d7d750d262 Fix build problems if object directories are used. 1998-10-09 19:30:02 +00:00
agc 9daf7cc9b2 More cleanup - various bits of KNF.
Use another table when parsing PLIST files - makes this much more extensible.
1998-10-09 18:27:31 +00:00
agc 16ae233008 Some minor KNF.
Lots more to be done.
1998-10-09 11:16:57 +00:00
agc 3679178e31 Make pkg_info a tad more extensible by using a table to hold the strings
to be printed. Also, don't error out if any unexpected input is read -
just log the error, and keep on going.
Fix a slight bug along the way - if there was an @option in the package,
then pkg_info would die.
1998-10-09 11:05:58 +00:00
agc 82f2922229 Fix a bug in pkg_info -f with @pkgcfl entries. 1998-10-09 09:35:39 +00:00
agc 65e1849228 Garbage collect unused variable..
Update documentation accordingly.
1998-10-09 09:22:15 +00:00
jtk 46510bb5d4 make network-location-changed actually work 1998-10-08 14:13:25 +00:00
agc 70c6765099 Eliminate all use of sprintf(3), and replace it with snprintf(3).
Bounds check the @exec and @unexec commands when they are constructed.
1998-10-08 12:57:58 +00:00
agc b6bd49da4e One more piece of lint. 1998-10-08 12:22:54 +00:00
agc e5d1fd5f5a Get rid of some lint.
No functional changes.
1998-10-08 12:15:24 +00:00
tron c8eb5cc943 Copy "named-xfer" binary to "/usr/libexec" not to "/usr/sbin".
Fixes bin/6261 by Geoff C. Wing.
1998-10-08 07:41:57 +00:00
wsanchez c45946d27c Use u_int32_t rather than Sys-V u_long.
Rename err() to mtree_err(), to avoid conflict with libc.
1998-10-08 02:04:55 +00:00
aidan 2169ed2a6f An environment variable name can no longer have spaces in it. This is to
let commands of the form
* * * * * command flag=value
be interpreted as commands instead of environment settings.
1998-10-07 23:18:29 +00:00
christos c7b4cd5f50 Explain what happens when there is no host set specified in the exports
line, or when a netgroup that has no host is in the set.
1998-10-07 14:52:30 +00:00
christos f491057836 Explains what happens when we get SIGTERM... 1998-10-07 14:51:36 +00:00
christos 479c0bbe47 - Add some MIT KRB/NFS pieces, someday I'll commit the rest.
- fix prototypes for signal handlers.
- use constants from rpcsvc/mount.h, instead the RPCMNT crap.
- don't core-dump when finding a netgroup that has no host part,
  complain instead
1998-10-07 14:50:35 +00:00
fvdl 778592d8c3 Shut up gcc. 1998-10-06 15:50:30 +00:00
mrg 16d7f0c241 let chroot take "-u user", "-g group" and "-G group,list,group,..." arguments 1998-10-06 03:47:50 +00:00
matt 224e79dde2 Teach rarpd about interface aliases. 1998-10-06 00:23:55 +00:00
kim 463d00633e Allow "chown/chgrp -R -h" so we can change trees with symbolic links without
affecting stuff pointed to.  Don't allow "-R -L -h" as it would not make sense
(at least not to me) to follow all symbolic links and then use lchown.
1998-10-05 21:37:38 +00:00
tron d5a92147c7 Add support for "limit". 1998-10-05 21:37:18 +00:00
tron 6ed9191311 Fix bug in converting "sortlist", add support for "xfrnets". 1998-10-05 21:06:23 +00:00
itohy ec8a0e8dad Eliminate a memory leak. 1998-10-05 19:50:40 +00:00
tron f8433e7cf9 Invent "USE_BIND8" switch to select BIND 8.1.2 instead of BIND 4.9.6. 1998-10-05 18:15:12 +00:00
tron 55b173081e These files shouldn't have been here at all. 1998-10-05 18:09:54 +00:00
tron a4b6188cd5 Import BIND 8.1.2. 1998-10-05 18:01:57 +00:00
ross a258e2c9b1 Squelch minor LP64-related compiler warning/error (-Werror) 1998-10-05 09:02:28 +00:00
kleink 3eefada6a0 sigemptyset() sa_mask of sigaction to be installed. 1998-10-04 18:43:21 +00:00
hubertf 4cc256a5d1 fix some egcs warnings 1998-10-04 01:48:15 +00:00
hubertf 0151583b9c Teach our tools about dependencies containing wildcards. 1998-10-03 16:24:07 +00:00
hubertf 4c0a9c52a7 In an ideal world, make_playpen() and leave_playpen() would maintain
a stack of directories, we'll do with a save/restore_dirs cludge for
now. => Fixes the bug I mentioned yesterday that shows when one pkg
installs another (depending) pkg via FTP.

Fixed another bug with extract-in-place when the destination dir is
already there.
1998-10-01 21:16:26 +00:00
briggs 67c67dafdc -v shows the version of the mopd suite, not of mopprobe, specifically. 1998-09-30 15:05:01 +00:00
briggs 21cf1380f9 s/contence/contents/ 1998-09-30 14:58:56 +00:00
hwr 9e33951d8e Verify mini-header checksum.
Rearange printing of S-flag.
1998-09-30 08:57:01 +00:00
hwr 59a88e1c7f Update for IPPROTO_MOBILE 1998-09-30 06:16:07 +00:00
mrg 35d49164e0 use daemon(). remove spurious \n from rarperr() call 1998-09-29 09:21:35 +00:00
lukem 9d8ba54bed don't install in /usr/share if NOSHARE is defined 1998-09-29 07:03:37 +00:00
lukem 67fe57924e don't install in /usr/share if NOSHARE is defined 1998-09-29 06:59:53 +00:00
lukem 9dee5d2b46 don't install in /usr/share if NOSHARE is defined 1998-09-27 17:22:03 +00:00
christos ce88ebe827 Propagate the fix to Makefile.inc 1998-09-27 16:30:31 +00:00
christos ee5bcaffb1 Don't add LDADD dependencies in the libamu build. 1998-09-27 16:28:54 +00:00
hwr fadc6762f7 Add for packtes of IPPROTO_MOBILE (55). This is yet another
tunneling protocol which is described in RFC2004.
XXX There is no verification of the miniheader checksum at the moment.
1998-09-25 19:10:25 +00:00
jtk 5372885234 fix synopsis, per pr #6194 1998-09-25 00:47:01 +00:00
marc 3386dbf8ac refer to dhclient-script(8) 1998-09-24 04:45:32 +00:00
marc d09fc7c471 include the appreviation in the synopsis so that man -k works
intelligently.
1998-09-24 04:33:45 +00:00
itohy 20b86c5f48 The return value of setmode(3) is a pointer to malloc()'ed area
and must be freed to avoid memory leaks if called repeatedly.
1998-09-23 19:46:00 +00:00
matt 08e1d890a4 Changes so that BPF readers will get the data in fddi packet aligned along
normal boundaries.  This makes tcpdump much happier.
1998-09-20 02:36:08 +00:00
hwr f781823236 Main is int. From Soren S. Jorvang <soren@t.dk>. 1998-09-17 07:41:11 +00:00
frueauf c548010b99 Fix pr 5071 better after feedback from the Originator Havard Eidnes. 1998-09-14 21:23:07 +00:00