Commit Graph

7970 Commits

Author SHA1 Message Date
Matthew Dillon
06f33c6e7a Cleanup sysinstall's 'A'uto partitioning mode to provide more reasonable
defaults both in regards to the size of the partitions that are created
and in regards to safety and functional separation.

Still TODO: extend the previous partition to cover a deleted partition
if the previous partiton was auto-created, and supply some sort of
solution for /tmp.

Reviewed by:	Just about everyone
Approved by:	Nobody except maybe my pet mouse fred
Obtained from:	God, so complain to HIM
MFC after:	1 week
2001-12-09 09:47:09 +00:00
Mike Heffner
57cdc15247 WARNS=2 cleanup.
PR:		bin/32567
MFC after:	2 weeks
2001-12-09 07:51:26 +00:00
Mike Heffner
84e0df3fcf WARNS=2 cleanup and fix potential unitialized variable bug.
PR:		bin/32567
MFC after:	2 weeks
2001-12-09 07:32:55 +00:00
Mike Heffner
87e5cd7c1a WARNS=2 cleanup.
PR:		bin/32567
MFC after:	2 weeks
2001-12-09 07:22:26 +00:00
Matthew Dillon
66a11b9fb1 Allow maxusers to be specified as 0 in the kernel config, which will
cause the system to auto-size to between 32 and 512 depending on the
amount of memory.

MFC after:	1 week
2001-12-09 01:57:09 +00:00
Brian Somers
c03b8e5e60 Consider PROTO_IPV6 as compressible by CCP.
Spotted by: Nick Sayer <nsayer@quack.kfu.com>
2001-12-09 01:29:12 +00:00
Ruslan Ermilov
05132b7444 mdoc(7) police:
- bump document date
- add -n to SYNOPSIS
- remove whitespace at EOL
- remove hard sentence break
- be a bit verbose about "vcd" operation
2001-12-08 16:58:48 +00:00
Ruslan Ermilov
d3f58d4008 mdoc(7) police: markup nits. 2001-12-08 16:17:49 +00:00
Ruslan Ermilov
c9d99fb534 mdoc(7) police: fix markup in revision 1.25. 2001-12-08 16:15:44 +00:00
Crist J. Clark
2204f3ce42 Long ago, there was just /etc/daily. Then /etc/security was split out
of /etc/daily. Some time later, /etc/daily became a set of periodic(8)
scripts. Now, this evolution continues, and /etc/security has been
broken into periodic(8) scripts to make local customization easier and
more maintainable.

Reviewed by:	ru
Approved by:	ru
2001-12-07 23:57:39 +00:00
Garance A Drosehn
7cf2c478e4 Move the checks for '/' a little sooner in the code which receives files
for a remote print job.  This change comes from OpenBSD (who got it from
Sebastian Krahmer of SuSE).  In OpenBSD this avoids a tiny theoretical
security issue, but that security issue does not exist in FreeBSD's lpr
due to the changes which added 'ctl_renametf()' just before 4.4-release.
This change is still worth doing in our version, but it isn't fixing a
security issue.

MFC after:	4 days
2001-12-05 02:07:20 +00:00
Søren Schmidt
2ad690c708 Add the ability to write VCD/SVCD disc's.
It is still nessesary to supply the tracks as individual files, burncd
can't read .cue files yet, but now the infrastructure to do it is
present we just need a .cue file parser (hint hint)...
2001-12-04 21:48:56 +00:00
Chris D. Faulhaber
0d23d04625 Prototype usage() and set WARNS?=2
Approved by:	rwatson
Obtained from:	TrustedBSD Project
2001-12-04 13:39:02 +00:00
Chris D. Faulhaber
54d8895199 WARNS=2 and style(9) cleanup:
o prototype usage()
o move BUFSIZE define above the functions
o nuke externs that are defined in unistd.h

Approved by:	rwatson
Obtained from:	TrustedBSD Project
2001-12-04 03:28:31 +00:00
David E. O'Brien
2d68bf45bf Default to WARNS=2.
Binary builds that cannot handle this must explicitly set WARNS=0.

Reviewed by:	mike
2001-12-04 02:19:58 +00:00
Alfred Perlstein
815ac49626 prototype functions and fix some line wrapping 2001-12-02 11:10:46 +00:00
Makoto Matsushita
bbcb3e0620 Sysinstall cleanups for installation:
1) Use devfs to mount filesystems.  If mounting devfs is fail,
           fallback to old code.
        2) When fscking filesystems, use 'fsck_ffs' explicitly.  As a
           result, we no longer need 'fsck' the wrapper program.

Reviewed by:	jkh
2001-12-02 04:47:46 +00:00
Makoto Matsushita
5d74fa2432 Forget to remove kget.c, since kget feature is already gone. 2001-12-01 13:15:40 +00:00
Makoto Matsushita
aab37bd55c Remove kget() feature, which is removed from 5-current kernel.
Since userconfig feature is implemented by tweaking variables (hint.*)
with loader(8), we can put back an equivalent feature.  Maybe the first
step for this is to commit yokota-san's patch (add userconfig command
for loader).

Approved by:	jkh
2001-12-01 13:13:27 +00:00
Brian Somers
add3c04151 Pay attention to failures to SIOCAIFADDR and SIOCDIFFADDR. 2001-11-30 14:01:21 +00:00
Brian Somers
c4a913b6b8 Don't provide an RTA_GATEWAY sockaddr when we write RTM_CHANGE messages
to the routing socket.

The local address on a point-to-point interface is not actually a
gateway address - despite it appearing in the second column of
netstat -r's output.  Providing a gateway to an RTM_CHANGE will
currently change the route's interface so that it's using the
specified gateway - not what we want.

Patiently explained to me by:	ru
2001-11-30 14:01:20 +00:00
Brian Somers
2ea80d6d37 Add some DEBUG logging to tell us when interface addresses are being
added and removed
2001-11-30 14:01:18 +00:00
Crist J. Clark
28f49c6daf Make the error messaging more helpful.
PR:		31483
Approved by:	iwasaki, ru
MFC after:	4 days
2001-11-30 11:35:01 +00:00
Alfred Perlstein
8c7daee735 Fold ANDREW_LOCKD into -current. 2001-11-29 17:36:45 +00:00
Mitsuru IWASAKI
fcb24d01b0 Fix a bug about CIS string comparison. Pccardd should be able to distinguish
card "MELCO" "LPC2-T"
and
	card "MELCO" "LPC2-TX"
by this fix.

Reported by:	Kitagawa Shoichi <sk@xstar.kiu.ac.jp>,
		NINOMIYA Hideyuki <nin@shikoku.ne.jp>
MFC after:	1 week
2001-11-29 14:33:57 +00:00
Crist J. Clark
a4771d5fb3 Add a BUGS section noting that the basename of a directory containing
periodic(8) scripts must be useable as a sh(1) variable.

MFC after:	2 days
2001-11-28 21:43:53 +00:00
Garance A Drosehn
1fd731fa25 My recent changes to add the ctl_renametf routine assumed that print job
control-files will always start with 'cfA*'.  It turns out that some
implementations of lpd (such as solaris) may send a control file which
starts with 'cfB*', or really 'cf<anyLetter>*'.  Although such filenames
are very odd, we did used to accept them.  This changes ctl_renametf to
work correctly with them, and fixes up 'lpc clean' to match.

PR:		bin/32183
MFC after:	10 days
2001-11-28 04:30:47 +00:00
Dima Dorfman
a53dffb774 Make the default kernel prefix "kernel:" instead of the boot file,
with the old behavior available via the -o option (it might still be
useful if one has many kernels and cares which messages came from
which).  If the boot file is not used as the prefix, it is still
logged once at startup.

This change is prompted by the fact that the boot file is now much
longer ("/boot/kernel/kernel" vs. "/kernel"), which significanlty
bloats the syslogd output.

