Commit Graph

9058 Commits

Author SHA1 Message Date
Thomas Quinot
7ac1f02eed Allow multiple hosts or programs to be named in program
or host specifications, eg:

!foo,bar
*.* /var/log/only_foo_or_bar.log

!-foo,bar
*.* /var/log/all_except_foo_or_bar.log

Reviewed by:		roberto
Not objected to by:	arch@
2003-02-13 00:08:56 +00:00
Yoshihiro Takahashi
afb7a66e08 Use DIOCGPC98 ioctl to write boot block. 2003-02-11 07:29:14 +00:00
Andrey A. Chernov
21c7f9f0ad Add -DHAVE_ARC4RANDOM to CFLAGS 2003-02-11 02:25:00 +00:00
Andrey A. Chernov
9328833aac Use srandomdev() for FreeBSD 2003-02-11 02:21:41 +00:00
Andrey A. Chernov
c6c9094f0c There is no sense to use random random() and arc4random() in the same program.
Switch to arc4random() completely.
2003-02-11 02:17:11 +00:00
Andrey A. Chernov
0f77478694 Add missing srand() (sranddev() for FreeBSD) 2003-02-11 02:09:05 +00:00
Andrey A. Chernov
bd344e96cf Use sranddev()/srandomdev() for FreeBSD 2003-02-11 01:56:40 +00:00
Thomas Quinot
6ced08bfa6 Allow inner whitespace in the right-hand side of an environment variable
assignment even if it is not quoted (as advertised by the man page).
This fixes a regression wrt RELENG_4 introduced in rev. 1.11.

Problem noted and patch tested by:	CHOI Junho <cjh@kr.FreeBSD.org>
Reviewed by:		roberto
2003-02-10 11:20:58 +00:00
Doug Barton
687e6ad79b Try to fix two problems with the -I example. One is the fact that we
want to match a character $, not EOL. The other is that CVS helpfully
expanded my example into an actual CVS tag.

Submitted by:	gad
2003-02-10 06:35:34 +00:00
Martin Blapp
f288477e4e Explicitly release a existing lease before we start dhclient (again).
If we already have a lease and restart sysinstall (or something with
the net configuration goes wrong), we would have to reboot just
because there is a dhclient hanging around.

Reviewed by:	murray (re)
MFC after:	5 days
2003-02-09 22:04:50 +00:00
Mike Makonnen
c95c14d4e1 Revisit the shell special characters issue and settle it once-and-forall.
All characters will be accepted, and pw(8) can sort out which ones it
will allow and which ones it won't.

Approved by:	markm (mentor)
Prodded by:	Philippe Bourcier <philippe@cyberabuse.org>
2003-02-09 18:29:09 +00:00
Hidetoshi Shimokawa
e6aaafcd79 Improve device listing. 2003-02-09 07:26:48 +00:00
Gregory Neil Shapiro
26085e0d27 Give more information to users replacing sendmail regarding periodic's
submit mail queue check.

PR:		docs/38924
2003-02-08 21:39:58 +00:00
Adrian Chadd
3386ded6a9 Change the behaviour of adduser to match the previous incarnation a little more.
If any of the given groups do not exist complain and let the user try again.
This saves the user from discovering at the end of the process that they've
forgotten to add a group or they've typoed.

Thanks to cmc/dougb for pointing out how bad my sh fu actually is.

Original code by: me
Scary sh rewrite by: dougb

Reviewed by:	dougb
2003-02-08 08:04:53 +00:00
Robert Watson
c2f10e2de4 Relocate a call to enable inetd so that it is set regardless of
whether the user chooses to edit inetd.conf.

PR:	39311
Reported by:	Martin Faxer <gmh003532@brfmasthugget.se>
2003-02-06 01:55:40 +00:00
Tom Rhodes
a7d4e0173c MFS: 1.2.2.2 2003-02-05 19:16:18 +00:00
Doug Barton
1d825c58fb * Update copyright year.
* Give back one line of ws when showing a diff.
  This was requested by several.
* Un-quote DIFF_FLAG, and add DIFF_OPTIONS. This will allow the user to
  do more creative things in a mergemaster rc file. Un-quoting is necessary
  in order to handle things like CVS Id tags that look like shell variables.
* Simplify terminal width determination.

Suggestions related to ignoring the CVS Id's were taken from several, with
dillon and gad providing particularly helpful feedback.
2003-02-05 11:09:21 +00:00
Doug Barton
00482d1917 * Update copyright year.
* Add an example that ignores CVS Id tags for the new DIFF_OPTIONS variable.
2003-02-05 11:03:05 +00:00
Ruslan Ermilov
3bf31777b9 Added MI version of <sys/imgact_aout.h>, "a.out.h", which is
always compatible with the i386 version.

This fixes one of the problems I had cross-releasing i386 on
Alpha: the produced "-f aout" binaries are now identical.
2003-02-04 18:56:34 +00:00
Ruslan Ermilov
69ceaabdd7 Always build kgzip(8); needed to cross-release i386. 2003-02-04 16:04:03 +00:00
Ruslan Ermilov
05b451c6ed Make this work on non-i386 as well. (Needed for cross-releases.) 2003-02-04 16:01:00 +00:00
Tony Finch
3967e18ad6 Better gender-neutral language.
Submitted by:	sheldonh
2003-02-04 11:12:36 +00:00
Bill Fumerola
6e085fd13f even the default case in a switch requires some action (add break;)
EVP_sha1() returns a const EVP_MD *, so reflect that in the variable
we store its return value in.
2003-02-03 22:47:03 +00:00
John Baldwin
69d80a8d1c Fixup capitalization in some of the Startup menu entries.
Submitted by:	Hiten Pandya <hiten@unixdaemons.com>
2003-02-03 16:14:33 +00:00
Tom Rhodes
dbbdfcf810 Remove this Makefile, these docs are built by the Makefiles in src/share/doc/smm. 2003-02-01 20:34:04 +00:00
Mark Murray
edf34e80d8 No need for the OPENSSL_NO_KRB5 switch anymore.
Fixed by:	nectar
2003-01-31 23:26:55 +00:00
Robert Drehmel
46f7e0d224 - Modernize the format of the open file showing mode output:
. Print the column headers centered (except for the left-aligned
     TYPE header) using a different header for architectures where
     sizeof(uintptr_t) is not four.
   . Consistently do not print a '0x' prefix for hexadecimal values.
   . Separate columns by a single space character.
   . Pad the columns presenting an address or offset enough to hold
     their respective largest value.
   . Do not restrict the output to unknown file types, inodes and
     sockets; allow displaying of pipes, fifos, kqueues and crypto file
     descriptors too.
 - Shorten an overly long line by removing a cast of printf's return
   value to void.

PR:		alpha/45240
Tested on:	i386, sparc64, alpha
2003-01-31 15:16:52 +00:00
Tom Rhodes
922b8adbb3 Eliminate hard sentence breaks. 2003-01-30 22:38:54 +00:00
Tom Rhodes
468d7c8b6e Grammar cleanup.
PR:			34529
Submitted by:		David Sieborger <drs@rucus.ru.ac.za> (original version)
With comments by:	keramida
2003-01-30 22:34:27 +00:00
Hidetoshi Shimokawa
91b4ea0cc7 Improve alignment in printf(). 2003-01-30 03:46:48 +00:00
Ruslan Ermilov
d51456da6f Part 1/3 of unbreaking cross releases:
Back out the removal of custom version of endian.h system header.
On recent systems, it just falls back to <sys/endian.h>.  But on
older systems like 5.0-DP1 or 4-STABLE, this private version may
be necessary, as crunchide(1) is a cross-tool for "make release".

