Commit Graph

2900 Commits

Author SHA1 Message Date
mellon
c6b1d8a95d DHCP 2.0b1pl13 1999-02-18 21:48:47 +00:00
abs
e88f10c5f0 Replace compile time RPC_SVC_FG with -f option to run in the foreground. 1999-02-18 06:03:47 +00:00
lukem
d5df3fdbce support $named_flags from rc.conf (this got lost in the upgrade to bind8) 1999-02-17 13:36:00 +00:00
hubertf
4ab7063639 If any other version of this package in stalled, stop. Document this. :) 1999-02-17 12:33:15 +00:00
christos
0b8b373b79 Limit wait time, so that people cannot use this as a flooding tool.
From bugtraq, but fixed differently than suggested.
1999-02-17 07:17:28 +00:00
is
2c7fa23c38 Fix Copyright dates 1999-02-16 23:34:10 +00:00
cjs
b3523bee1d Oops. We don't need limits.h in this program. 1999-02-16 23:27:43 +00:00
cjs
b8bcd9b643 If not root, make sure source address matches a local interface. 1999-02-16 23:18:40 +00:00
is
dc068e0d1f Assign my files to The NetBSD Foundation, Inc. 1999-02-16 22:46:55 +00:00
cjs
8164a79fad Check select() return value, and abort the program if an error is
returned.  Otherwise after sending a packet, select() may return
immediately (if there's an error of some sort) and traceroute
solders on, sending more packets with no delay in between. This is
effectively a small flood attack.
1999-02-16 20:47:24 +00:00
hubertf
36f9d7790a RCS ID police 1999-02-15 04:03:03 +00:00
hubertf
fe10e41ef3 fix RCS ID 1999-02-15 04:00:14 +00:00
hubertf
57d0b9269d RCSID police 1999-02-15 03:59:13 +00:00
lukem
61fbe967cf fix make MKSHARE=no by not protecting MAN=... with MKSHARE != no.
(noted by mjl@netbsd.org)
1999-02-14 00:46:35 +00:00
thorpej
db3ee29b72 Fix a logic error which would have caused a NULL pointer dereference
if the client's IP address wasn't found on the interface's network.
1999-02-13 19:58:29 +00:00
hubertf
e4f74ec4d3 there is no ftplib.3 1999-02-13 17:46:20 +00:00
carrel
8f967beb1b include bsd.own.mk _before_ using MKSHARE 1999-02-13 07:35:52 +00:00
lukem
dcab0210a0 convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.
1999-02-13 02:54:17 +00:00
kleink
b75d68301e <sys/fcntl.h> -> <fcntl.h> 1999-02-12 15:04:00 +00:00
lukem
4ee8c8fdad it's unlikely that 1.4 will ship with support for db backends for
services, and if it does, the work this was going to do could be done
with awk | makedbm ...
1999-02-12 04:24:49 +00:00
cjs
6831000ea5 Don't include bsd.obj.mk here; you can't include it without first
including bsd.own.mk.
1999-02-12 03:01:56 +00:00
mrg
f2aaba6db6 - add -m and -i to change file flags more usefully.
- fix bugs in fileflags checking

all of the above from dr. lex wennmacher <wennmach@geo.Uni-Koeln.DE>
with some error fixes from egcs via myself.
1999-02-11 15:32:23 +00:00
abs
9e3a099478 How I managed to generate bizarre sap packets is one thing, but they did
show up a case where tcpdump tries to access pass the end of a packet.
1999-02-11 07:52:14 +00:00
thorpej
bf316e0bb0 Make sure SIGTERM is blocked in the SIGHUP handler and vice versa. 1999-02-10 03:00:06 +00:00
mjl
99d17e2ca4 Mention -v in usage. Fixes PR 6262 by Erik Bertelsen. 1999-02-08 22:32:58 +00:00
lukem
cb2392ad04 services_mkdb; generate db file from services(5) to increase speed of getserv*() 1999-02-08 03:57:04 +00:00
lukem
9783f22c35 minor grammar & whitespace fixes 1999-02-08 03:29:43 +00:00
perry
24f0c2220e enable mailwrapper 1999-02-05 19:25:10 +00:00
perry
52f97825ea 1) Move sendmail to /usr/libexec/sendmail/sendmail from /usr/sbin/sendmail
mailwrapper now sits in /usr/sbin/sendmail
2) the symlinks being built here are now built by the mailwrapper
   makefile. Comment out the ones here.
