summaryrefslogtreecommitdiffstats
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
* Don't depend on <utmp.h>.ed2009-12-061-4/+3
| | | | | | MAXLOGNAME seems more applicable in this case, because UT_NAMESIZE refers to the username field in utmp files, which is clearly unrelated to repquota(8).
* Make pw(8) build without <utmp.h>.ed2009-12-061-5/+0
| | | | | | The size of the username record in utmp files should not influence the maximum username length. Right now ut_user/ut_name is big enough, so in this case it's dead code anyway.
* Make sure enough memory is allocated for a struct pft_entry whensyrinx2009-12-051-1/+1
| | | | | | | refreshing the list of pf tables. OKed by: philip MFC after: 1 week
* - In ypproc_all_2_svc(), yp_fork() is called only when !debug case.kuriyama2009-12-041-1/+4
| | | | | So _exit() in the bottom of this function should be called with the same case.
* - Replace magic number with YPOLDVERS macro (which may be missed inkuriyama2009-12-041-1/+1
| | | | r14262).
* Yet another cosmetic fix.trasz2009-12-031-3/+3
|
* Cosmetical fixes.trasz2009-12-031-11/+11
|
* Cosmetical fixes.trasz2009-12-031-23/+21
|
* Description of steps required to setup NFSv4 server is in nfsv4(4);trasz2009-12-031-1/+2
| | | | | add reference to exports(5), since that's the obvious starting point for searching for this.
* Disable SSL renegotiation in order to protect against a seriouscperciva2009-12-031-0/+1
| | | | | | | | | | | | | | | protocol flaw. [09:15] Correctly handle failures from unsetenv resulting from a corrupt environment in rtld-elf. [09:16] Fix permissions in freebsd-update in order to prevent leakage of sensitive files. [09:17] Approved by: so (cperciva) Security: FreeBSD-SA-09:15.ssl Security: FreeBSD-SA-09:16.rtld Security: FreeBSD-SA-09:17.freebsd-udpate
* - New style of jail(8) usage requires "-c" argument to create a jail.kuriyama2009-11-261-2/+2
| | | | Reviewed by: jamie
* Avoid sshd, cron, syslogd and inetd to be killed under high-pressure swapattilio2009-11-253-0/+12
| | | | | | | | | | | | | | environments. Please note that this can't be done while such processes run in jails. Note: in future it would be interesting to find a way to do that selectively for any desired proccess (choosen by user himself), probabilly via a ptrace interface or whatever. Obtained from: Sandvine Incorporated Reviewed by: emaste, arch@ Sponsored by: Sandvine Incorporated MFC: 1 month
* Unify fifolog_writer usage printout with fifolog_create andjh2009-11-171-1/+1
| | | | | | fifolog_reader. Approved by: trasz (mentor)
* Merge ACPICA 20091112.jkim2009-11-161-2/+2
|
* Collapse devinfo_state_t with device_state_t in order to avoid aattilio2009-11-152-5/+5
| | | | | | | structure replication and improve manteneability. Reviewed by: jhb, imp Tested by: Riccardo Torrini <riccardo at torrini dot org>
* Convert syscons on i386 to TERM=xterm.ed2009-11-132-14/+3
| | | | | TEKEN_XTERM is now gone. Because we always use xterm mode now, we only need a TEKEN_CONS25 switch to go back to cons25.
* Switch the default terminal emulation style to xterm for most platforms.ed2009-11-132-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Right now syscons(4) uses a cons25-style terminal emulator. The disadvantages of that are: - Little compatibility with embedded devices with serial interfaces. - Bad bandwidth efficiency, mainly because of the lack of scrolling regions. - A very hard transition path to support for modern character sets like UTF-8. Our terminal emulation library, libteken, has been supporting xterm-style terminal emulation for months, so flip the switch and make everyone use an xterm-style console driver. I still have to enable this on i386. Right now pc98 and i386 share the same /etc/ttys file. I'm not going to switch pc98, because it uses its own Kanji-capable cons25 emulator. IMPORTANT: What to do if things go wrong (i.e. graphical artifacts): - Run the application inside script(1), try to reduce the problem and send me the log file. - In the mean time, you can run `vidcontrol -T cons25' and `export TERM=cons25' so you can run applications the same way you did before. You can also build your kernel with `options TEKEN_CONS25' to make all virtual terminals use the cons25 emulator by default. Discussed on: current@
* Add a new flag to vidcontrol, -T, that allows terminal mode switching.ed2009-11-112-3/+22
| | | | | | This will make it more easy for people to experiment with TERM=xterm. Instead of echoing these strange escape sequences, I can just instruct them to run `vidcontrol -T xterm'.
* Remove a bunch of code used to detect SMP on ((i386 && !pc98) || amd64) anddes2009-11-108-867/+1
| | | | | | | | | | | | | | | offer to install an SMP kernel. The way this worked was: on supported platforms, code to read ACPI tables and BIOS MP tables was compiled into sysinstall, and if an SMP kernel config was present in the source tree when sysinstall was built, code that called it was also compiled. Since we haven't had SMP kernel configs in years, the latter was never compiled and the former never ran. This only removes dead and unreachable code; it does *not* remove the NCpus variable, nor the code that sets it to 1, nor the code that asks the user to select a kernel from a list. Discussed with: re@, randi@ and others
* Set umask to 0x077 instead of the default. This prevents non-root userdelphij2009-11-031-0/+2
| | | | | | | | from reading crashinfo output, which could contain some sensitive information. Reviewed by: jhb MFC after: 1 week
* Add more verbose output when dumping the configuration descriptor.thompsa2009-11-021-12/+57
| | | | Submitted by: Hans Petter Selasky
* MFV of r198828, tzcode2009qedwin2009-11-022-6/+6
| | | | | | | - Cleanup unnecessary local variables in zdump. - Fix man-page MFC after: 1 week
* Use our canonical .Dd format.brueffer2009-11-023-3/+3
| | | | Submitted by: Ulrich Spoerlein
* Expand DESCRIPTION and a basic EXAMPLES section.brueffer2009-11-011-1/+9
| | | | | | PR: 139605 Submitted by: Warren Block <wblock@wonkity.com> MFC after: 1 week
* Include the output of the ddb(4) capture buffer.jhb2009-10-291-0/+7
| | | | | Submitted by: Mikolaj Golub to my trociny of gmail MFC after: 3 days
* Don't leak a file descriptor when ejecting a CDROM.cperciva2009-10-261-0/+1
| | | | | Submitted by: Ronald Klop, trhodes Note to self: don't do commits while half-asleep
* Eject CDROM after installation if used as source media.cperciva2009-10-261-0/+22
| | | | | Submitted by: randi MFC after: 1 month
* - Add support for chrooted installs.edwin2009-10-212-77/+156
| | | | | | - Add examples to the man-page. MFC after: 1 week
* Introduce 'netDev=ANY' support for scripted (install.cfg) installs, which ↵rink2009-10-211-10/+73
| | | | | | | | results in the first ethernet interface with physical link being selected. While here, fix a minor typo causing an 'if' to be missed. Submitted by: randi
* Instead of having to know which timezone was picked last time, youedwin2009-10-202-16/+80
| | | | | | | now can run "tzsetup -r" which will reinstall the last choice. This data is recorded in /var/db/zoneinfo. MFC after: 1 week
* Make the usage of the default zoneinfo file to install clearer.edwin2009-10-191-5/+6
| | | | MFC after: 1 week
* When tzsetup is run as non-root and the "CMOS clock question onedwin2009-10-191-1/+3
| | | | | | | UTC" is answered as No, it would abort without properly ending the dialog session. MFC after: 1 week
* Merge ACPICA 20091013.jkim2009-10-191-1/+2
|
* Don't forget to increment the man page date.ed2009-10-181-1/+1
| | | | Reported by: bz
* Fix a typo in the jail(8) manpage.ed2009-10-181-1/+1
| | | | | Submitted by: Jille Timmermans <jille quis cx> MFC after: 1 week
* Correct typo: thetime -> the timeemaste2009-10-131-1/+1
| | | | | PR: docs/139447 Submitted by: Guido Falsi mad at madpilot dot net
* When run() returns an error, print the error message also injh2009-10-071-2/+6
| | | | | | | | | non-interactive mode. Previously error messages were printed only in interactive mode. PR: bin/124517 Approved by: trasz (mentor) MFC after: 1 month
* Fix using lp(1) without the new -t option after r194171.jilles2009-09-291-2/+2
| | | | | | PR: standards/129554 Tested by: Steve Kargl MFC after: 1 week
* Special-case "-r X" where X is [0-9.]+ to mean "-r X-RELEASE".cperciva2009-09-291-0/+3
| | | | | Tripped over by: too many people to count MFC after: 1 month
* Copy apm(4) emulation from sys/i386/acpica/acpi_machdep.c andjkim2009-09-272-1/+4
| | | | install apm(8) and apm_bios.h on amd64.
* Make the keyboard layer Unicode aware.ed2009-09-192-5/+5
| | | | | | | | | | | | Just take keyent_t to use an u_int to store the Unicode codepoints. Unfortunately the keymap is now too big to be loaded using an ioctl argument, so change the ioctl to pick a pointer. This change breaks kbdcontrol ABI. It doesn't break X11, because X11 doesn't do anything with syscons keymaps. It just switches the device out of K_XLATE. Obtained from: //depot/user/ed/newcons/...
* Spell Israel correctly.ed2009-09-181-1/+1
| | | | | Submitted by: Alexey Savartsov <asavartsov gmail com> PR: bin/138580
* Fixed markup.ru2009-09-171-4/+4
|
* Add support for ND6_IFF_IFDISABLED and ND6_IFF_ACCEPT_RTADV tohrs2009-09-124-7/+60
| | | | | | the -F flag. MFC after: 3 days
* Improve flexibility of receiving Router Advertisement andhrs2009-09-122-9/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | automatic link-local address configuration: - Convert a sysctl net.inet6.ip6.accept_rtadv to one for the default value of a per-IF flag ND6_IFF_ACCEPT_RTADV, not a global knob. The default value of the sysctl is 0. - Add a new per-IF flag ND6_IFF_AUTO_LINKLOCAL and convert a sysctl net.inet6.ip6.auto_linklocal to one for its default value. The default value of the sysctl is 1. - Make ND6_IFF_IFDISABLED more robust. It can be used to disable IPv6 functionality of an interface now. - Receiving RA is allowed if ip6_forwarding==0 *and* ND6_IFF_ACCEPT_RTADV is set on that interface. The former condition will be revisited later to support a "host + router" box like IPv6 CPE router. The current behavior is compatible with the older releases of FreeBSD. - The ifconfig(8) now supports these ND6 flags as well as "nud", "prefer_source", and "disabled" in ndp(8). The ndp(8) now supports "auto_linklocal". Discussed with: bz and jinmei Reviewed by: bz MFC after: 3 days
* Catch up with ACPICA 20090903.jkim2009-09-111-5/+5
|
* The boot loader is a FreeBSD a.out binary for x86, not a VAX binary.imp2009-09-101-1/+1
| | | | | | | | | | | | | Rather than writing out a MID of '0', write a MID of 0x86 (aka MID_I386) so that file gets it right. This is a nop for boot2. It just checks the MAGIC part of the field, ignoring the MID. boot2 is the only thing that loads this file, and only on x86 so the MID_i386 is always the right value (the rest of the code is already x86 specific). Reviewed by: bde@, jhb@ MFC after: 8.0 is out the door :)
* In the NEXTADDR macro use SA_SIZE() rather than directly usingbz2009-09-051-1/+1
| | | | | | | | | | sizeof(), as introduced in r186119, for advancing the current position into the buffer. See comment in net/route.h for a description of the difference. This makes ndp -s work again. Reviewed by: qingli X-MFC after: now
* Don't bother obtaining the ident if we are not going to print it.pjd2009-09-031-4/+1
|
* - Bump PKG_INSTALL_VERSION to 20090902 after dougb's changes.flz2009-09-021-3/+3
| | | | | - Change the comment to say that version must be changed when a non-cosmetic change is made.
OpenPOWER on IntegriCloud