Reviewed by:	peter
2001-11-27 20:02:18 +00:00
Chris D. Faulhaber
f2dd987c46 Make extattrctl WARNS?=2-safe:
o remove extraneous extern's
o prototype functions
o combine multiple return (0)'s into a single return (0) at the
  end of main()

Approved by:	rwatson
Obtained from:	TrustedBSD Project
2001-11-27 18:58:56 +00:00
Ruslan Ermilov
3f7ec6a843 Re-connect NTP docs to build. 2001-11-27 13:20:07 +00:00
Sheldon Hearn
393daa317e Add missing -v option to the SYNOPSIS. 2001-11-27 12:57:45 +00:00
Garance A Drosehn
21ecfd4a44 Change the recently-added 'o'-processing so it maps to 'l' instead of 'f'.
'l' ("plain text which includes control characters") is somewhat more
appropriate for 'o' ("postscript files"), and in fact some printers treat
'l' as a request to print a postscript file.

MFC after:	1 week
2001-11-27 01:32:25 +00:00
Bruce A. Mah
154fe58102 Grammar police (system console terminal type menu). 2001-11-26 23:14:21 +00:00
Makoto Matsushita
34e80be88b Use 'GET' method instaed of 'HEAD', since some proxy server doesn't work
with 'HEAD' method.

Actually, when http.c was born, it used 'GET' method.  This was changed
with revision 1.4 (which was submitted as PR: 21449).  I've confirmed
to Philipp Mergenthaler <philipp.mergenthaler@stud.uni-karlsruhe.de>,
the submitter of PR: 21449, and it's absolutely OK that we can use
GET method.

Add missing 'FreeBSD' tag, and copyright notice.  This file is originally
submitted by PR: 11316; I've contacted to the PR originator to submit it.

PR:		32238
Submitted by:	Christoph Weber-Fahr <christoph.weber-fahr@arcor.de> (patch),
	and Philipp Mergenthaler <un1i@rz.uni-karlsruhe.de> (copyright)
MFC after:	1 week
2001-11-25 00:50:57 +00:00
Dima Dorfman
a48060a2f7 Spelling police: sucessful -> successful. 2001-11-24 23:41:32 +00:00
Dima Dorfman
d3573aab8e Talk about what the user needs to do to get the snp devices, and how
watch(8) will try to help them by loading the module.

PR:		25420
2001-11-24 17:02:58 +00:00
Dima Dorfman
6e2867d22b Change 'superuser' to 'user' which was forgotten in the previous
delta.  Remove fake SCCS id while I'm here.
2001-11-24 16:56:43 +00:00
Dima Dorfman
3278021b94 Remove the sentence about only root being able to run watch(8). It
was never technically true (it's snp(4) that required root, not
watch(8)), and after snp.c 1.64, isn't even effectively true, since
who can run watch(8) depends on the permissions of the snp device(s).

Sort options in SYNOPSIS and DESCRIPTION while I'm here.
2001-11-24 15:51:34 +00:00
Dima Dorfman
1995d3a484 Add an -f option which allows one to specify a snp device to use.
Previously, watch would always use the first device it could
successfully open, but this isn't always desired.  Specifically, it
may not be desired during debugging (of snp), or if a particular snp
device has different permissions (which makes since after snp.c 1.64).
2001-11-24 15:41:38 +00:00
Brian Somers
0ed9882caa Remove the hack that ensures that rt_Update() works on FreeBSD. Now
that the ncpaddr code doesn't create default routes with non-zero
masks, everything works as it should.
2001-11-23 19:20:45 +00:00
Brian Somers
361a7b933f When writing messages to the routing socket, round sockaddr sizes
up in the same way that we expect them to be when we read them.

This is a no-op on i386 and probably on alphas, as we currently
only support AF_INET and AF_INET6.
2001-11-23 17:19:36 +00:00
Brian Somers
a3d71c3de1 Be paranoid about non-zero netmasks being associated with INET addresses
of 0.0.0.0.

The OpenBSD PF_ROUTE/NET_RT_DUMP sysctl is sending back routes with
RTAX_NETMASK set, but the corresponding sockaddr being 4 zero bytes
(with an address family of zero).  ppp was getting confused by this
and ending up interpreting it as a 0.0.0.0/32 routing table
destination and subsequently failing to do anything with the route.

Specifically, after this fix, ppp under OpenBSD can successfully
change and delete the default route again !
2001-11-23 17:19:27 +00:00
Brian Somers
846e7227be Remove an unused variable (oops) 2001-11-23 15:47:04 +00:00
Brian Somers
26dceef0a6 Don't adjust_linklocal() when pulling a sockaddr out of an ncpaddr or
ncprange structure.

Don't write() the netmask for IPv6 sockaddrs to the routing socket if
the prefixlen is 128.

It seems that messages written to the routing socket with the scopeid
set for link local addresses are not understood.  Instead, we have to
put the scopeid in the 5th and 6th bytes of the address (see
adjust_linklocal() in ncpaddr.c).  I think this may be a bug in the
KAME implementation - it should really understand both forms.
2001-11-23 12:39:20 +00:00
Brian Somers
412649a38d Remove a bogus log_Id() decl 2001-11-23 11:15:35 +00:00
Andrey A. Chernov
d4e8a3b4c9 Add us-ascii_to_cp437 screenmap 2001-11-23 11:15:21 +00:00
Brian Somers
eea438f87a Fix usage for the log command 2001-11-23 11:07:43 +00:00
Brian Somers
a1c634637f Whitespace tweak 2001-11-23 10:46:28 +00:00
Andrey A. Chernov
7b9c0eac1c Add fonts,screenmaps,console types 2001-11-23 07:40:54 +00:00
Ruslan Ermilov
6f1421099e mdoc(7) police: oops, didn't catch this one without ispell(1). 2001-11-22 12:08:35 +00:00
Ruslan Ermilov
dc37807ea4 mdoc(7) police: tiny markup fixes. 2001-11-22 12:03:31 +00:00
Brian Somers
a12856cfee Expand the first argument of the ``log'' command if it's a variable. 2001-11-22 04:23:49 +00:00
Jordan K. Hubbard
fe7283fc23 Choose more paranoid modes for the temporary directory so the user can't
easily browse its contents.

Noted by:	Antoine
2001-11-22 01:54:33 +00:00
Brian Somers
3b0c289136 Document that an UPTIME variable is now available 2001-11-22 01:44:23 +00:00
Robert Watson
78bc197134 Grammatical fixes over previous commit.
Submitted by:	ru
2001-11-20 16:33:55 +00:00
Ruslan Ermilov
c8a250b7c0 mdoc(7) police: fix markup and spelling. 2001-11-20 16:02:42 +00:00
Ruslan Ermilov
87df1ce862 mdoc(7) police: bump document date, fix markup. 2001-11-20 15:57:00 +00:00
Ruslan Ermilov
5849041b6f mdoc(7) police: Fix markup. 2001-11-20 12:38:18 +00:00
John Baldwin
9f2b972fdb Unifdef all the SGI code. It mainly added clutter while providing some
specialized logging, SGI-specific priority massaging, and SCI-specific
time trimming support.  Also add missing $FreeBSD$'s.

Inspired by:	NetBSD
2001-11-20 07:13:40 +00:00
John Baldwin
3878fff7db Use fixed-size fields in the structure for the timed protocol. This
includes changing a struct timeval to an explicit structure of two
int32_t's.  This requires using temporary timevals in several places
when calling gettimeofday(), settimeofday(), etc.  With this timed now
works properly on 64-bit platforms such as Alpha.

Obtained from:	NetBSD
2001-11-20 06:36:09 +00:00
Alfred Perlstein
5f07c7b294 This completes the all partial file locking under NFS. The underlying
file is still completely covered by a flock(2) style lock, but we'll tackle
that at a later date.