1999-02-05 19:22:50 +00:00
perry
8109fa540a We shouldn't count on the user building sendmail. Update the make
file so that it does the symlinking of newaliases and mailq to
/usr/sbin/mailwrapper directly.
1999-02-05 18:23:25 +00:00
thorpej
be28226520 On second thought, don't use atexit(3). Instead, invoke cleanup() directly
from catch_sigterm() before calling exit().  This follows the style of
the rest of the code.
1999-02-05 18:17:27 +00:00
perry
536ca3b1a2 update example to new sendmail location 1999-02-05 18:15:59 +00:00
thorpej
3771908e3d Reinitialize leases on SIGHUP, and release leases and exit on SIGTERM. 1999-02-05 09:13:32 +00:00
thorpej
44e3c78cf9 Make sure the pidfile is gone upon exit. 1999-02-05 08:52:50 +00:00
hubertf
f7367de849 remove extra "." 1999-02-05 03:28:17 +00:00
kleink
2f237db295 Spellink. 1999-02-04 16:34:12 +00:00
augustss
74345454d5 Xref wsconsctl 1999-02-03 21:01:40 +00:00
augustss
ac531566d5 Xref wsconsctl, wsfontload 1999-02-03 20:59:20 +00:00
tron
6f942f16fd Add RCS Id as suggested by Rob Windsor in PR bin/6931. 1999-02-03 00:19:00 +00:00
thorpej
cd43b55bc4 Fix a typo in an ACTION_APPEND message. 1999-02-02 09:40:46 +00:00
christos
8e2da38978 Remove duplicate definitions caused by the merge. 1999-02-01 19:56:18 +00:00
christos
a2b1d050d6 Resolve corn-flakes. 1999-02-01 19:05:09 +00:00
christos
eab9b56195 Import am-utils-6.0.1s3 1999-02-01 18:45:36 +00:00
bouyer
938264f6ee If the client doesn't supply a filename, give it back the first one listed
for this station instead of an error. This is required for hp700 machines.
1999-02-01 17:00:44 +00:00
hubertf
e22dd1f460 Allow @exec to be the first (non-comment) thing in a PLIST file
IF there is no %d/%D/%f/%F in it.
1999-02-01 02:00:42 +00:00
briggs
833414c6d9 Missing ). 1999-01-31 19:12:27 +00:00
mrg
69dfc0e846 KNF nit. 1999-01-31 10:14:02 +00:00
mrg
cdac266703 discard setgid. 1999-01-31 10:12:33 +00:00
mrg
a8f9f46183 ensure C strings are nul terminated, and do not overflow buffers. 1999-01-31 10:06:16 +00:00
thorpej
5df8e38280 Add ELF support for i386 and m68k. 1999-01-29 22:23:36 +00:00
tsarna
c51f63ace5 Clarify the syntax a bit 1999-01-29 19:41:47 +00:00
hubertf
9bb8dc7ef9 Remove the "struct datum" and use DBT directly.
Submitted by Alistair Crooks - thanks a lot!
1999-01-29 13:29:34 +00:00
bouyer
659223bfb2 When searching broadcast addresses, skip interface aliases. From
Wolfgang Rupprecht in PR bin/6897.
1999-01-29 13:19:17 +00:00
cjs
e6427037cb Add descriptions of fields in the ipmon output. I considered converting
this to mandoc and didn't, but that's not to say we should or shouldn't.
1999-01-29 00:47:55 +00:00
thorpej
876f7929f4 Use ping -n; if we're running a local nameserver, it may try to
reverse-resolve the IP address we're given, which will take a while
to time out, since we're still scanning cached leases (i.e. the network
isn't up yet).
1999-01-28 23:09:07 +00:00
thorpej
4731b4c5b0 Use <sys/disklabel_mbr.h> rather than our own home-grown. 1999-01-27 20:44:04 +00:00
hwr
a1e1a2a4ad gre(4) no longer supports ipip. Track this change ... 1999-01-26 21:32:39 +00:00
hubertf
7c49b89e86 minor comments fixup 1999-01-26 14:47:32 +00:00
hubertf
1c7d06dd18 comment fileFindByPath(), reindent a bit 1999-01-26 14:26:23 +00:00
sommerfe
6df264a8da Fix pr6874: add way to specify last resort filename 1999-01-25 22:31:45 +00:00
fvdl
4366964358 Do not block SIGTERM, so that nfsd exits gracefully at shutdown. 1999-01-25 10:12:33 +00:00
ross
9f0dbe1852 Keep the example strings on one line. 1999-01-24 06:27:06 +00:00
hwr
729bc0fae0 The ioctls have been issued on the wrong socket, so they failed with a
EINVAL. This has been confirmed by Bill Fenner. The wrong socket led to
masses of syslog entries on hosts connected to the mbone and cache entries
deleted to early.

