Commit Graph

12755 Commits

Author SHA1 Message Date
Ed Schouten
b30bfd4339 Add a utility, utxrm(8).
Most of the ports I broke when I imported utmpx, were simple management
utilities for the utmp database, allowing you to add/remove entries
manually.

Add a small tool called utxrm(8), which allows you to remove an entry
from the utmpx database by hand. This is useful when a login daemon
crashes or fails to remove the entry during shutdown.
2011-02-19 11:44:04 +00:00
Rebecca Cran
cd9c24f7c0 Allow users to create ufs1 filesystems via the noninteractive install.cfg
system.

PR:		bin/113979
MFC after:	3 days
2011-02-19 09:33:53 +00:00
Rebecca Cran
be1b07bb25 Remove the quotas option from the Startup Services menu.
GENERIC has no support for quotas so this option has no effect.

PR:		bin/123237
Submitted by:	Lawrence Mayer <lawmay3 at i12.com>
MFC after:	3 days
2011-02-19 09:24:24 +00:00
Rebecca Cran
a44a43f098 In the distribution list, 'A' is listed as the key to press to select both
'All' and 'Minimal'. Update the keys for Minimal and Custom to avoid the
conflict.

PR:	bin/153809
Submitted by:	Janne Snabb <snabb at epipe.com>
MFC after:	3 days
2011-02-19 09:08:13 +00:00
Dimitry Andric
ce8fb93178 Merge binutils 2.17.50 to head. This brings a number of improvements to
x86 CPU support, better support for powerpc64, some new directives, and
many other things.  Bump __FreeBSD_version, and add a note to UPDATING.

Thanks to the many people that have helped to test this.

Obtained from:	projects/binutils-2.17
2011-02-18 20:54:12 +00:00
Josh Paetzel
e944e90ec6 Remove US as the default layout in backend, let front-ends decide that
Submitted by:	kmoore
Approved by:	kib (mentor, implicit)
2011-02-18 15:52:57 +00:00
Josh Paetzel
0c0054dfe6 Sort available keyboard layouts to a more sane default.
PR:	bin/154687
Submitted by:	kmoore
Approved by:	kib (mentor, implicit)
2011-02-18 15:13:07 +00:00
Josh Paetzel
441ded2d91 Improve pc-sysinstall's localization options to include support for GDM & KDM
desktop login managers.

PR:	bin/154686
Submitted by:	kmoore
Approved by:	kib (mentor, implicit)
2011-02-18 15:06:35 +00:00
Josh Paetzel
b9724eb027 Add support to pc-sysinstall's create-part feature, to create non MBR type partitions,
such as GPT and others.

PR:	bin/154684
Submitted by:	kmoore
Approved by:	kib (mentor, implicit)
2011-02-18 15:00:25 +00:00
Nathan Whitehorn
2118f3873f Import bsdinstall. This is meant to be (eventually in conjunction with
pc-sysinstall) a replacement for sysinstall in the 9.0 release and beyond.
Currently supported platforms are sparc64, pc98, i386, amd64, powerpc, and
powerpc64. Integration into the build system will occur in the coming
weeks.

Merging with pc-sysinstall will use this code as a frontend, while
temporarily retaining the interactive partition editor here. This work
will be done in parallel with improvements on this code and release
integration.

Thanks to all who have provided testing and comments!
2011-02-18 14:54:34 +00:00
Navdeep Parhar
54e4ee7163 cxgbe(4) - NIC driver for Chelsio T4 (Terminator 4) based 10Gb/1Gb adapters.
MFC after:	3 weeks
2011-02-18 08:00:26 +00:00
John Baldwin
873ec24ac8 Save a copy of errno before invoking syslog() if accept() or select() fail.
syslog() can trash the errno value causing nfsd to exit for non-fatal
errors like ECONNABORTED from accept().

MFC after:	1 week
2011-02-17 17:03:56 +00:00
Josh Paetzel
bed7dbd1d3 Add "Extract Only" functionality to pc-sysinstall. This allows disk setup to
be done manually, pc-sysinstall is pointed to a mount-point for installation.

PR:	bin/154685
Submitted by:	kmoore
Approved by:	kib (mentor)
2011-02-17 16:33:41 +00:00
Dimitry Andric
a4227c6a5b Only use -z noexecstack for these explicit arches: i386, amd64, powerpc
and powerpc64.  Other arches currently do not support this feature.

Reminded by:	kib
2011-02-16 21:04:47 +00:00
Dimitry Andric
19e3d7d70b Fix the last binary in the base system that still has an executable
stack, /usr/sbin/uathload.