Submitted by: "Andrew P. Lentvorski" <bsder@allcaps.org>
2001-11-20 06:13:53 +00:00
Hellmuth Michaelis
224a719b5f Close files only if the fp is != NULL.
PR:		bin/31913
Submitted by:	Harald Hanche-Olsen <hanche@math.ntnu.no>
Reviewed by:	hm
MFC after:	1 week
2001-11-19 14:19:21 +00:00
Murray Stokely
7261d8132c Remove a duplicate word.
PR:           docs/32087
Submitted by: setantae@submonkey.net
MFC After:    2 days
2001-11-19 08:20:24 +00:00
Ian Dowse
00a2029a0e Allow the path for /dev and the location of the database file to
be overridden on the command line. This is useful for setting up
chroot/jail environments.

PR:		bin/23509
Submitted by:	Seth Kingsley <sethk@pike.osd.bsdi.com>
MFC after:	1 week
2001-11-18 17:24:28 +00:00
Alfred Perlstein
b6dc41baf1 Cleanup.
use LIST_FOREACH,

add prototypes (functions should be made static probably),

change DEBUG=1 to LOCKD_DEBUG,

K&R function instantiation for functions with long args lists,

Move comments about functions from within to above the function,

Simplified some if/else logic and reduced nested blocks.

parens around 'return' argument (return FOO -> return (FOO))
2001-11-18 05:08:19 +00:00
Alfred Perlstein
a4a8a04d08 Re-enable statd code.
Submitted by: "Andrew P. Lentvorski" <bsder@allcaps.org>
2001-11-18 03:50:38 +00:00
Alfred Perlstein
7e589b0b6e This adds in the full HW locking capability and should now make my rewrite
of the rpc.lockd fully compliant with the old file locking semantics.

Andrew will dig into the statd code next and then will attack the split
locking.

This also backs out a lot of the work I've done on making the code
more conformant with non-written style rules, but we'll revisit that
later.

Submitted by: "Andrew P. Lentvorski" <bsder@allcaps.org>
2001-11-18 00:41:15 +00:00
Robert Watson
c3ce2b2baa o Allow rarpd to accept an additional '-t directory' argument, specifying
an alternative to /tftpboot.  This is useful it you're using tftpd
  with an alternative root (using -s), and would like rarpd to respond
  selectively to RARP requests using the same criteria as tftp.

Obtained from:	TrustedBSD Project
Sponsored by:	DARPA, NAI Labs
2001-11-16 16:49:21 +00:00
Robert Watson
a17ca2d8a4 o Reflect moving of extattr_namespace calls to libc from libutil; no
longer need to link libutil into command-line extended attribute
  utilities.

Obtained from:	TrustedBSD Project
2001-11-16 05:10:35 +00:00
Robert Watson
a8843add6d o Update copyright dates, comments...
Obtained from:	TrustedBSD Project
2001-11-15 22:56:40 +00:00
Robert Watson
8970738b86 o extattrctl initattr, when pre-allocating store for extended attributes,
computed a a chunksize that didn't include the extended attribute
  header.  This was a non-fatal error, in that it was just writing out
  zeros anyway, but did have the effect of not pre-allocating the
  right amount of disk space.  This fix calculates chunksize to include
  the attribute header.

Submitted by:	Dale Rahn
Sponsored by:	DARPA, UPenn POSSE Project
Obtained from:	OpenBSD
2001-11-15 22:50:06 +00:00
Maxim Sobolev
0a811cbf0c Improve recently committed fix for -t bug.
Submitted by:	"Andrew L. Neporada" <andr@dgap.mipt.ru>
MFC after:	3 days
2001-11-15 15:13:24 +00:00
Alfred Perlstein
4945c13244 Bring in Andrew P. Lentvorski initial work on making lockd work,
this should get us closer so cleaner implementation.

Submitted by: Andrew P. Lentvorski <bsder@allcaps.org>
2001-11-15 09:35:51 +00:00
David E. O'Brien
a4482d5ce1 Fix the type of the NULL arg to execl(). 2001-11-14 17:00:58 +00:00
Paul Saab
4741693c8e If the mask length is zero, there is no need to convert it to a
netmask.

PR:		31947
Submitted by:	Aaron Scarisbrick <aaronsca@hotmail.com>
MFC after:	1 week
2001-11-14 09:20:24 +00:00
Alfred Perlstein
2663693cf8 Turn on NO_WERROR and set WARNS to 1.
Fix the WARNS 1 warnings except unused variables.

Add prototype for log_netobj().
Don't compare signed/unsigned.
Cast u_int64_t to 'unsigned long long' and print using %llu.
Fix constness of string arrays.
Use a cast to avoid an unused parameter in a signal handler.
alarm(2) can't fail, so don't check for it.
ANSI'ify some functions.
2001-11-13 11:24:23 +00:00
Alfred Perlstein
a95a0d36d4 fix parameters to lock_answer().
Submitted by: Timo Geusch <freebsd@unix-consult.com>
2001-11-12 16:34:59 +00:00
Alfred Perlstein
755f5b77d8 Fixup for WARNS. 2001-11-12 16:29:45 +00:00
Alfred Perlstein
32e9a24903 Drop privs while servicing kernel lock requests.
Restore umask used before FIFO creation.
If opening the FIFO fails, exit.
Properly check the return value of open (use == -1 instead of < 0).
2001-11-11 23:40:10 +00:00
Alfred Perlstein
64b829d192 leverage fixed fifo implementation (rev 1.56 of
src/sys/fs/fifofs/fifo_vnops.c) to serve locks better, my previous
workaround for lack of decent fifo system wasn't cutting it,
particularly the kernel would send a message down the fifo and
immediately close it, this would lead to delayed unlock requests
being seen by the lockd causing all sorts of badness.

Basically, don't reopen the fifo, just select(2) on it.
2001-11-08 10:37:32 +00:00
Alfred Perlstein
9529c2d965 use syslog rather than printf so we can see what's going on in debug mode 2001-11-08 10:34:21 +00:00
Alfred Perlstein
955e10567c style fixes, fix line wrap and function declaration 2001-11-08 10:33:41 +00:00
Robert Watson
22f94a0a16 o When "-n" is used with watch, it disables the use of <control-X> to
change terminals being watched.  This change makes watch pass the
  <control-X> through to the terminal if it's not being intercepted--
  previously, the keypress would simply be dropped.
2001-11-07 19:15:19 +00:00
Brian Somers
39d2e655ee Remove unused variables 2001-11-04 16:19:05 +00:00
Peter Wemm
9fe9bee4a7 Exclude pppctl on ia64 due to libc_r. I had been building with
-DNOLIBC_R, but this is a little safer.
2001-11-04 06:15:28 +00:00
Brian Somers
46df5aa7bc Add a ``log'' command for logging specific information.
Add an ``UPTIME'' variable to indicate the bundle uptime.

It's now possible to put something like this in ppp.linkdown
for a server setup:

  MYADDR:
    log Session closing: User USER, address HISADDR, up UPTIME

Fixed some memory leakage with commands that expand words.
Made some functions static.
Fixed a diagnostic bug (iface add .... SIOCDIFADDR)
2001-11-03 21:45:32 +00:00
Brian Somers
9ea6970784 Call CCP protocol -1 ``none'' 2001-11-03 19:29:30 +00:00
Brian Somers
de97d73d11 cmott@scientech.com -> cm@linktel.net
Requested by: Charless Mott <cmott@scientech.com>
2001-11-03 11:36:17 +00:00
Warner Losh
b2237d4d5c Always set unit number to -1 unless some other unit is specified in
the config file.  This fixes the breakage caused by the recent change
in the behavior of device_add_child for ata (which shows soren's
reservations were well founded).