Spotted by:	kris, markm
2003-01-29 08:37:26 +00:00
Mark Murray
c6dfac3ee8 iAdjust for OpenSSL 0.9.7. 2003-01-28 23:08:41 +00:00
Matthew Dillon
f959d23788 Backout last commit by request. 2003-01-28 18:44:40 +00:00
Hidetoshi Shimokawa
013490c5e0 - Search free device node to open. (fwcontrol.c)
- Exploit multiple packets read/write for DV stream. (fwdv.c)
- Add reference to libdv in the ports collection. (fwcontrol.8)
2003-01-28 17:00:23 +00:00
Garance A Drosehn
84a0950aea Changes so the 'pw' command will allow '$' as the last character in a userid
or group name (mainly for the benefit of samba).  This pretty much rewrites
he pw_checkname() routine, but should work exactly the same except for the
above change, and that error messages are somewhat more informative.

PR:		28733 46890
Inspired by:	example patch written by Terry Lambert
Reviewed by:	no objections on freebsd-arch and freebsd-current
MFC plans:	no plans, but will do if people want it in stable.
2003-01-28 01:21:57 +00:00
Tom Rhodes
acbd6988aa Teach sysinstall about the em(4) device.
PR:		46439
Submitted by:	Dan Lukes <dan@obluda.cz>
Approved by:	re (murray)
Tested?		yes
MFC:		1 day
2003-01-27 04:51:46 +00:00
Tom Rhodes
d13d6a9ed2 Note that -c is no longer supported. This was requested by a few users and
we even have a PR about it.

PR:		47388
Discussed with:	bmah
Requested by:	many
2003-01-27 02:05:59 +00:00
Murray Stokely
9d11bc143b Correct typo.
Submitted by:	Andreas Kohn <andreas.kohn@gmx.net> (via -STABLE)
2003-01-26 21:14:56 +00:00
Giorgos Keramidas
0f2e01e04d Reword the description of -R a bit and add a note about being careful
when -R is combined with patterns that might match ".." (like ".*").

PR:		46415
Submitted by:	Gary W. Swearingen <swear@attbi.com>
2003-01-26 02:40:23 +00:00
Matthew Dillon
e027a83457 Change the nominal swap calculation from 1/2 physical memory to 1/8
physical memory.  The default is still 2x physical memory.  The nominal
calculation is used to back-off swap auto-allocation ('A'uto command)
when the disk is not large enough to accomodate all filesystem auto-defaults.
This gives other partitions (like /usr) more priority over swap on smaller
disks.

This should help solve reported auto-sizing failures on machines with small
hard drives and huge amounts of memory.  For example, a machine with 2G of
disk and 4G of memory will fail to auto-size without this fix.

MFC after:	3 days
2003-01-25 19:32:35 +00:00
Matthew Dillon
c3342fe141 Commit simple mergemaster changes to make the UI more deterministic
(far easier to use) by limiting the initial display to the size of the
window.
2003-01-25 19:12:06 +00:00
Hidetoshi Shimokawa
c547b896f5 Change API of FW_GDEVLST ioctl.
- include information about itself.
- define struct fw_devinfo and use it in struct fw_devlstreq.
- unify EUI64 representation using struct fw_eui64.
2003-01-25 14:47:33 +00:00
Hidetoshi Shimokawa
8604e72a9f Use stderr for message output. 2003-01-24 03:40:36 +00:00
Max Khon
cf8a185d8d back out logging to /var/log/adduser
(/usr/sbin/pw already logs to /var/log/userlog)
2003-01-24 02:05:51 +00:00
Mike Makonnen
21084fe3e4 In interactive mode, ask the user if he/she wants to add another
user and re-run interactive questions or quit depending on the
answer.

Submitted by: Scot Hetzel <hetzels@westbend.net>
Approved by: markm (mentor)
2003-01-24 00:24:26 +00:00
Max Khon
fd045cf566 expr foo -> $((foo)) 2003-01-23 20:18:21 +00:00
Max Khon
e63bd70a30 - restore an ability to write log of added users (default to
/var/log/adduser, disabled if empty or adduserlog="no")
- do not ask for password in configure mode
- print $passwdtype instead of password in configure mode
- add DATECMD, GREPCMD (not overridable but with full path)
2003-01-23 20:07:40 +00:00
Max Khon
ce1794a807 Do not loose trailing spaces when printing prompt messages. 2003-01-23 19:58:16 +00:00
Max Khon
41a1582349 Do not expose password if it is empty and PWF_STANDARD format is requested
MFC after:	1 week
2003-01-23 19:51:48 +00:00
Hidetoshi Shimokawa
937bcaa881 Merge DV(Digital Video) support. 2003-01-23 16:10:12 +00:00
Johan Karlsson
4224228e15 burncd format accepts either 'dvd+rw' or 'dvd-rw' not 'dwd+rw'.
Approved by:	sos
2003-01-23 09:12:09 +00:00
Mike Makonnen
3a3f8378a9 ypserv(8) is now started from rc.d
Approved by: markm (mentor)(implicit)
2003-01-23 06:03:30 +00:00
Mike Makonnen
c83365999e *blush*
While I'm here properly quote all the other input I neglected
to quote.

Approved by: markm (mentor)(implicit)
2003-01-23 01:57:30 +00:00
Mike Makonnen
acb3f07afd Don't forget to properly quote input.
Approved by: markm (mentor)(implicit)
Submitted by: Robin Breathe <robin@isometry.net>
2003-01-21 12:11:35 +00:00
Warner Losh
1326e03f7f pccardd and pccardc are for i386 and pc98 only. Don't build them on
other architectures.

Pointed out by: peter
2003-01-21 08:42:27 +00:00
Matthew N. Dodd
ae29313a73 - Restore header printing to wi_printaplist()
- Move APRATE switch() code to function for clarity.
- Conditionally call wi_printaplist() alone if more than one 'L'
  is preset.
- Add the 'Q' flag to suppress printing of extraneous information
  in wi_printaplist().
- Re-order second getopt() in main().

Reviewed by:	 imp
2003-01-21 07:28:57 +00:00
Jake Burkholder
1eed250ad8 Fix kldxref on sparc64 by allowing non-trivial relocations to be performed
on variables read out of raw kld files.  Unlike other platforms the value
will be in an Elf_Rela, not in the data section of the elf file.