Since this program links in a .o file containing a firmware blob, and
there is no clean way to add a .note.GNU-stack section to this .o file,
we simply use the -z noexecstack option to ld here.
2011-02-16 20:46:57 +00:00
Jung-uk Kim
0b94ba42b0 Merge ACPICA 20110211. 2011-02-12 01:03:15 +00:00
Warner Losh
be1d53ac56 Generate MACHINE= and MACHINE_ARCH= lines based on the machine
directive.  Once this is MFC'd, we can move these out of the template
files where they are (incosnsitently) defined.

MFC after:	1 week
2011-02-11 06:35:53 +00:00
Xin LI
f5d62d03ad Don't consider ioctl returning error as a fatal error and move on to next
disk.  When multiple devices are specified, a non-supporting ioctl will
cause diskinfo(8) to stop at the point which does not seem to be necessary.

Ok'ed by:	phk
MFC after:	1 month
2011-02-08 11:32:22 +00:00
Brian Somers
f2f5156f21 Add "iface name" and "iface description" commands.
PR:		151400
Submitted by:	Aragon Gouveia - aragon at phat dot za dot net with minor fixes
MFC after:	3 weeks
2011-02-07 11:18:18 +00:00
Jung-uk Kim
110df1daa0 Do not let pw.conf(5) or -M option affect creation of basehome, e.g., /home.
When the basehome does not exist, it creates all intermediate directories as
required, which is logically equivalent to mkdir(1) with -m and -p options.
However, it modifies all intermediate directories, not just the final home
directory unlike mkdir.  This problem was introduced in two revisions, i.e.,
r1.59 (SVN r167919) and r1.60 (SVN r168044).

MFC after:	1 month
2011-02-04 19:49:02 +00:00
Martin Matuska
c61aa7e8b3 Use correct alphabetical order for xz(1) in SEE ALSO section
of newsyslog manpages.

Reported by:	maxim
MFC after:	3 weeks
2011-01-31 11:30:26 +00:00
Martin Matuska
d90914ca73 Add xz(1) support to newsyslog.
Rewrite and simplify logfile compression code.

Approved by:	gad
MFC after:	3 weeks
2011-01-31 10:57:54 +00:00
Hans Petter Selasky
0ddfc9486b - Remove double semicolon.
- Remove reference to sprintf. Use printf directly. This part of
the code should be optimised further to avoid many small printouts.
Setting a sensible line buffer length could help aswell when printing
out megabytes of data per second.

Approved by:	thompsa (mentor)
2011-01-28 08:00:57 +00:00
Jayachandran C.
7b87c35eba Fix n32 compile.
These changes are needed to fix n32 compile after the recent change of
mips n32 MACHINE_ARCH to mipsn32eb/mipsn32el.

Reviewed by:	imp, bz (earlier version)
2011-01-27 14:16:12 +00:00
Kirk McKusick
7649cb0043 The dump, fsck_ffs, fsdb, fsirand, newfs, makefs, and quot utilities
include sys/time.h instead of time.h. This include is incorrect as
per the manpages for the APIs and the POSIX definitions. This commit
replaces sys/time.h where necessary with time.h.

The commit also includes some minor style(9) header fixup in newfs.

This commit is part of a larger effort by Garrett Cooper started in
//depot/user/gcooper/posix-conformance-work/ -- to make FreeBSD more
POSIX compliant.

Submitted by:  Garrett Cooper   yanegomi at gmail dot com
2011-01-24 06:17:05 +00:00
Gordon Tetlow
9c990fb2a4 Honor $PAGER instead of always calling more.
Approved by:	colin@
MFC after:	1 week
2011-01-24 04:32:59 +00:00
David Malone
98d1f19ba2 Here v->iov_len has been assigned the return value from snprintf.
Checking if it is > 0 doesn't make sense, because snprintf returns
how much space is needed if the buffer is too small. Instead, check
if the return value was greater than the buffer size, and truncate
the message if it was too long.

It isn't clear if snprintf can return a negative value in the case
of an error - I don't believe it can. If it can, then testing
v->iov_len won't help 'cos it is a size_t, not an ssize_t.

Also, as clang points out, we must always increment v here, because
later code depends on the message being in iov[5].
2011-01-19 17:17:37 +00:00
Rebecca Cran
c7382949c2 Add missing comma to unbreak the PC98 build. 2011-01-17 00:15:01 +00:00
Rebecca Cran
04321caab6 Reduce the amount of text users need to read on each screen. Also try and
make it more relevant to modern systems: for example users will be
familiar with the MBR but possibly less so with MS-DOS.