Submitted by:	OGAWA Takaya <t-ogawa@triaez.kaisei.org>
2001-11-02 17:28:43 +00:00
Jordan K. Hubbard
7a631f774d MFS: Stop reaping children. It makes evil things happen to the extraction
loop.
2001-11-01 23:32:46 +00:00
Brian Somers
d80d04cac0 Don't assume fixit media is only either a floppy disk or 2nd CDROM disc
Reviewed by:	murray
MFC after:	1 week
2001-10-29 16:17:19 +00:00
Matthew Dillon
5e8a6141be Fix ctime(&int) due to change to lastlog->ll_time 2001-10-29 00:40:05 +00:00
Matthew Dillon
2064ef1c81 localtime() was being called with an int-pointer due to recent utmp
fixes.
2001-10-29 00:36:01 +00:00
Matthew Dillon
1482b97ae3 Do not assume that sizeof(tv_sec) is sizeof(time_t) - it will be, but
it isn't yet because our tv_sec is currently a long (so 64 bit architectures
are already broken to a degree).
2001-10-28 20:53:17 +00:00
Matthew Dillon
aa3e4732e7 Fix int vs time_t, convert int to time_t 2001-10-28 20:40:58 +00:00
Matthew Dillon
d4474241c6 Convert time_t to/from 32 bit representations for transmission over
a network and storage.
2001-10-28 20:33:07 +00:00
Peter Wemm
9213df7cda Explicitly use int32_t for on-disk records for pw_change and pw_expire,
since that is what we use now and this insulates us from any time_t
tweaks here.  We can define a record format that uses 64 bit times if/when
we need to.
2001-10-27 02:13:41 +00:00
Ruslan Ermilov
66d4a748cf mdoc(7) police:
- Bump document date.
- Remove hard sentence breaks.
- Fix markup.
2001-10-26 11:16:18 +00:00
Maxim Sobolev
f4dfe934d1 Make `-b' option actually work as advertised. 2001-10-25 07:56:20 +00:00
John Baldwin
b718f11936 Move the 'type' variable inside the block where it is actually used. 2001-10-23 17:31:11 +00:00
Takanori Watanabe
7e489a2fdd Collect multi name handling.
Reported by :    Stephan Kulow <coolo@caldera.de>
2001-10-23 14:54:15 +00:00
Brian Somers
dad51e5ce8 Don't avoid setting a 0 second timer in datalink_StartDialTimer() by
not setting any timer.  Instead, set a 1 millisecond timer.

This ensures that ppp will come out of it's select() call after
losing carrier in -ddial mode with a reconnect period of 0 and
going to ST_OPENING, rather than waiting indefinitely for some
other event to wake ppp up.

Bump the ppp version number to indicate the event.

MFC after: 3 days
2001-10-23 13:52:19 +00:00
Peter Wemm
0407540adf ia64 support. Due to the bogus placement of some i4b includes, it is
i386-only, even though it would work on all the isa-capable platforms.
Change the NOI4B so that instead of excluding alpha, it only includes i386.
2001-10-23 10:20:24 +00:00
Peter Wemm
2b30bcbb41 ia64 support. Hide a.out support solely under i386. While alpha never
was released in a.out form, it does define the a.out data structures.
The ia64 port does not.
2001-10-23 10:18:41 +00:00
Peter Wemm
ab5e5d7be9 ia64 support: move pnpinfo to i386 and alpha sections for now. i386 has
native inb/outb etc, and alpha has libio.  ia64 doesn't have any yet.

move pppctl to the NOLIBC_R section (libc_r is not possible on ia64 in
its present form due to assumptions about setjmp/longjmp magic)
2001-10-23 10:16:04 +00:00
Matthew Dillon
c72ccd014d Change the vnode list under the mount point from a LIST to a TAILQ
in preparation for an implementation of limiting code for kern.maxvnodes.

MFC after:	3 days
2001-10-23 01:21:29 +00:00
Mitsuru IWASAKI
c62f1ccc6f Fix UserTerms disassembling. Now that dumped ASL can be compiled with
ports/devel/acpitools (iasl).
 - Merge AML parser to build ACPI namespace
 - Comment header info. out so that ASL compiler ignore them
 - Fix DSDT header size to be discarded when DSDT file is specified
   for input (acpidump and amldb)
 - Write DSDT header as well into DSDT file for output
 - Fix some trivial typo (Concatenate and SizeOf)
 - Remove DEBUG_FLAGS from Makefile (acpidump and amldb)
2001-10-22 17:25:32 +00:00
Peter Wemm
7c34d28826 This is __i386__-only, not !__alpha__. We never had userconfig on
anything but i386/pc98.
2001-10-22 12:22:08 +00:00
Hellmuth Michaelis
676ccc0cd0 Add a driver for the Compaq Microcom 610 ISDN (Compaq series PSB2222I) ISA PnP
card.

Submitted by:   Steve Looman
Reviewed by:    hm
MFC after:      1 month
2001-10-21 09:20:52 +00:00
Ollivier Robert
41494fa079 Remove the ``-c 22'' option from newfs command line. Changes in newfs(8)
makes that obsolete. The jury^W-arch is still out about the block and fragment
sizes so I'll that for later.

Reminded by:	obrien
MFC after:	2 days
2001-10-20 09:28:53 +00:00
Brian Somers
0860ce5d69 Include the right i4b files for NetBSD 2001-10-19 15:56:56 +00:00
Andrey A. Chernov
b84320f22e Change rmskey() to rmopie() - we don't have skey anymore 2001-10-19 10:45:14 +00:00
Matthew N. Dodd
0442747236 Print [fddi] or [atm] tags for ARP addresses on interfaces of that type. 2001-10-19 00:33:26 +00:00
Hellmuth Michaelis
8f3a90354e Add experimental support for sending keypad facility messages.
MFC after: 2 months
2001-10-18 11:58:49 +00:00
Brian Somers
542a7fe08a Fix AUTH callback negotiations.
MFC after: 1 week
2001-10-18 08:48:04 +00:00
Brian Somers
2a772845ff When the peer fails to specify an MRU and a 1500 byte MRU is not
allowed either because of the transport or configuration, send a
MRU NAK only once, then allow the negotiations to proceed.

rfc1661 says that 1500 should always be allowed and rfc2516 says
that 1492 is the maximum for PPPoE.  This changes ppp so that it
only weakly suggests 1492, then goes with the default (leaving
the problem in the hands of the peer WRT how they set their MTU).

MFC after: 1 week
2001-10-18 08:47:56 +00:00
Hellmuth Michaelis
bd29462616 keypad facility information element: add keypad facility information decoding.
MFC after: 1 month
2001-10-18 08:03:23 +00:00
Bill Fenner
b9d45cebf4 The interface index space may be sparsely populated (e.g. when an
interface in the middle is if_detach()'d).  Return (and handle)
 ENOENT when the ifmib(4) is accessed for a nonexistent interface.

MFC after: 14 days
2001-10-17 04:12:29 +00:00
Ian Dowse
fef7dd5a5f When nfsd was started with only UDP servers, the master nfsd would
spin in a loop eating CPU time. This bug has existed since the
TI-RPC import. The problem is that we should only enter the select
loop if at least one TCP server was started.  Fix this by having
the master nfsd become a UDP server itself if there are no TCP
servers.

Also improve/correct the code for cleaning up slave nfsd processes
and unregistering with rpcbind when the master nfsd exits.

One issue that remains open is that if a slave nfsd dies, then all
nfsds will shut down. This is because nfssvc() in the master nfsd
returns 0 when the master nfsd receives a SIGCHLD.

Submitted by:	tmm
2001-10-16 21:55:53 +00:00
Maxim Sobolev
de853a38b8 Use strlcpy(3) instead of strcpy(3) to copy optarg into a fixed-size buffer.
MFC after:	2 weeks
2001-10-16 09:21:09 +00:00
David E. O'Brien
150e0ea706 Increase the number of packages that can be installed by an order of
magnitude.  Geez, this is Unix, what is with the arbitrary needless
constants.
2001-10-16 06:42:06 +00:00
Maxim Sobolev
181a5b5a6e Fix "off by 1" error introduced in the previous commit by replacing strncpy(3)
with strlcpy(3).

MFC after:	2 weeks
2001-10-16 03:04:15 +00:00
Maxim Sobolev
be5780f384 Use strncpy(3) instead of strcpy(3) to copy optarg into a fixed-sized buffer.
Prompted by:	dd
MFC after:	2 weeks
2001-10-15 18:21:08 +00:00
Dima Dorfman
f06c683e47 The user wants to ensure, not insure, that the package isn't going to
damage their system.
2001-10-15 13:49:51 +00:00
Alfred Perlstein
bad584e319 Implement partial-file NFS lock testing.
Submitted by: "Andrew P. Lentvorski" <andrewl@io.com>
2001-10-14 18:36:35 +00:00
Jordan K. Hubbard
513cce4025 Add the ability to load klds from a floppy as part of the installation.
Submitted by:	"Daniel O'Connor" <doconnor@gsoft.com.au>
MFC after:	2 weeks
2001-10-12 22:39:02 +00:00
Jordan K. Hubbard
27a550e5ed DTRT in the restart case 2001-10-12 07:36:34 +00:00
Dag-Erling Smørgrav
3d4630a415 Write a real man page. 2001-10-12 02:06:34 +00:00
Maxim Sobolev
77b90d2a0e Make `-t' flag in pkg_*(1) tools actually working.
PR:		30843
Submitted by:	Vladimir B. Grebenschikov <vova@express.ru>
MFC after:	2 weeks
2001-10-11 11:29:12 +00:00
Maxim Sobolev
f3fa78b0b5 - Introduce a notion of `packing list format version'. This allows making
non-backward compatible changes in the format of packing list and handle
  them gracefully;
- fix a longstanding issue with symlinks handling. Instead of recording
  checksum for the file symlink points to, record checksum for the value
  returned by readlink(2). For backward compatibility increase packing list
  format minor version number and provide a fallback to a previous behaviour,
  if package in question was created with older version of pkg_* tools;

Submitted by:	Alec Wolman <wolman@cs.washington.edu>, sobomax

- don't record MD5 checksum for device nodes, fifo's and other non-regular
  files.

Submitted by:	nbm
MFC in:		2 weeks
2001-10-10 08:21:41 +00:00
Maxim Sobolev
d100deb8cc WARNS=2 cleanup.
Tested on:	i386, alpha
MFC after:	2 weeks
2001-10-10 06:58:42 +00:00
Garance A Drosehn
ce0b09c3bc Fix one more compile-time warning by renaming a local variable.
MFC after:	4 days
2001-10-09 00:38:40 +00:00
Garance A Drosehn
9e75a09e74 Fix a compile-time warning by declaring 'len' as size_t instead of int.
MFC after:	4 days
2001-10-09 00:34:20 +00:00
Garance A Drosehn
ce89013afd Rename the local variable 'person' to 'lpr_username', to avoid compile-time
warnings about conflict with a global variable used by 'lprm'.

MFC after:	4 days
2001-10-09 00:27:14 +00:00
Garance A Drosehn
2fd64de22b Get rid of some minor compile-time errors by changing copyright/rcsid
definitions to the same format used in other lpr source files, and by
adding parenthesis to the right spot in one 'if' statement.

MFC after:	4 days
2001-10-09 00:09:46 +00:00
Garance A Drosehn
0ca7dba57c Fix minor compile-time error in definition of 'copyright'.
MFC after:	4 days
2001-10-09 00:06:52 +00:00
Garance A Drosehn
4f7f823487 Fix minor compile-time warning that snunk in with changes to sortq() rtn.
MFC after:	4 days
2001-10-09 00:04:59 +00:00
Maxim Sobolev
c5471e323b OOPS, delete some commented out debugging code committed along with r.1.25.
MFC after:	2 weeks
2001-10-08 17:09:08 +00:00
Maxim Sobolev
4bbe1f1cd4 - Allow package archive to be created from a locally installed package. This
allows for an easy way to backup old version of port prior to installing
  a new one;
- silence compiler warnings by killing some unused variables and adding
  all includes necessary.

MFC after:	2 weeks
2001-10-08 17:01:35 +00:00
Ruslan Ermilov
e87a372b7f Print interface name for each ARP entry.
Prodded by:	Igor Podlesny <poige@morning.ru>
MFC after:	1 week
2001-10-08 11:52:23 +00:00
Warner Losh
df306b2647 Don't core dump if we can't get the index automatically.
Debug info from:	Ben Hockenhull <benh@jpj.net>
2001-10-05 20:38:32 +00:00
Ruslan Ermilov
eea399e3ac Removed mentions of TARGET_ARCH from non-cross places. 2001-10-04 14:13:16 +00:00
David Malone
2bc21ed985 Hopefully improve control message passing over Unix domain sockets.
1) Allow the sending of more than one control message at a time
over a unix domain socket. This should cover the PR 29499.

2) This requires that unp_{ex,in}ternalize and unp_scan understand
mbufs with more than one control message at a time.

3) Internalize and externalize used to work on the mbuf in-place.
This made life quite complicated and the code for sizeof(int) <
sizeof(file *) could end up doing the wrong thing. The patch always
create a new mbuf/cluster now. This resulted in the change of the
prototype for the domain externalise function.

4) You can now send SCM_TIMESTAMP messages.

5) Always use CMSG_DATA(cm) to determine the start where the data
in unp_{ex,in}ternalize. It was using ((struct cmsghdr *)cm + 1)
in some places, which gives the wrong alignment on the alpha.
(NetBSD made this fix some time ago).

This results in an ABI change for discriptor passing and creds
passing on the alpha. (Probably on the IA64 and Spare ports too).

6) Fix userland programs to use CMSG_* macros too.

7) Be more careful about freeing mbufs containing (file *)s.
This is made possible by the prototype change of externalise.

PR:		29499
MFC after:	6 weeks
2001-10-04 13:11:48 +00:00
Søren Schmidt
cebf38db46 Change the way DAO/TAO modes are init'ed. 2001-10-01 14:58:04 +00:00
Ruslan Ermilov
5e3dac0cc8 mdoc(7) police: markup nits. 2001-10-01 13:42:41 +00:00
Ruslan Ermilov
cda0a584c5 mdoc(7) police: removed whitespace at EOL. 2001-10-01 13:40:31 +00:00
David E. O'Brien
757eeda04b *** empty log message *** 2001-10-01 08:43:58 +00:00
Dag-Erling Smørgrav
46ae3bbfea Check the return values from calls to malloc(), calloc(), strdup() etc.
Submitted by:	Philippe Charnier <charnier@xp11.frmug.org>
MFC after:	2 weeks
2001-09-30 16:09:17 +00:00
Murray Stokely
55e3fefc53 Close all open file descriptors before restarting sysinstall.
PR:		bin/30737
Submitted by:	Alexey V. Neyman <alex.neyman@auriga.ru>
2001-09-30 00:43:32 +00:00
Yaroslav Tykhiy
bc9c1e902f Add a new option to edquota(8) - "-f", which will
allow to limit the prototype quota distribution (-p)
to a single filesystem. Useful when initializing
quotas on a newly added disk.

PR:		bin/30816
Submitted by:	Dmitry Morozovsky <marck@rinet.ru>
2001-09-28 10:22:36 +00:00
Brooks Davis
f823d4a671 Mention that gif interfaces are created at runtime and refer the
administrator to the ifconfig create command.

MFC after:	1 week
2001-09-28 00:22:44 +00:00
Bill Paul
95d674824f Add device driver support for the Broadcom BCM570x family of gigabit
ethernet controllers. This adds support for the 3Com 3c996-T, the
SysKonnect SK-9D21 and SK-9D41, and the built-in gigE NICs on
Dell PowerEdge 2550 servers. The latter configuration hauls ass:
preliminary measurements show TCP speeds of over 900Mbps using
only normal size frames.

TCP/IP checksum offload, jumbo frames and VLAN tag insertion/stripping
are supported, as well as interrupt moderation.

Still need to fix autonegotiation support for 1000baseSX NICs, but
beyond that, driver is pretty solid.
2001-09-27 23:55:28 +00:00
Garance A Drosehn
ceeaedd3cc Basically rewrite the sortq() routine which is used by 'lpc clean' and
'lpc tclean'.  In some obscure cases, the previous version could cause a
valid user job to be removed (by 'clean'), due to invalid assumptions in
the sort routine.  This was a rare problem, unless ctlinfo.c is compiled
with 'LEAVE_TMPCF_FILES' turned on (to check what that rtn was doing).

Reviewed by:	Lack of outcry on -audit and freebsd-print@bostonradio.org
MFC after:	10 days
2001-09-27 17:16:53 +00:00
Guido van Rooij
775b007440 Redo patch in 1.22 such that the header printing is reset when the
process gets a SIGCONT

Reviewed by:	kris@freebs.org
MFC after:	2 weeks
2001-09-26 19:35:03 +00:00
Murray Stokely
f784e0d137 Back out rev 1.74. This functionality causes a panic on 4.4-RELEASE
floppies if you try to actually use it.  This code will work fine if
you build and use sysinstall on a running system, since you have the
benefit of an installed termcap file.  However, this code does not
work on an MFSROOT, where you must set the TERMCAP environment
variable properly.  Unfortunately the quick fix of setting the TERMCAP
variable doesn't seem to fix the problem either.  olgeni will add this
functionality back once it's been fully implemented (hopefully using
the working code in termcap.c).

PR:		bin/30739
Submitted by:	Alexey V. Neyman <alex.neyman@auriga.ru>
Discussed with / Pointy hat to:  olgeni
MFC after:	3 days
2001-09-25 00:28:26 +00:00
Ruslan Ermilov
4c47cadb49 Only compile with strtofflags.c from libc if bootstrapping. 2001-09-24 15:38:38 +00:00
Robert Watson
8025ea0a33 o Reduce userland inclusion of kernel headers -- remove unneeded include
of <sys/mbuf.h>.

Reviewed by:	jlemon
2001-09-24 14:43:35 +00:00
Murray Stokely
a0769a8d73 Add a couple of functions to create persistent variables that will
survive a sysinstall Ctrl-C -> 'Restart'.  This fixes another annoying
bug where restarting sysinstall will try to reload kernel modules and
do other external things that have already been done.  For now, use
these persistent variables to keep track of module, usbd, and pccardd
initialization.

Bug found by: rwatson
MFC after:    1 week
2001-09-24 10:16:23 +00:00
Murray Stokely
250f214507 Silence more warnings. 2001-09-22 23:17:37 +00:00
Murray Stokely
d47aa91c6a Silence warnings on alpha :
Use '%p' when printing out the address of a function.
  sizeof(int) != sizeof(long)
2001-09-22 22:34:14 +00:00
Murray Stokely
3b603fb7d3 Silence warnings. 2001-09-22 22:25:35 +00:00
Murray Stokely
9838440951 Silence warnings :
Use static as necessary.
   Use __unused as necessary.
   sizeof(int) != sizeof(void *)
2001-09-22 22:21:01 +00:00
Murray Stokely
eba8393e91 Add a function to free all of sysinstall's internal variables from the
environment.  This fixes an annoying bug where hitting Ctrl-C and
telling sysinstall to 'restart' will do no such thing since many of
the options are still set and so you won't be prompted for them
again.

MFC after:	1 week
2001-09-22 18:10:56 +00:00
Murray Stokely
8f217e4c8b Use the isDebug() function rather than making up a new environment
variable to check for debug functionality.  Previously, you had to set
both 'debug' and 'SYSINSTALL_DEBUG' to get a log of sysinstall's
activities.  Now, only 'debug' is necessary.
2001-09-22 18:07:47 +00:00
Ruslan Ermilov
72736552c4 Keep up with sys/net/rtsock.c,v 1.58.
Prodded by:	brian
2001-09-21 16:14:53 +00:00
Ruslan Ermilov
eb6626f52a WARNS= -> WARNS?= 2001-09-21 07:25:53 +00:00
Peter Wemm
12f8604fde Deal with nfs server module changes for autoloading. 2001-09-20 02:18:06 +00:00
Peter Wemm
4a0785aaff Deal with module name changes and autoloading. 2001-09-20 02:15:17 +00:00
Garance A Drosehn
626fb2a6fa Add minimal support for "o"-type print-file actions in lpd control files.
This was described in the original RFC wrt lpr, but most lpr's do not
actually implement it.  There is some indication that MacOS 10.1 will
be using this when sending postscript files to print servers (that is
what "o"-type was supposed to signify -- postscript files).

MFC after:	1 week
2001-09-20 01:04:50 +00:00
Maxim Sobolev
a09c8e438b Various fixes and improvements:
- fix harmless compiler's warnings (unused variables and missed prototype);
- before refusing to delete package because "there are packages installed
  that require this package" check that packages in question is actually
  installed;
- add new `-r' option to pkg_delete(8), which instructs it to delete not only
  packages specified at command line, but all packages that depend on
  specified packages as well.