XXX As the socket need to be the one that is ip_mrouter in netinet/ip_mroute.c,
XXX the kernel could be modified to always return the data for ip_mrouter.

XXX Bill Fenner suggests to upgrade to 3.9.beta-3 with -DIOCTL_OK_ON_RAW_SOCKET
1999-01-23 22:44:43 +00:00
thorpej
56a0200695 Fix some debugging printf formats. 1999-01-23 01:08:55 +00:00
thorpej
dd2ecab580 Use syslog(3) to log debugging info, and only if we're compiled with
-DDEBUG.
1999-01-22 02:38:05 +00:00
thorpej
002a1e7cb7 Remove old access control list definitions, and remove the home-grown
logging code.
1999-01-22 02:37:00 +00:00
thorpej
c87c1f135c Throw out the old ypserv access control list code. Instead, use libwrap
for access control.  Add a -l option, to enable logging of all requests.
Also, just use syslog(3) for all logging, not home-grown logging code.
1999-01-22 02:36:12 +00:00
pk
74098ab84e Lennart Augustsson's multi-valued locator code. 1999-01-21 13:10:08 +00:00
drochner
d884fbb6b7 fix logging without libwrap: introduce a syslog facility/severity
variable independantly of the LIBWRAP definition
1999-01-20 14:12:18 +00:00
mycroft
e37d13ec69 Revert previous. 1999-01-20 09:24:06 +00:00
mycroft
24285e691d Make all listening sockets non-blocking. 1999-01-20 04:42:17 +00:00
tron
17aa73b995 Include "disktab.h" to get prototype for getdiskbyname(). 1999-01-19 22:33:04 +00:00
tron
257673aaae Include "disktab.h" to get prototype for getdiskbyname(). 1999-01-19 22:23:36 +00:00
hubertf
f9e71e406c Add code for pkgdb. 1999-01-19 17:01:56 +00:00
cgd
c014ce1d6e Don't use the RCS 'Name' keyword, it makes doing release builds more
annoying for no good reason.  Since a version seems to be desired,
define an OS_VERSION string in the Makefile and use it in the code.
1999-01-19 07:05:59 +00:00
lukem
c6e56aa78a don't bother with nsdispatch(); just link in the relevant bits of
libc's gethostby*() and getnetby*() directly (with -UYP).
1999-01-19 03:53:27 +00:00
lukem
67ae78f9e1 fix error message 1999-01-18 23:42:38 +00:00
drochner
e755eb28ce fix the use of the libwrap methods:
-fromhost() doesn't work because the file descriptor isn't available
 at this point, see PR bin/6813
-it needs some initialization for libwrap to grok the IP address and/or
 host names in its rule files (see PR bin/6831 by Andreas Wrede
 <andreas@planix.com>, the fix is different)
Needless to say that libwrap's interface sucks.
1999-01-18 19:47:36 +00:00
christos
ee880a75bf PR/6835: Greg A. Woods: Various problems with tcpdchk
- fakelog.c contains extra va_arg
	- fix netgroup const problem and remove WARNS flag from Makefile
	- use CFLAGS from libwrap
1999-01-18 18:01:26 +00:00
eeh
3efdc5b597 This is also useful for sparc64. 1999-01-17 20:02:29 +00:00
lukem
ab8486e250 * don't print out entries that couldn't be parsed
* don't look for comments; fparseln strips them
1999-01-17 07:01:26 +00:00
lukem
bb490684f2 don't bother looking for comments; fparseln() removes them 1999-01-17 06:56:51 +00:00
lukem
5921d0348f convert from tweaking _res.lookups[] to calling nsdispatch(3) directly
for gethostby{name,addr}() (without methods for the yp lookups).
ypserv will now match names for the `hosts:' entry (ignoring `nis' if
specified).
1999-01-17 06:54:14 +00:00
eeh
861fc18871 We need to support both elf32 and elf64 for sparc64. 1999-01-17 01:42:07 +00:00
hannken
c2ed19ee97 Fix is_loopback() to return 1 for a loopback addr as intended. 1999-01-16 20:59:05 +00:00
lukem
8a91b811dc s/resolver(5)/resolv.conf(5)/ 1999-01-16 11:06:49 +00:00
bouyer
3e3f9c7795 #include machine/bswap.h and remove -lutil. 1999-01-15 13:32:05 +00:00
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