After installation has finished don't return to the main menu but exit.
2011-01-17 00:08:28 +00:00
Jung-uk Kim
d244b2279c Merge ACPICA 20110112. Switch to BSD/GPLv2 dual license[1].
Discussed with:	core [1]
2011-01-13 17:32:32 +00:00
Nathan Whitehorn
f6d59add8b Update spkrtest(8) to use new dialog auto-sizing syntax. 2011-01-13 17:30:18 +00:00
Nathan Whitehorn
c5199e9706 Use auto-sizing syntax appropriate for the new dialog(1). This should
probably be modified to use libdialog.
2011-01-13 16:42:16 +00:00
Weongyo Jeong
58ea87019e Documents OUTPUT formats. While I'm here cleans up styles and words.
Reviewed by:	brueffer@
2011-01-13 16:37:12 +00:00
Nathan Whitehorn
4c8945a06b Update dialog to version 20100428. This changes the license under which
dialog is distributed from GPLv2 to LGPLv2 and introduces a number of new
features and a new and better libdialog API. The existing libdialog will
be kept temporarily as libodialog for compatibility purposes until sade,
sysinstall and tzsetup have been either updated or replaced.

__FreeBSD_version is now 900030.

Discussed on:	-current
Approved by:	core
Obtained from:	http://invisible-island.net/dialog
2011-01-12 14:55:02 +00:00
Josh Paetzel
2afb066d0a Add support for using encrypted password strings when setting
the root / user passwords

PR:	bin/152868
Submitted by:	kmoore
Approved by:	imp
2011-01-10 19:57:18 +00:00
Josh Paetzel
fc78178fcb Patch pc-sysinstall to deal with 4k sector size drives
PR:	bin/151967
Submitted by:	kmoore
Approved by:	imp
2011-01-10 19:11:25 +00:00
Josh Paetzel
e0b71bf2a4 Take passwords out of debug log.
Fix path problem that was preventing disk info from being in the log.

PR:	bin/151968
Submitted by:	Kris Moore <kmoore@FreeBSD.org>
Approved by:	imp
2011-01-08 23:03:24 +00:00
Josh Paetzel
2ebed539b0 Push some PC-BSD specific fixes upstream.
PR:	bin/152894
Submitted by:	Kris Moore <kmoore@FreeBSD.org>
Approved by:	imp
2011-01-08 22:42:56 +00:00
Josh Paetzel
5eea74f248 More elegant way to detect MBR vs. GPT
Submitted by:	nwhitehorn
Approved by:	imp
2011-01-08 20:25:00 +00:00
Xin LI
97f8d65503 Use ether_ntoa instead of home-grown version.
Noticed by:	Boris Kochergin <spawk acm poly edu>
2011-01-08 01:57:23 +00:00
Warner Losh
cd2ae2532f Retire TARGET_ABI.
Implement MACHINE_ARCH=mips64e[lb] to build N64 images.  This replaces
MACHINE_ARCH=mipse[lb] TARGET_ABI=n64.

MACHINE_ARCH=mipsn32e[lb] has been added, but currently requires
WITHOUT_CDDL due to atomic issues in libzfs.  I've not investigated
this much, but implemented this to preserve as much of the TARGET_ABI
functionality that I could.  Since its presence doesn't affect the
working cases, I've kept it in for now.

Added mips64e[lb] to make universe, so more kernels build.

And I think this (finally) closes the curtain on the tbemd tree.
2011-01-07 20:26:33 +00:00
Stanislav Sedov
3b232eb663 - Save some space relying on the fact that all ioctl commands
prefixes are the same.

Suggested by:	"Carlos A. M. dos Santos" <unixmania@gmail.com>
2011-01-07 18:52:08 +00:00
Stanislav Sedov
f264409aea - Show textual representation of ioctl command in warning message
if ioctl(4) is failed besides the command number.

Suggested by:	delphij
MFC after:	2 weeks
2011-01-06 07:13:23 +00:00
Konstantin Belousov
a63f870b4c Use errx() instead of err() in parseint. There is usually no interesting
information in errno.

Noted by:	Garrett Cooper <yanegomi gmail com>
MFC after:	1 week
2011-01-04 17:27:17 +00:00
Konstantin Belousov
641c6c5c1a Make the parsing of the integer arguments for rtprio(1)/idprio(1) stricter.
Style.

Based on submission by:	Eitan Adler <lists eitanadler com>, keramida
Reviewed by:	jhb, keramida
MFC after:	1 week
2011-01-04 14:13:09 +00:00
Ed Maste
0737626a7f Quiet clang warnings by using literal format strings for printf-like
functions.
2011-01-04 02:52:22 +00:00
Brian Somers
2921193efd Make -S functional.
MFC after:	1 week
2010-12-31 01:10:42 +00:00
Pyun YongHyeon
5c9606846d Add vte(4) to the list of supported network interface. 2010-12-31 00:24:08 +00:00
Ulrich Spörlein
20a95cd6fc Revert most of r210764, now that mdocml does the right
thing with empty quotation macros.

Requested by:	Alex Kozlov
2010-12-28 10:08:50 +00:00
Xin LI
24f2cbe959 style.Makefile says tab between var= and value. 2010-12-23 01:45:48 +00:00