MFC after:	2 weeks
2001-09-19 08:06:48 +00:00
Peter Wemm
9119623471 Userland part of nfs client/server split and cleanup. 2001-09-18 23:34:44 +00:00
Bruce A. Mah
a953848c04 Drop maintainership. 2001-09-18 17:58:10 +00:00
Bruce A. Mah
9cc1dc75e7 Support the use of ${PORTSDIR} to find a ports tree INDEX file in
an other-than-default location.

PR:		bin/30350
Submitted by:	"NINOMIYA Hideyuki <NINOMIYA Hideyuki" <nin@jp.FreeBSD.org>
MFC after:	3 days
2001-09-18 17:56:44 +00:00
Peter Wemm
8116859a74 Use includes to get prototypes for hints and env arrays.
Submitted by:	bde
2001-09-17 21:25:48 +00:00
Maxim Sobolev
9ad4f43281 Fix segfault introduced in previous commit (when adding local packages). 2001-09-17 13:37:50 +00:00
Ruslan Ermilov
3754c38b40 Fix the bootstrapping aid from revision 1.9.
WORLD was renamed to BOOTSTRAPPING.
2001-09-17 11:59:43 +00:00
Garance A Drosehn
a4c7cc9f12 Fix so that lpc's interactive-mode will not be confused by EditLine processing
into thinking that there is a print-queue called 'xterm'...