Submitted by:	Hartmut Brandt <brandt@fokus.gmd.de>
PR:		46730
Tested on:	alpha (obrien), i386, sparc64
2003-01-21 03:51:53 +00:00
Sam Leffler
86209e4f24 fix -L (scan ap's): use WI_RID_SCAN_APS instead of WI_RDI_SCAN_REQ to start
a scan so the driver can use the best/right op for the card
2003-01-20 19:46:46 +00:00
Max Khon
8b6caf2634 do not loose trailing space when asking uid 2003-01-20 17:55:31 +00:00
John Baldwin
4b6c29cebc - Rename installFixupBin to installFixupBase to finish up the 'bin' to
'base' dist rename.
- Rework struct dist to allow for different types of dists.  There are
  currently three types of dists: DT_TARBALL, the traditonal gzipped and
  split tar file; DT_PACKAGE, a package; and DT_SUBDIST, a meta-dist in
  the tree that has its own array of dists as its contents.  For example,
  the 'base' dist is a DT_TARBALL dist, the 'perl' dist is a DT_PACKAGE
  dist, and the 'src' dist is a DT_SUBDIST dist with its own dist table
  that contains 'sbase', 'ssys', etc.
- Add helper macros for defining array entries for the different types of
  dists to try and make the statically defined dist table in dist.c more
  readable.
- Split the logic to deal with a DT_TARBALL dist out of distExtract()
  and into its own distExtractTarball() function.  distExtract() now
  calls other functions to extract each dist.
- Tweak the percentage complete calculation in distExtractTarball() to
  do the multiply prior to the divide so it doesn't have to use floating
  point.
- Axe the installPackage() function along with the special handling for
  the perl and XFree86 dists in distExtractAll() since distExtract()
  handles package dists directly now.
- Add back in subdists for the X packages based on the split up packages
  that XFree86-4 uses that as closely map to the X dists we used with
  X 3.3.x.
- Lots of things like distSetX() and the X dist masks are no longer
  #ifndef X_AS_PKG since we use them in both cases now.
- Make the entire installFixupXFree() function #ifndef X_AS_PKG, we only
  call it in that case anyways, and it's not suitable for the X_AS_PKG
  case.
- Add in X dist menus for the X_AS_PKG case.

Approved by:	re
2003-01-17 19:05:32 +00:00
John Baldwin
d1a079fb0d Add 'vlan' as a network device.
Tested by:	dcs
2003-01-17 18:51:21 +00:00
Ruslan Ermilov
3adcd04299 Don't hide global `s'. 2003-01-17 08:10:43 +00:00
Martin Blapp
bcb53b1606 Implement nonblocking tpc-connections. rpcgen -m does still
produce backcompatible code.

Reviewed by:	rwatson
Obtained from:	NetBSD
MFC after:	1 day
2003-01-16 07:27:30 +00:00
Robert Watson
42c0e331cd Using LOGIN_SETALL &~LOGIN_SETMAC to avoid setting the MAC label improperly,
rather than specifically setting the process priority and resource class;
otherwise, we improperly set other aspects of the login class.  We have
a bit more to do here, but the proper fix will probably involve breaking
out MAC labels from the login class at some point, as well as further
clarifying the logic here.

Pointed out by:	kuriyama, max
2003-01-16 03:41:57 +00:00
John Baldwin
0a10e2868e Add a function driverFloppyCheck() that asks the user if they would like to
load drivers from the driver floppy if the "driver_floppy" variable is set
in the kernel environment and call this function after probing devices but
before displaying the main menu.

X-MFC after:	as soon as I finish committing to current
Approved by:	re@ (blanket)
2003-01-15 21:47:36 +00:00
Sam Leffler
82eeb6661a update for revised wi driver that uses the 802.11 link layer support
Reviewed by:	imp
2003-01-15 20:15:00 +00:00
David E. O'Brien
e116b9a834 Move the realloc outside the inner loop. This reduces the number of times
we do the realloc.
2003-01-15 16:10:29 +00:00
Chris Costello
e44ed48582 sigh... revert the previous change; this isn't getpmac
Pointy hat:	chris
2003-01-15 03:13:51 +00:00
Chris Costello
450e96847a Cross-reference the appropriate mac library functions.
Sponsored by:	DARPA, Network Associates Laboratories
2003-01-15 03:13:50 +00:00
Chris Costello
f42021e7d1 Cross-reference mac(4).
Sponsored by:	DARPA, Network Associates Laboratories
2003-01-15 03:09:01 +00:00
Chris Costello
eaa6ebc44c Activate getpmac.8 2003-01-15 01:43:09 +00:00
Chris Costello
520b42aa5b Document getpmac.
Sponsored by:	DARPA, Network Associates Laboratories
Obtained from:	TrustedBSD Project
2003-01-15 01:40:35 +00:00
Chris Costello
523313a48f s/^Sh/.Sh/ (macros begin with .) 2003-01-15 01:20:58 +00:00
Chris Costello
8d43d865d0 Document setpmac.
Sponsored by:	DARPA, Network Associates Laboratories
Obtained from:	TrustedBSD Project
2003-01-15 01:17:12 +00:00
Jun Kuriyama
6dcbe61c90 If you don't create a /usr filesystem, / will need 200MB. 2003-01-13 21:57:07 +00:00
Matthew Dillon
48e3128b34 Bow to the whining masses and change a union back into void *. Retain
removal of unnecessary casts and throw in some minor cleanups to see if
anyone complains, just for the hell of it.
2003-01-13 00:33:17 +00:00
Matthew Dillon
cd72f2180b Change struct file f_data to un_data, a union of the correct struct
pointer types, and remove a huge number of casts from code using it.

Change struct xfile xf_data to xun_data (ABI is still compatible).

If we need to add a #define for f_data and xf_data we can, but I don't
think it will be necessary.  There are no operational changes in this
commit.
2003-01-12 01:37:13 +00:00
John Baldwin
4cabc17bf2 Fix a typo: s/save_free/safe_free/. 2003-01-09 22:07:24 +00:00
David E. O'Brien
29c74adbd0 save_free the buf. 2003-01-09 19:11:16 +00:00
David E. O'Brien
a826c17df2 Separate the uses of a buffer and make it dynamically sized.
Approved by:	scottl(re), jhb(re)
Reviewed by:	kuriyama
2003-01-09 17:44:29 +00:00
Dag-Erling Smørgrav
a5c14b885b Actually, the canonical way would be syntactically correct. 2003-01-09 12:04:21 +00:00
Dag-Erling Smørgrav
9939988ef2 Canonical way of determining whether or not to use crypto. 2003-01-09 11:57:58 +00:00
Tom Rhodes
50c4e962b4 Fix up some grammar.
Noticed by:	sheldonh
2003-01-09 04:35:38 +00:00
John Baldwin
0a47312495 Add code to parse the contents of an ACPI MADT table and to dump its
contents in the form of a comment in the acpidump output.  The output
is not in the prettiest output, but it does work correctly.

Approved by:	marcel
2003-01-08 20:46:25 +00:00
John Baldwin
7f3d3d9b26 Add structure definitions for the various items in a ACPI Multiple
APIC Descriptor Table (MADT) which has the signature 'ACPI'.

Approved by:	marcel
2003-01-08 20:45:23 +00:00
Robert Watson
15e90ad4c5 For now, set only the resource limits and process priority associated
with a class, rather than all aspects of the class when switching
classes for an inetd service.  Because we hard-code /daemon in the
current inetd implementation, using SETALL has unfortunate side-effects
involving the MAC code, and potentially other credential related
settings in the future.  This change maintains the DoS-resistent
aspects of the class behavior, which is all that is promised in the
inetd man page.

A larger set of diffs providing more pluggability and configurability
was deferred for this more simple approach in the short term.

Reviewed by:	ache
Obtained from:	TrustedBSD Project
Sponsored by:	DARPA, Network Associates Laboratories
2003-01-08 17:10:11 +00:00
Scott Long
9335d6884c Teach sysinstall about rpcbind, rpc.lockd, and rpc.statd. As an added
bonus, rpcbind will be enabled automatically if rpc.lockd, rpc.statd, amd,
NFS Server, or NIS is enabled.
2003-01-07 07:46:50 +00:00
David E. O'Brien
8c383bacf9 Compare pointers to NULL rather than make it look like they are ints. 2003-01-06 17:15:35 +00:00
David E. O'Brien
efd394684a save_realloc() should use reallocf() to close memory leaks.
item_add() should use safe_realloc() as it does no error checking itself.
2003-01-06 17:11:46 +00:00
Poul-Henning Kamp
ae51b3cd4a Update kernbb(8) to deal with GCC's new way of doing things. 2003-01-06 07:46:26 +00:00
Jordan K. Hubbard
12ebd46e4b Prevent buffer overflow in format_cmd() by properly tracking maximum
buffer size.
Reported by:	Lionnel CHAPTAL <Lionnel.Chaptal@IPricot.com>
MFC after:	1 week
2003-01-06 07:39:02 +00:00
Marcel Moolenaar
d88514696b Enable pppctl(8) on ia64. 2003-01-06 01:00:26 +00:00
Thomas Moestl
26bb063362 Build pppctl on sparc64, now that we have libc_r. 2003-01-05 22:38:58 +00:00
Hidetoshi Shimokawa
bce5729a9d - Remove speed_map API because speed_map is obsoleted by 1394a.
- Add definition of OHCI_HCC_BIBIV in fwohcireg.h.
2003-01-04 16:03:50 +00:00
Hidetoshi Shimokawa
7ddbf617b1 - Handle zero sized directory right way.
- Staticize.
2003-01-04 10:32:31 +00:00
Poul-Henning Kamp
42c43e6031 Make struct swblock kernel only, to make vm/swap_pager.h userland includable.
Move struct swdevt from sys/conf.h to the more appropriate vm/swap_pager.h.
Adjust #include use in libkvm and pstat(8) to match.
2003-01-03 16:23:12 +00:00
Jens Schweikhardt
9d5abbddbf Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,
especially in troff files.
2003-01-01 18:49:04 +00:00
Jens Schweikhardt
d64ada501a Fix typos, mostly s/ an / a / where appropriate and a few s/an/and/
Add FreeBSD Id tag where missing.
2002-12-30 21:18:15 +00:00
Mike Barcroft
bc6ba9aec6 Back out rev 1.19; getbsize(3)'s original interface has been restored. 2002-12-30 18:21:47 +00:00
Mike Barcroft
c48205f332 Back out rev 1.78; getbsize(3)'s original interface has been restored.
Approved by:	markm
2002-12-30 18:19:19 +00:00
Mike Barcroft
064c8b22be Back out rev 1.33; getbsize(3)'s original interface has been restored.
Approved by:	markm
2002-12-30 18:16:26 +00:00
David E. O'Brien
fb5506762d Make fully WARNS=5 clean.
Tested on:	sparc64, x86
2002-12-30 10:57:41 +00:00
David E. O'Brien
987d3799f3 Use basename(3). 2002-12-30 10:16:56 +00:00
Hidetoshi Shimokawa
a7a73b95d1 Import FireWire userland utility. 2002-12-30 10:13:16 +00:00
David E. O'Brien
90b77cf39a Use <sys/endian.h> rather than a private verison.
Tested on:	sparc64, Athlon[32]
2002-12-30 10:04:46 +00:00
David E. O'Brien
cbb66355ca Move elf2aout back to /usr/bin -- it is a general development tool, not
a sysadmin tool.
2002-12-30 10:01:26 +00:00
David E. O'Brien
b403e40637 This really isn't WARNS clean. 2002-12-30 09:38:46 +00:00
Juli Mallett
59bfb1ea42 Print old mixer levels when setting new ones. 2002-12-30 04:23:08 +00:00
Garrett Wollman
2ae92e3e07 Fix printf format errors on 64-bit platforms and make WARNS=5 compliant.
Checked on Alpha and IA32.

Reviewed by:	maintainer timeout
MFC after:	1 week
2002-12-29 22:28:51 +00:00
Doug Ambrisko
6cafe2646a Add support for MPI-350 the mini-pci Cisco Aironet card. This needs more
work.  The interface was gleaned from the Linux driver.  Currently only
one RX & one TX buffer are used.  Firmware support is not tested so for the
MPI-350 so it is disabled.  Signal cache and monitor mode are not supported
yet.  Signal cache is not supported since in encapsulation mode ethernet
frames are returned by the chip.  LAN monitor mode support will be added
shortly.  Thanks to Warner for the MPI-350 card he sent me.

Add support for RSSI map from PR kern/32880 which was incomplete.  Enhanced
with the ability to select the cache mode of raw, dbm or per-cent.

Clean up Signal/Noise/Quality structures and units with help from
Marco Molteni.

Change flash to use a malloc'ed buffer when needed.

PR:		kern/32880
Submitted by:	Douglas S. J. De Couto decouto@pdos.lcs.mit.edu,
		Marco Molteni
MFC:		3 weeks
2002-12-29 19:22:07 +00:00
Poul-Henning Kamp
23db6b2998 Use the new sector0 munging ioctls to make boot0cfg work under GEOM. 2002-12-29 15:01:58 +00:00
Robert Watson
1fb6584d21 Since our default boot block now supports UFS1 and UFS2 even on
i386, remove the seatbelt preventing users from setting the UFS2 flag
on the root file system on i386.  This seatbelt did not exist on
other platforms.

MFC candidate.
2002-12-28 23:33:09 +00:00
Jens Schweikhardt
57bd0fc6e8 english(4) police. 2002-12-27 12:15:40 +00:00
Ruslan Ermilov
44acbc1adc POLA dictates that in the file designated with the -f option
argument, leading whitespace and empty lines be ignored, and
the `#' character marks the rest of the line as a comment.

PR:		bin/45958
MFC after:	3 days
2002-12-27 10:09:04 +00:00
Ruslan Ermilov
2dab76f7d1 s/pseudo-device/device/ 2002-12-26 19:56:29 +00:00
Ruslan Ermilov
facc67676f mdoc(7) police: Deal with self-xrefs. 2002-12-24 13:41:48 +00:00
Maxim Konovalov
fcb18f74b4 Fix usbd.conf parsing: fgetln(3) returns a string without terminating
NUL character so do not expect it.

PR:		bin/46489
MFC after:	1 week
2002-12-24 11:58:05 +00:00
Tom Rhodes
6b010ec682 Various language tweaks.
PR:		45604
Submitted by:	Chris Pepper <pepper@rockefeller.edu>
2002-12-24 01:04:42 +00:00
David Malone
e8bd9c569e Add a new ftp mirror in Ireland which offers a service over IPv6.
MFC after:      1 week
Reviewed by:	ume
2002-12-23 23:25:39 +00:00
Pierre Beyssac
f939355be4 Fix typo: vunerable -> vulnerable. 2002-12-22 15:29:48 +00:00
Tom Rhodes
35c45e664a Make newsyslog(8) print the correct date when the logs are turned over.
PR:		46395
Submitted by:	maxim
MFC:		eventually
2002-12-21 22:27:26 +00:00
Jordan K. Hubbard
d667ae9537 Correct path to /usr/sbin/sysinstall for HEAD since that's where it lives now. 2002-12-20 00:10:37 +00:00
Marcel Moolenaar
00d3053746 o Use sysctl machdep.acpi_root to get the physical address of the
RSDP. Scan the first 1MB on i386 if the sysctl fails,
o  Extend struct ACPIrsdp with the ACPI 2.0 fields which involves
   changing a prior reserved field into the ACPI revision,
o  Only calculate the RSDP checksum on the first 20 bytes to remain
   compatible with ACPI 1.0 tables; we don't check the extended
   checksum covering the whole table,
o  Use the length field in the RSDP to map the RSDP into the address
   space so that we don't have to know about future extensions here.
2002-12-19 08:06:53 +00:00
Søren Schmidt
43ab91c3c6 On drives that returns 00 as 100% done, lower the criteria
for wraparound, 99 was too much for fast drives since they
do not give 99 as the last value, but instead something
in the 90's range.
2002-12-18 07:43:42 +00:00
Martin Blapp
fb4c80619a Change the name for the local unix-socket based protocol
from "unix" back to "local".  Add some compat stuff so both
ways work for some time.

Reviewed by:    phk
Approved by:    imp (UPDATING)
Requested by:   iedowse, lukem@netbsd.org
2002-12-16 22:24:26 +00:00
Maxim Sobolev
bffa911730 Add a new W' flag, that when used in conjunction with the Z' flag or the
`J' flag means that newsyslog should wait for previously started compression
jobs to complete before starting a new one for this entry.  When it is used
along with the `G' flag, in the case when several logfiles match the pattern
and should be compressed, the newsyslog will compress logs one by one,
ensuring that only one compression job is running at a time.

This prevents newsyslog(8) from overloading system by starting several
compression jobs on big files simultaneously.

Sponsored by:	Porta Software Ltd
MFC after:	2 weeks
2002-12-15 19:28:02 +00:00
Jun Kuriyama
b3e8a7eb8f Update ROOT_MIN_SIZE for i386 to 118MB (and other ROOT_*_SIZE). 2002-12-15 12:05:00 +00:00
Tom Rhodes
e776060494 Markup fixes. Document more correctly.
PR:		43678
Submitted by:	ru
2002-12-14 18:07:13 +00:00
Bill Fenner
3dc331b9f4 Add missing "of". 2002-12-14 00:20:43 +00:00
Brian Feldman
77ae814e61 Account for fts(3)'s FTS_SLNONE case for symbolic links which have
a nonexistant target, in addition to the FTS_SL previously, so e.g.
setfmac -h sebsd/system_u:object_r:malloc_conf_t /etc/malloc.conf
succeeds.

Approved by:	re
2002-12-12 20:32:45 +00:00
Ruslan Ermilov
8d5d039f80 Uniformly refer to a file system as "file system".
Approved by:	re
2002-12-12 17:26:04 +00:00
Tom Rhodes
26b848c3d7 MFS: Spelling: s/transfered/transferred/
PR:		46104
Pointed out by:	Rich Morin <rdm@cfcl.com>
Approved by:	re (rwatson)
2002-12-12 15:38:07 +00:00
Ruslan Ermilov
ee8e7f9d42 mdoc(7) police: markup overhaul.
Approved by:	re
2002-12-12 14:09:25 +00:00
Ruslan Ermilov
6700152679 mdoc(7) police: tiny markup nits.
Approved by:	re
2002-12-12 13:58:27 +00:00
Ruslan Ermilov
d0c6069b9d mdoc(7) police: markup fixes.
Approved by:	re
2002-12-12 13:26:32 +00:00
Poul-Henning Kamp
b6cf3e46b4 When things get bigger than 99GB our fields run over.
Use GB from 100GB and upwards.

Approved by:	re
2002-12-11 17:36:34 +00:00
Ruslan Ermilov
051bb54bd3 mdoc(7) police: Added the missing .Os call; it's not strictly
necessary nowadays, but is documented as "required", and may
become so again in the future.

Approved by:	re
2002-12-11 15:55:29 +00:00
Ruslan Ermilov
8306fe90a2 mdoc(7) police: fixed the document date (the current date was used, as
documented in mdoc(7)).

Approved by:	re
2002-12-11 15:37:55 +00:00
Maxim Sobolev
4ea03b3140 Backout unapproved WARNS level change occasionally slipped into previous
commit.

Big pointy hat to:	sobomax
2002-12-11 01:21:57 +00:00
Maxim Sobolev
f2562be03e - Allow comments to be placed at the end of configuration line.
Sponsored by:   Porta Software Ltd
Approved by:    re
MFC after:      2 weeks
2002-12-11 01:19:56 +00:00
Martin Blapp
b1c56f9c37 Check if rpcbind is already running and print a warning.
Fixes segfault if rpcbind is started up a second time.

Solution has been taken from mountd(8).

Reviewed by:	phk
Approved by:	re (rwatson)
2002-12-10 08:47:18 +00:00
Robert Watson
9bcce93590 Unhook LOMAC sysinstall twiddle for the time being: mac_lomac requires
the MAC Framework to be compiled into the kernel, and that's not
well-expressed in sysinstall.

Approved by:	re (bmah)
2002-12-09 19:06:43 +00:00
Tim J. Robbins
deca89c7c0 Correctly handle files with IFS characters (spaces) in their names when
cleaning up temporary files.

Submitted by:	Mike Makonnen <mtm@identd.net>
Approved by:	re
2002-12-09 02:22:50 +00:00
John Baldwin
f179ebe91e - Use some macros to define common text between the dialog boxes to set the
type of new slices and to change the type of existing slices.  This also
  has the advantage of moving a few #ifdef PC98's up to where the macros
  are defined instead of in the middle of the code.
- Change the behavior of the 'T' option in the slice editor so that the
  default value in the dialog box is the current type of the existing
  slice rather than defaulting to changing the slice to a FreeBSD slice as
  this is more intuitive.

Approved by:	re
2002-12-05 22:10:39 +00:00
Kris Kennaway
cc865772a5 Minimal change to cause pkg_version to examine the new INDEX-5 file
instead of INDEX.  This should be done better since this file name will
depend on the FreeBSD major version.
2002-12-04 17:22:48 +00:00
Yoshihiro Takahashi
443ec1fa06 Fixed a partition type for pc98 when create or change slices in the fdisk
editor.

Approved by:	re (jhb)
2002-12-04 15:07:05 +00:00
Ruslan Ermilov
3178b11905 mdoc(7) police: nit.
Approved by:	re
2002-12-04 14:46:33 +00:00
Ruslan Ermilov
fe28e568b3 mdoc(7) police: bump document date for the C rewrite, nit.
Approved by:	re
2002-12-04 14:45:48 +00:00
Ruslan Ermilov
829629fedb mdoc(7) police: overhaul.
Approved by:	re
2002-12-04 14:44:20 +00:00
Robert Watson
bf1e70b230 Reformulate how sysinstall handles file system options in the label
editor, in order to support specifying UFS2 as a newfs option.

(1) Support three different newfs types: NEWFS_UFS, NEWFS_MSDOS, and
    NEWFS_CUSTOM.  Don't mix up the arguments to them: you can't use
    soft updates on an msdos file system.

(2) Distinguish adding new arguments to the newfs command line from
    replacing it.  Permit the addition of new arguments by the user for
    NEWFS_UFS.  If we entirely replace the command line provided by
    sysinstall, call it NEWFS_CUSTOM.  'N' will now add additional
    arguments; 'Z' will opt to replace the newfs command line entirely,
    but will prompt the user with their current command line as a
    starting point.

(3) Construct the newfs command line dynamically based on the options
    provided by the user at label-time.  Right now, this means selecting
    UFS1 vs. UFS2, and the soft updates flag.  Drop in some variables
    to support ACLs and MAC Multilabel in the future also, but don't
    expose them now.

This provides sysinstall with the ability to do more "in band" editing
of the newfs command line, so we can provide more support for the user,
but doesn't sacrifice the ability to entirely specify the newfs command
line of the user is willing to give up on the cushiness factor.  It
also makes it easier for us to specify defaults in the future, and
define conditional behavior based on user configuration selections.
For now, we default to UFS1, and permit UFS2 to be used as the root
only on non-i386 systems.

While I was there, I dropped the default fragment and block sizes,
since newfs has much more sensible defaults now.

Reviewed by:	jhb, marcel
Approved by:	re
ia64 bits from:	marcel
2002-12-03 22:25:47 +00:00
John Baldwin
06bb7932ea Oops, forgot this cosmetic tweak to the perl menu item in my previous
commit.

Approved by:	re (this is what they actually reviewed)
2002-12-03 21:02:26 +00:00
John Baldwin
6478fb73c5 - Convert the installation of the X package to using installPackage()
rather than installX11package().
- Add a perl psuedo-dist that installs the perl package.  The perl
  distribution is selected by default when a User distribution set is
  selected.  It is not selected when a Minimal distribution set is
  selected.  The perl distribution may be toggled manually in the
  custom menu just as other distributions.

Approved by:	re
2002-12-03 19:42:30 +00:00
John Baldwin
544cd27071 Rename installX11package() to installPackage() and tweak it so that it
can be used to install any arbitrary package.

Approved by:	re
2002-12-03 19:36:12 +00:00
John Baldwin
6066c0d2ee Fix a bug in the fdisk editor that partially masked the chunk deletion
bug fixed yesterday.  New slices created in the fdisk editor and slices
whose sub-type is changed are of type 'mbr' if their sub-type is not a
magic type, not type 'unknown'.

Approved by:	re
2002-12-03 16:09:55 +00:00
Dag-Erling Smørgrav
89f35c14bd The default CD drive is /dev/cd0, not /dev/cd0c.
Reviewed by:	jhb
Approved by:	re (rwatson)
2002-12-03 15:41:30 +00:00
Robert Watson
214adc07e1 Mdoc markup and language fixes.
Submitted by:	ru
Approved by:	re (jhb)
Obtained from:	TrustedBSD Project
Sponsored by:	DARPA, Network Associates Laboratories
2002-12-03 15:19:15 +00:00
Scott Long
7cdfce092a Replace the perl versions of adduser and rmuser with shell script versions.
Submitted by:	Mike Makonnen <mtm@identd.net>
Approved by:	re
2002-12-03 05:41:09 +00:00
Peter Pentchev
c525f9c9a4 Replace the remaining strcpy() instances with strlcpy(), fixing a segfault
when parsing a malformed command-line parameter.
Rearrange a risky usage of sprintf() in a loop.

Reported by:	phrail@division7.us via the vuln-dev mailing list
Approved by:	re (rwatson)
2002-12-02 20:29:08 +00:00
Marcel Moolenaar
7e8dbd8b20 ia64 specific.
o  Mount the EFI file system as msdosfs and not ufs as it's a FAT
   file system. Introduce Mount_msdos() for this to go side-by-side
   with Mount().
o  Also, since mounting is performed as a command (which means it's
   queued, sorted, lost, found and executed), we cannot create a
   directory on the file system by calling mkdir. We must make sure
   the mkdir happens after the mount. Introduce Mkdir_command() to
   allow mkdir operations to be queued, sorted, lost, found and
   executed as well.

Approved by: re (jhb, rwatson)
2002-12-02 20:15:16 +00:00
Robert Watson
db4a5cc27c Cast argument to (long), missed in prior pass.
Approved by:	re
Submitted by:	marcel
2002-12-02 13:26:16 +00:00
Robert Watson
c19f6f99f1 Fix 32-bit/64-bit bug in format string.
Approved by:	re
Submitted by:	marcel
Pointy hat to:	green
2002-12-02 13:25:01 +00:00
Robert Watson
a8896b02e0 Add support for -R for file relabel operations.
Add 'setfsmac' link, which permits labels to be provided in a label
specification file, making it easier to provide initial file system
labeling specifications.  This is used by the new mac_lomac to
provide initial system labeling and policy, and by sebsd, the port
of SELinux FLASK/TE to FreeBSD.

Approved by:	re (jhb)
Obtained from:	TrustedBSD Project
Sponsored by:	DARPA, Network Associates Laboratories
2002-12-02 03:22:57 +00:00
Robert Watson
6a2c7d1a77 In general, prefer WARNS to CFLAGS+=-Wall. Tend towards a more
BSD-esque Makefile style.

Submitted by:	obrien
Approved by:	re
2002-12-01 23:10:28 +00:00
Marcel Moolenaar
6bd2f17909 ia64: make link /boot->efi/boot relative.
Approved by: re (murray)
2002-11-30 19:54:19 +00:00
Ruslan Ermilov
92b1f2f7a3 mdoc(7) police: sweep. 2002-11-29 16:42:23 +00:00
John Baldwin
52c113d540 - Only declare the MBR menu for i386 that is not PC98.
- Only declare mouse menus if WITH_MICE.
- Only declare syscons menus if WITH_SYSCONS.
- Only declare fdisk editor functions if WITH_SLICES.

Approved by:	re
2002-11-27 19:58:57 +00:00
John Baldwin
b3d757b73f Only include the fdisk editor and associated code if WITH_SLICES is
defined.

Tested on:	i386, alpha, sparc64
Approved by:	re
2002-11-27 19:57:39 +00:00
John Baldwin
42df7c3515 Only define the MBR or IPL menu on i386 (PC98 uses IPL, other i386 use
MBR).

Approved by:	re
2002-11-27 19:54:46 +00:00
John Baldwin
655f43e75c - Only define syscons menus and syscons menu items in other menus if
WITH_SYSCONS is defined.
- Only define mouse menus and mouse menu items if WITH_MICE is defined.
- Use WITH_SLICES instead of explicit lists of architectures to control
  the layout of menus dependent on if slices are used on this arch or not.
- Only include the linux startup option if WITH_LINUX is defined.
- Only include the SVR4 startup option on i386.  It doesn't work on sparc64,
  and it is debatable that it even works on i386.
- Change the OSF1 startup option to execute configOSF1() instead of just
  setting the variable so that /compat/osf1 gets created.

Tested on:	i386, alpha, sparc64
Approved by:	re
2002-11-27 19:51:43 +00:00
John Baldwin
7382b0bfa5 If the user choose to Undo everything in the label editor, only run the
fdisk editor if WITH_SLICES.  Before this on arch's that didn't support
slices such as alpha and sparc64 you would drop into the fdisk editor after
doing an Undo in the label editor.

Approved by:	re
2002-11-27 19:46:18 +00:00
John Baldwin
25fd437b15 - Use WITH_SLICES to conditionalize the fdisk editor during install instead
of an explicit list of architecture defines.
- Tweak the message prior to the label editor in the !WITH_SLICES case to
  make it slightly less awkward since this is the first dialog we see after
  starting an install.
- Only offer to customize syscons settings if WITH_SYSCONS.
- Offer to enable Linux compat if WITH_LINUX.  Before we only did this for
  i386.
- On the alpha, offer to enable OSF/1 compat after asking about Linux
  compat.
- Only offer to configure moused(8) if WITH_MICE is defined.

Tested on:	i386, alpha, sparc64
Approved by:	re
2002-11-27 19:45:10 +00:00
John Baldwin
404846adf0 Only include the diskPartitionEditor script command if WITH_SLICES is
defined.

Approved by:	re
2002-11-27 19:41:06 +00:00
John Baldwin
cab2a4d2b9 Only try to setup moused(8) before setting up the X server if WITH_MICE is
defined.

Approved by:	re
2002-11-27 19:39:26 +00:00
John Baldwin
8e5bc72116 - Add a configOSF1() function (#ifdef __alpha__) that creates /compat/osf1
in addition to setting osf1_enable to YES.
- Only define configLinux() #ifdef WITH_LINUX.

Approved by:	re
2002-11-27 19:37:00 +00:00
John Baldwin
75cd8b4038 Add some helper macros to make #ifdef's in sysinstall easier to read
and more maintainable.
- WITH_SYSCONS: defined on all arch's that support syscons (currently i386,
  alpha, and ia64)
- WITH_MICE: defined on all arch's that support moused(8) (currently i386,
  alpha, and ia64)
- WITH_SLICES: defined on all arch's that use disk slices (currently i386
  and ia64)
- WITH_LINUX: defined on all arch's that support Linux binary compat
  (currently i386 and alpha)

Approved by:	re
2002-11-27 19:30:50 +00:00
John Baldwin
25f775064e Only display the APM option in the Startup menu on i386.
Approved by:	re
2002-11-27 19:25:46 +00:00
John Baldwin
748d6a2e75 Use #elif defined(__alpha__) instead of #elif __alpha__.
Approved by:	re
2002-11-27 19:22:25 +00:00
John Baldwin
23ce8bb61b Enable the compat4x distribution on Alpha as well as i386.
Approved by:	re
2002-11-27 19:16:39 +00:00
John Baldwin
8486a530a2 - Assume __FreeBSD__ is greater than 3.
- Only include compat4x distribution if this is either i386 or alpha.
2002-11-27 19:13:53 +00:00
John Baldwin
6fe0921bc4 Expand X_AS_PKG so that we don't declare distribution bitmasks or menus
for the X distributions if X_AS_PKG is defined.

Tested on:	i386
Approved by:	re
2002-11-27 18:36:30 +00:00
John Baldwin
f4b3927cfe Don't use fake 'c' or 'a' BSD partitions for CD-ROM devices. This fixes
sysinstall to create /cdrom entries in /etc/fstab that just use the
raw CD-ROM device /dev/cd0, etc.

Approved by:	re
2002-11-27 17:56:27 +00:00
Ruslan Ermilov
cd96609654 Removed the vestiges of modems(5).
Approved by:	re
2002-11-27 16:45:10 +00:00
Ruslan Ermilov
f7b5becb5c mdoc(7) police:
Added the -h option to the synopsis, documented the -a option,
sorted options descriptions according to style(9).

Approved by:	re
2002-11-27 15:33:47 +00:00
Ruslan Ermilov
c041c1e0d9 mdoc(7) police: markup fixes.
Approved by:	re
2002-11-27 15:31:08 +00:00
Ruslan Ermilov
34eafd490b mdoc(7) police: kill whitespace at EOL.
Approved by:	re
2002-11-27 15:25:07 +00:00
Ruslan Ermilov
fe349af54d mdoc(7) police:
Removed whitespace at EOL.
Removed hard sentence breaks.
Removed empty lines.
Spell FreeBSD correctly.
Sort xrefs.

Approved by:	re
2002-11-27 15:24:11 +00:00
Giorgos Keramidas
cebb0d29f7 configXEnvironment doesn't work in sysinstall now.
Change the manpage to reflect that it's now called configXSetup.
Also document configXDesktop.

Submitted by:	pirat <pirat@access.inet.co.th>
2002-11-26 23:23:42 +00:00
Bruce A. Mah
0108d59df2 Add GNOME 2 to the sysinstall desktop configuration menu, remove
the two GNOME 1-based alternatives.

While here, note that a majority of the items in this menu are not
sentences, and remove trailing dots to make the remainder consistent.

Reviewed by:	marcus
Approved by:	re (bmah)
2002-11-26 22:14:34 +00:00
Julian Elischer
878ed22696 The second try a committing the bluetooth code
Has been seen to work on several cards and communicating with
several mobile phones to use them as modems etc.

We are still talking with 3com to try get them to allow us to include
the firmware for their pccard in the driver but the driver is here..
In the mean time
it can be downloaded from the 3com website and loaded using the utility
bt3cfw(8) (supplied) (instructions in the man page)

Not yet linked to the build

Submitted by:	Maksim Yevmenkin <myevmenk@exodus.net>
Approved by:	re
2002-11-20 23:01:59 +00:00
Akinori MUSHA
5d7c75f0ad Add several new real categories and virtual categories.
[Those marked with an asterisk (*) are virtual categories]

- accessibility* : Ports to help disabled users

  PR:		ports/39103
  Requested by:	trevor

- finance : Monetary, financial and related applications

  PR:		ports/39102
  Requested by:	trevor

- haskell* : Software related to the Haskell language

  PR:		ports/41959
  Requested by:	obraun

- hungarian : Hungarian language support

  PR:		ports/37576
  Requested by:	Janos Mohacsi <janos.mohacsi@bsd.hu>

- multimedia : Multimedia software

  Requested by:	many

- parallel* : pplications dealing with parallelism in computing

  PR:		ports/39094
  Requested by:	trevor

- portuguese : Portuguese language support

  PR:		ports/35991
  Requested by:	trevor
2002-11-18 09:33:56 +00:00
Marcel Moolenaar
2017c38b33 Create a link /boot -> /<efi>/boot, where <efi> is the mountpoint
of the EFI file system. This makes the EFI partition non-optional.
I don't think that the links are actually correct, given that all
the mount points are under /mnt when sysinstall is run as init.
(ie a non-upgrade). Thus: I think I need to go in once more, but
at least this doesn't get lost...
2002-11-18 08:37:46 +00:00
Yoshihiro Takahashi
ecc935018a Enable selecting the type of partition menu on pc98. 2002-11-16 16:36:01 +00:00
Ollivier Robert
ef7b1083bb These two patches makes it easier to compile custom versions of
NTP on FreeBSD:

The first one allows one to avoid installing the html files.

The second one allows one to override the CLOCKDEFS on the
make command line.

Submitted by:	phk
2002-11-16 08:06:43 +00:00
Peter Wemm
6ceeb6902a utmp.ut_time and lastlog.ll_time are explicitly int32_t rather than
time_t.  Deal with the possibility that time_t != int32_t.  This boils
down to this sort of thing:
 -   time(&ut.ut_time);
 +   ut.ut_time = time(NULL);
and similar for ctime(3) etc.  I've kept it minimal for the stuff
that may need to be portable (or 3rd party code), but used Matt's time32
stuff for cases where that isn't as much of a concern.

Approved by: re (jhb)
2002-11-15 22:42:00 +00:00
Yoshihiro Takahashi
552d12e2ce Fix to build for pc98. 2002-11-15 13:18:41 +00:00
Bruce A. Mah
2930533d3f Assume that packages passed on stdin are in bzip2 format, not gzip.
(sysinstall depends on this feature for package addition.)

Comment on hard-coded bzip2 usage in the spirit of rev. 1.58.
2002-11-14 21:01:17 +00:00
Maxim Sobolev
2e01a2be1e Add a new newsyslog.conf flag - 'G', which if set tells newsyslog(8) that
the specified filename of the log to be rotated is in fact shell glob
pattern. In this case, all files matching this pattern will be rotated
using the same options. Useful in the case when there is no pre-defined
name for the logfiles (e.g. xtradius, samba etc).

Sponsored by:	PortaOne Software Ltd
MFC after:	2 weeks
2002-11-14 08:43:07 +00:00
Marcel Moolenaar
658b45adb4 Add conditional code specific to ia64 to allow newfs(8)-ing FAT
partitions marked as being of type efi. This change adds code to
1. actually run the newfs command at mount time (install.c),
2. display the newfs state on screen (label.c)
3. allow toggling of the newfs state (label.c)

Even though newfs(8)-ing FAT partitions can be of use on i386
machines in general, it has been opted to minimize impact for
now.
2002-11-14 01:46:20 +00:00
Ruslan Ermilov
26ffc9613f mtree(8) wasn't a bootstrap tool since 2000/07/23 (Makefile.inc1,v 1.161). 2002-11-13 12:03:27 +00:00
Ruslan Ermilov
4192cfffe2 Bootstrapping aid for 4.0-RELEASE. 2002-11-13 11:50:40 +00:00
Marcel Moolenaar
df81b3e662 Also test for type efi everywhere we currently test for type fat.
With this change there's no a priori difference between EFI and
FAT partitions. With this change and the corresponding change to
libdisk, we can create EFI partitions, just like regular FAT
partitions.
2002-11-13 05:39:59 +00:00
John Baldwin
8af5a8f998 Use a clean flags variable when creating chunks from scripts instead of
leaking flags from earlier chunks into later ones.

PR:		bin/40655
Submitted by:	Thomas Zenker <thz@Lennartz-electronic.de>
2002-11-12 21:18:54 +00:00
John Baldwin
e324564167 Remove a line that set the status to success. We already do that at the
beginning, so the best this could achieve would be to mask an earlier
failure.  Break instead of continue for another failure case.
2002-11-12 21:12:42 +00:00
John Baldwin
f193ff8342 Try to cleanup the non-interactive disk labeling code a bit. Rework
the loop that runs through the environment variables to be a bit more
intuitive.  Also, change some 'continue's in failure cases to 'break's
instead.  If we are going to fail, we should just do it.

PR:		bin/40654
Submitted by:	Thomas Zenker <thz@Lennartz-electronic.de> (partially)
2002-11-12 21:09:58 +00:00
John Baldwin
1a91c66103 Do a bit of cleanup. new_part() basically ignored the passed in size
argument as of revision 1.52 (July 12, 1996, about a month after I
graduated from high school) when 'newfs -u' support was axed, so remove it.
This also allows us to remove a hack in the create partition case where we
created the partition twice since we didn't have the size the first time.
2002-11-12 20:48:49 +00:00
John Baldwin
ff02a1197f Doh, fix a bug in previous commit. The default is to newfs for new
partitions, not to !newfs.
2002-11-12 20:40:15 +00:00
John Baldwin
a872d3c73b When setting the mountpoint name, remember any previous setting of the
newfs flag for this partition.

PR:		bin/31837
Reported by:	Oliver Breuninger <ob@www.partner.de>
2002-11-12 20:26:52 +00:00
Thomas Moestl
ba964e50b0 The FIONREAD sysctl operates on an int *, not a size_t *.
Reviewed by:	dd
2002-11-11 10:56:57 +00:00
Marcel Moolenaar
0ec091888c A support for creating EFI partitions. This is required on ia64,
but not made conditional upon it.
2002-11-10 20:56:53 +00:00
Tony Finch
78c2665318 Clarify the unique groups scheme by mentioning that the 002 umask
is instead of the usual 022 umask, and explain that what the scheme
still prevents is unwanted changes, not prying eyes.

While I'm here, mess with the phrasing and line-breaks a bit.
2002-11-08 22:04:31 +00:00
Thomas Quinot
6888370488 Factor out the code that determines whether a message must be skipped
as a consequence of a host or program name specification into a common
function, skip_pmessage.

Reviewed by:	roberto
2002-11-07 19:53:29 +00:00
David E. O'Brien
242bb95312 Clean up a little. Don't need to include fetch.h any more, and I can't
find any consumers of HOSTNAME_MAX.
2002-11-06 09:03:53 +00:00
David E. O'Brien
d920cd78f4 Break fileGetURL() out into its own file so that pkg_install/lib consumers
pkg_{create,delete} don't need to needlessly link with libfetch.
2002-11-06 08:57:03 +00:00
John Baldwin
364bf7afb2 Mount devfs with nmount(2) instead of mount(2). This error was masked
because errors from mount(2) were explicitly ignored.  I didn't fix that
bug.
2002-11-05 22:56:44 +00:00
Brooks Davis
51480d2fff Test for the existance of kernel ppp support by seeing if the kernel has
the module compiled in or loaded instead of bogusly checking for ppp0.
Also if and only if the caller is actually root and the kernel does not
have ppp support, try to load the ppp module before giving up.
2002-11-05 05:58:31 +00:00
David Malone
1da3a922f9 The symbol for Hertz is Hz. 2002-11-04 22:44:42 +00:00
Ollivier Robert
e265e481d7 Update ntpd to 4.1.1b. There are two new drivers and the usual bunch of
fixes. See contrib/ntp/ChangeLog for details.

MFC after:	1 month
Prodded by:	jhay
Tested on:	sparc64 (panther), alpha (beast) and i386.
2002-11-04 19:44:26 +00:00
John Baldwin
70accddf26 Move the modules in the mfsroot to /modules instead of /stand/modules so
that they aren't copied over into /stand of new installations.

Submitted by:	matusita
Tested on:	i386
2002-11-04 15:44:57 +00:00
Peter Pentchev
d5e4b2427a Update the list of FTP mirrors to reflect the current situation.
Reviewed by:    -doc, -hubs
Approved by:    silence on -doc, -hubs
2002-11-04 15:06:09 +00:00
Yoshihiro Takahashi
676777ed92 - Added the MenuIPLType menu for selecting pc98 boot IPL.
- Disabled 'Syscons, Font', 'Syscons, Screenmap' and 'Syscons, Ttys' menus
  on pc98.
- Fixed the MenuMouseType and MenuMousePort menus for pc98.
- Fixed some comments for pc98.
2002-11-03 10:06:22 +00:00
Thomas Moestl
b95b5e06d0 The hw.physmem sysctl has an unsigned long value now, fix the retrieval
to match that.
2002-11-02 17:19:18 +00:00
Jake Burkholder
a959270a4b Build sysinstall on sparc64. 2002-11-01 15:36:06 +00:00
Jun Kuriyama
b46e66a5a5 debugMsg() should end with "\n". 2002-11-01 02:05:05 +00:00
Poul-Henning Kamp
6c47398ce1 With the recent libdisk changes, alpha doesn't need (as much) special magic. 2002-10-30 20:55:25 +00:00
Sheldon Hearn
a4df5101a3 Use "deprecated" instead of "depreciated" where appropriate. 2002-10-30 07:49:11 +00:00
Ollivier Robert
a5b1043f74 Update ntpd to 4.1.1a. This contains many bug fixes made on the STABLE
branch and a few new drivers. See contrib/ntp/ChangeLog for details.

Hide kernel header sys/lock.h from ntp [1]

PR:		bin/33914
Submitted by:	thomas, bde[1]
MFC after:	1 month
2002-10-29 20:20:36 +00:00
Dag-Erling Smørgrav
8758ef9b41 Whitespace cleanup 2002-10-29 12:14:31 +00:00
Poul-Henning Kamp
39da086a6b Sparc64 will not need the same hacks as alpha did. Hopefully alpha wont
need them either.
2002-10-29 07:38:05 +00:00
Poul-Henning Kamp
1709a4fd6a Fix the wizardmodes 'write' command to not explode: Don't reference
the name in the disk tree we just deleted when we reopen.
2002-10-28 22:40:49 +00:00
Nate Lawson
c115dd45a4 Take care of the case for the default speed (no -s option) also. 2002-10-27 19:44:57 +00:00
Garrett Wollman
cd9a4d5d7a Add used #include <limits.h>. 2002-10-27 17:46:53 +00:00
Garrett Wollman
688dfe4533 Do not include <sys/syslimits.h> directly; it is not intended for general
consumption.
2002-10-27 17:44:33 +00:00
Nate Lawson
cfe6d7e913 Move speed units conversion to right before it is used. This catches the
case when the -s option is not used.
2002-10-27 17:43:22 +00:00
Bruce A. Mah
2466516a6c Allow users to read the Early Adopter's Guide in sysinstall. 2002-10-27 01:49:45 +00:00
Peter Wemm
52fe5948a0 Un-remove sysinstall for ia64. 2002-10-27 00:22:05 +00:00
Nate Lawson
dfb87d2239 Convert speed into KB/s. This was missed by the previous commit to this file.
MFC after:	3 weeks
2002-10-26 23:32:35 +00:00
Poul-Henning Kamp
c295abba4f Explicitly list architectures supporting sysinstall 2002-10-25 17:04:49 +00:00
Bruce A. Mah
4288a55ca2 MFS: Update sysinstall text for the number and size or ports in the ports
collection.

	src/release/sysinstall/dist.c	1.175.2.29 -> 1.175.2.30
2002-10-25 14:52:27 +00:00
Poul-Henning Kamp
66a550c4ac Goodbye and good riddance! 2002-10-25 11:48:56 +00:00
Poul-Henning Kamp
9c95e0d9e9 Confirmed kill: "Bogon #1" is dead, killed by DEVFS. 2002-10-25 11:47:58 +00:00
Poul-Henning Kamp
09c3a0c7c5 Comment out more MAKEDEV bogosity ("BOGON #1" as Jordan put it :-) 2002-10-25 09:54:27 +00:00
Andrew Gallatin
f6a807d6fb another int * to size_t * change for getbsize() to make it compile
on LP64 hosts
2002-10-24 17:43:56 +00:00
Andrew Gallatin
fda3659531 getbsize() now takes a pointer to a size_t as its first arg. A pointer
to an int no longer works on an LP64 platform...
2002-10-24 17:27:32 +00:00
Mark Murray
84ee4a7c72 Adjust argument passed to getbsize(). 2002-10-23 18:55:20 +00:00
Poul-Henning Kamp
ac715696fc Fix cut&paste mistake. 2002-10-23 14:37:43 +00:00
Robert Watson
5b38a427c0 Introduce simple command line tools to manage MAC labels on processes and
files.  Basically wrappers for mac_{get,set}_{file,link,pid,proc}(3).
Man pages to be updated shortly.

Approved by:	re
Obtained from:	TrustedBSD Project
Sponsored by:	DARPA, Network Associates Laboratories
2002-10-23 03:15:24 +00:00
Poul-Henning Kamp
e20037ab6b Remove more private MAKEDEV kludges. 2002-10-22 15:25:19 +00:00
Poul-Henning Kamp
0dd72760f0 Give a real error on failure to mount DEVFS. 2002-10-22 15:07:17 +00:00
Poul-Henning Kamp
0398919dc7 Don't use NO_MAKEDEV* option, its the default now. 2002-10-22 15:04:32 +00:00
Poul-Henning Kamp
c0dc344665 Fix example, we do not need NO_MAKEDEV_RUN any more.
XXX: this example should be updated with a good example of devfs(8) rules.
2002-10-22 15:03:51 +00:00