Reviewed by:	short discussion on freebsd-stable
MFC after:	1 week
2001-09-17 02:35:34 +00:00
Jordan K. Hubbard
6a903a9b76 Rework the RTSOL logic from previous patch (it was wrong)
PR:		26187 && 24136
Submitted by:	Glenn Trewitt <trewitt@trewitt.org>
2001-09-15 02:28:18 +00:00
Poul-Henning Kamp
c35b54708a Add missing {}. This made most/all scripted installs fail.
Approved by:	jkh
2001-09-14 18:29:08 +00:00
Ruslan Ermilov
c9842b5a55 Set BINOWN=root explicitly for setuid root binaries. 2001-09-14 11:03:34 +00:00
Murray Stokely
716c312b94 Increase disk space estimate for installing the ports collection from
70MB to 100MB.

Submitted by: rpratt
2001-09-14 08:51:17 +00:00
Murray Stokely
417257575f Whitespace change only. Use the same indention level throughout this
file and add a blank line after variable declarations.

Submitted by:	jhb
2001-09-14 08:39:22 +00:00
Ruslan Ermilov
8f9dacc2e6 Clean up, WARNSify, unbreak -v option handling. 2001-09-13 14:55:59 +00:00
Brian Somers
ed1e8460bd sigpause() -> sigsuspend()
sigblock() -> sigprocmask()
2001-09-13 10:03:30 +00:00
Brian Somers
d9dc3116bf Correct alignment issues
Obtained from: OpenBSD
2001-09-13 10:03:20 +00:00
Dag-Erling Smørgrav
f28f539f3c Add a strcasecmp() call I forgot in my hurry to commit the previous fix.
Without this call, the hostname check would in some cases yield false
positives.

Pointed out by:	ru
2001-09-13 09:40:35 +00:00
Brian Somers
ee52a08baa Spell syslog.conf correctly
Submitted by:	Tony Finch <dot@dotat.at>
PR:		30545
2001-09-13 09:06:51 +00:00
Ruslan Ermilov
99f469761e Don't override BINGRP -- this binary is not ``setgid bin''.
PR:		bin/30538
Submitted by:	Tony Finch <dot@dotat.at>
2001-09-13 06:52:42 +00:00
Dag-Erling Smørgrav
db87d61acf The previous commit appeared to just shove the bug under the carpet rather
than really solve it.  This approach (inspired by Ruslan's patch) solves
the real problem by stripping the local domain off the host name in the
config line structure.

Also mark a bunch of code sections that either do not check the return value
of a strdup(), malloc() or calloc() call, or do not properly handle a NULL
return.
2001-09-13 06:48:41 +00:00
Ruslan Ermilov
cda2a9b2f0 Set BINOWN=root explicitly for setuid root binaries.
This is not "useless", as one may have non-default
setting for BINOWN in make.conf, and we still want
these to be installed setuid root in this case.
2001-09-13 06:48:18 +00:00
Dag-Erling Smørgrav
a5cc8abe03 Fix logging from remote hosts, which has been broken since (at least) revision
1.64, i.e. July of last year.  Also fix a minor style bug in the same code.

PR:		bin/28634
Pointy hat to:	dwmalone
Pointed out by:	my buggy DSL router's remote logging facility
2001-09-13 05:09:14 +00:00
Jordan K. Hubbard
30b7cb5e9f Return the *right* error codes for yes/no questions when non-interactive.
Submitted by:	Alan Judge <Alan.Judge@eircom.net>
2001-09-11 20:42:07 +00:00
Dima Dorfman
5fa09bc197 If a sentence starts inside parenthesis, it should end inside
parenthesis.
2001-09-11 13:07:03 +00:00
Ruslan Ermilov
6658f7a13b mdoc(7) police: Fixed the .Ex calls in manpages that describe more
than one utility.

PR:		docs/30437
Submitted by:	SUZUKI Koichi <koich@cac.co.jp>
2001-09-11 12:27:15 +00:00
Søren Schmidt
458f42f154 Use getprogname(3) instead of hardcoding the name.. 2001-09-11 12:14:20 +00:00
Søren Schmidt
869ef2e75f Fixes from Ruslan Ermilov:
1.  FreeBSD should be spelled with "F" and "BSD" in capitals,
    even in comments.

2.  Please don't use hard sentence breaks.  Always start a
    new sentence from the new line.

3.  Don't use `#' or `$' in EXAMPLES; this has been fixed
    recently in share/examples/mdoc/ templates.

4.  Nuke the prog_name variable burncd.c, use getprogname(3).
2001-09-11 11:52:49 +00:00
Ruslan Ermilov
e5b4aed258 mdoc(7) police: use standard list width. 2001-09-11 11:15:48 +00:00
Ruslan Ermilov
46b474e84f mdoc(7) police: fix markup. 2001-09-11 11:12:53 +00:00
Dima Dorfman
e7254b02b2 Use a colon to separate the user and group when executing chown(1).
Periods aren't supported anymore.

PR:		30507
Submitted by:	Georg-W. Koltermann <gwk@sgi.com>
2001-09-11 11:11:38 +00:00
Ruslan Ermilov
7e848a7014 Fixed the free(3) panic overlooked due to the -Wno-uninitialized. 2001-09-11 08:18:04 +00:00
Peter Wemm
9c6f92408c Add kldxref(8), for maintaining the linker.hints file for translating
module->pathname.ko.  It supports only ELF for now.

Submitted by:   bp  (with some minor tweaks)
2001-09-11 01:13:15 +00:00
Søren Schmidt
fe2ea8eb89 Add DAO mode (Disk At Once).
See burncd.8 for how to use it.
2001-09-10 11:44:32 +00:00
Ruslan Ermilov
d76e231677 mdoc(7) police: markup nits.
PR:		docs/30473
Submitted by:	Jonathan Hanna <jhanna@home.com>
2001-09-10 09:08:47 +00:00
Brooks Davis
51331cf32a Add support for monitor mode. This means that after enabling the
correct mode via ancontrol, you can use bpf to sniff raw 802.11 frames.
Who want's to port AirSnort. ;-)

Submitted by:	Doug Ambrisko <ambrisko@ambrisko.com> (author)
		David Wolfskill <david@catwhisker.org> (port to current)
2001-09-10 02:05:10 +00:00
Dima Dorfman
fc66e618b4 Automatically load the "snp" module if it isn't already present. 2001-09-09 14:57:48 +00:00
Dima Dorfman
df755a4837 Use CFLAGS instead of COPTS. 2001-09-09 14:30:36 +00:00
Dima Dorfman
d3ca0b131b - Silence warnings: apply `const' generously, mark some variables
__unused, and change local variables named `sin' (struct
  sockaddr_in) to `sin4'.  (`sin' conflicts with the definition of
  sin(3), which gcc assumes to be defined even if math.h isn't
  included (it's a builtin).  This is probably a bug in gcc.)

- Apply WARNS=1.  WARNS=2 was not used because this program assigns
  string literals to (struct iovec).iov_base for writing, and the only
  clean way to silence -Wwrite-strings in that case would be to
  strdup() and consequently free() those literals, which I considered
  too disruptive.

Reviewed by:	bde (partially)
2001-09-09 14:25:02 +00:00
Bill Swingle
0fe2f8cb85 Fixes problem with pkg_add -r when adding multiple pkgs.
Reviewed by:	chris
2001-09-07 22:32:37 +00:00
David E. O'Brien
d6432d1f16 Strip non version _number_ bits from HOST_OS_VERSION.
Requested by:	knu
2001-09-06 18:39:46 +00:00
David E. O'Brien
5cd462d266 I was missing the HOST_OS_VERSION setting in the fall-back case.
Also, the script was too position dependant.  We now have make(1) pass in
the file to grub around in to get our settings from.
2001-09-06 17:52:59 +00:00
Dima Dorfman
6680d16d19 Print the correct filename if we fail to open $etc_passwd.
Submitted by:	Brian Poole <raj@cerias.purdue.edu>
2001-09-06 12:21:21 +00:00
Murray Stokely
53e1e93595 sysinstall's primitive network configuration expects only one value
for each option in the DHCP lease file.  The DHCP lease parsing code
specifically ignores more than the first nameserver, but it didn't
previously deal with the case of more than one router.  This caused
segfaults and a painful death when installing on a network with
multiple routers.

PR:		misc/16003
2001-09-06 10:27:28 +00:00
Murray Stokely
5693049227 There is a problem in this example script. Setting ftp=time.cdrom.com
is useless, we should set _ftpPath=blah.

PR:		misc/29587
Submitted by:	David Yeske <dyeske@yahoo.com>
2001-09-06 10:04:27 +00:00
Murray Stokely
810fd59fbb If we're running as init, install a signal handler for SIGCHLD.
PR:		bin/14729
Submitted by:	jhb
2001-09-06 09:53:53 +00:00
Brooks Davis
06c56b283b Make wicontrol WARNS=2 clean. This is mostly just adding const to things. 2001-09-05 23:59:20 +00:00
Dima Dorfman
f328d583a2 Use CFLAGS, not COPTS, in the Makefile. bsd.prog.mk conveniently adds
COPTS towards the end of final CFLAGS so that it can be used to
override Makefile and other defaults.  Using it in Makefiles risks
having options set using it clobbered when somebody uses it on the
command line.

Approved by:	bde
2001-09-05 20:10:59 +00:00
Dima Dorfman
2392d350e6 Don't mention wtmp.[0-7] in the FILES section. This manual page
doesn't talk about these files elsewhere, doesn't use the files by
default, and the names are dependent on site-specific newsyslog
configuration.

PR:		30348
Submitted by:	Giorgos Keramidas <charon@labs.gr>
2001-09-05 19:33:08 +00:00
Dima Dorfman
7d843d6a3a Correct a typo.
PR:		30347
Submitted by:	Giorgos Keramidas <charon@labs.gr>
2001-09-05 19:26:17 +00:00
Dima Dorfman
9507e12126 Fix typo.
PR:		30342
Submitted by:	Giorgos Keramidas <charon@labs.gr>
2001-09-05 19:21:25 +00:00
Andrey A. Chernov
5d078bb36b atol -> strtoll, for file offset 2001-09-05 17:05:31 +00:00
David E. O'Brien
1b5546b873 Try to determine the OS version and architecture for what is being built
vs.  the building machine.

PR:		14040
2001-09-05 16:54:20 +00:00
Murray Stokely
2ba3260838 4000 -> 5800 ports. We really need to add some smarts to the
ports/INDEX creation script to update #defines in header files and
entities in the doc/ tree.
2001-09-05 09:45:35 +00:00
Murray Stokely
ca61f68601 Allow network device name to be given on the command line in the
interactive case.  This already works for non-interactive installs,
but at least one user thinks it would be useful and it certainly seems
more correct to allow it here as well.

So, this will now work :

# sysinstall netDev=fxp0 tcpMenuSelect

PR:		bin/30229
Submitted by:	Mikhail Teterin <mi@aldan.algebra.com>
2001-09-05 08:10:04 +00:00
Murray Stokely
25818ccf8e Add Hungarian FTP mirror.
PR:		misc/21536
Submitted by:	Szilveszter Adam <sziszi@petra.hos.u-szeged.hu>
2001-09-05 07:41:01 +00:00
Murray Stokely
fe936981de Add Czech keyboard definition to sysinstall.
PR:		bin/17430
Submitted by:	Rudolf Cejka <cejkar@dcse.fee.vutbr.cz>
2001-09-05 07:12:19 +00:00
Kris Kennaway
7e2f1d04d8 Correct a last minute sizeof() bogon in my previous commit. 2001-09-05 05:20:31 +00:00
Murray Stokely
eda54d6828 Introduce the concept of previously mounted media to sysinstall.
This will now allow sysinstall to work properly if a FreeBSD CD/DVD is
already mounted as /cdrom, instead of just crapping out when it tries
to mount as /dist and gets EBUSY.

PR:		conf/28081
Tested by:	jhb
2001-09-05 02:30:50 +00:00
Murray Stokely
29b46c3bc5 Allow users to enable usbd and set flags from sysinstall. This is
useful for post install configuration or other cases that might not be
handled by usb.c. (usb.c already sets usbd_enable iff sysinstall
detects usb during install).

PR:		bin/18946
Submitted by:	Peter van Heusden <pvh@egenetics.com>
Reviewed by:	jhb
2001-09-05 00:58:28 +00:00
Murray Stokely
8e212e3580 Update the inetd configuration prompt for clarity.
Submitted by:	chern
Committed from: "Make sysinstall suck less party", D1031 WRS campus, Alameda
2001-09-05 00:45:13 +00:00
Murray Stokely
b25687720b Revisions 1.117 and 1.118 of tcpip.c fixed the logic dealing with DHCP
and RTSOL in sysinstall.  If the respective TRY_FOO variable is set to
"YES" then it will be tried without prompting the user.

However, if the TRY_FOO variable is set to "NO" then the user will not
be prompted for a choice.  This is the correct behavior, since we want
people to be able to script sysinstall in either case.

However, the default TRY_FOO variable has been "NO" since 1999.  This
is incorrect, and when the logic was corrected in tcpip.c this has the
effect of never giving the user a choice to use DHCP or IPv6.  The
value should be undefined until it is set by a script or by the user.

Submitted by:	Randy Pratt, Chern Lee, many others.
2001-09-04 23:56:30 +00:00
Jordan K. Hubbard
119a25407c Add 3rd spanish mirror
Submitted by:   "Jose M. Alcaide" <jose@we.lc.ehu.es>
2001-09-04 22:08:33 +00:00
Brian Somers
156a04e466 Fix a diagnostic 2001-09-04 22:07:56 +00:00
Bruce A. Mah
0b04c12ca7 sysinstall's binary upgrade option used to display the contents of
UPGRADE.TXT along with a YesNo dialog requesting confirmation of
the upgrade.  During the transition to RELNOTESng, UPGRADE.TXT got
folded into a file that eventually renders as INSTALL.TXT, which
makes sysinstall complain about a non-existent file.  As a
solution/workaround, point the user at INSTALL.TXT, and then request
confirmation.

Noticed by:	rpratt (on 4.4-RC3)
Approved by:	jkh
2001-09-04 21:06:48 +00:00
Robert Watson
4a194bc678 Since we now install sysinstall in /usr/sbin, encourage the user to
run that version, rather than the copy in /stand.
2001-09-04 20:22:41 +00:00
Robert Watson
dd5360b44c Spell SSHd as sshd to improve readability and consistency. 2001-09-04 20:22:14 +00:00
Robert Watson
0d0f76632d Add an additional \n before the "cautionary note" on the topic of
admins needing to pay attention when configuring the system.  This
improves readability of this message.
2001-09-04 20:21:12 +00:00
Robert Watson
e01106586f Don't name the main menu "/stand/sysinstall Main Manu" since it now
often lives in /usr/sbin.  Instead, just name it "sysinstall Main Menu".
2001-09-04 20:14:59 +00:00
Ruslan Ermilov
51845aff29 mdoc(7) police: This still can be done with one-line display. 2001-09-04 14:10:41 +00:00
Ruslan Ermilov
589b4db814 mdoc(7) police:
1)  Removed the low-level (unneeded in this context) details on
    escape sequences that are already documented in screen(4).

2)  Removed whitespace at EOL.

3)  Removed the garbage from previous revision.
2001-09-04 13:54:45 +00:00
Ruslan Ermilov
89a374a163 mdoc(7) police: s/vidmap/vidfont/, don't xref to itself. 2001-09-04 13:10:28 +00:00
Noriaki Mitsunaga
4ea024db92 Change the access width of memory window from 8 bits to 16 bits.
16 bits access is required by nsp driver to work in SMIT mode.
Since previously (1.65 and before in current, and 1.46.28 and before
in stable branch) 16 bits access was default, I hope it will break nothing.

Okayed-by: imp
2001-09-04 04:40:09 +00:00
Murray Stokely
5cffcde644 Note that kbdmap is an interactive command.
PR:		docs/29506
Submitted by:	Gary W. Swearingen <swear@aa.net>
2001-09-04 03:18:13 +00:00
Murray Stokely
c271258542 Add additional information about VGA attributes.
PR:		docs/28000
Submitted by:	Robert Drehmel <robert@zoot.quizbot.org>
2001-09-04 00:54:37 +00:00
David E. O'Brien
3fe149a643 Opps, let one definition slip out that we define dynamically. 2001-09-03 19:19:12 +00:00
Dima Dorfman
2b3f1731e1 Actually, instead of removing the comment entirely, change it to talk
about {vid,kbd}map, which is probably what the author meant.

Submitted by:	Gary W. Swearingen <swear@aa.net>
2001-09-03 16:07:14 +00:00
Dima Dorfman
db74fae175 This does not describe kbdcontrol or vidcontrol.
PR:		29505
2001-09-03 16:04:59 +00:00
Dima Dorfman
979d474a6d syslogd can now be configured to bind to a specific address. 2001-09-03 15:42:10 +00:00
Dima Dorfman
2be196f14c For new users, create the home directory before sending the welcome
mail, if configured to do so.  Some sites have setups where the user's
mail is delivered to their home directory, so sending mail before is
exists didn't work.

PR:		29892
2001-09-03 14:12:42 +00:00
David E. O'Brien
6874428a19 Use the native mount and nfs_prot headers.
Also generate nfs_prot_x.c in ANSI-C mode.
2001-09-02 20:37:36 +00:00
David E. O'Brien
890bbd6bda Update for version 6.0.7. 2001-09-02 19:50:47 +00:00