summaryrefslogtreecommitdiffstats
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
* When it's necessary to kldload tun(4), don't forget to re-try to openbrian2002-04-153-8/+15
| | | | | | tun0. Submitted by: qhwt@myrealbox.com
* Make the MTRR code a bit more defensive - this should help peopledwmalone2002-04-141-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | trying to run X on some Athlon systems where the BIOS does odd things (mines an ASUS A7A266, but it seems to also help on other systems). Here's a description of the problem and my fix: The problem with the old MTRR code is that it only expects to find documented values in the bytes of MTRR registers. To convert the MTRR byte into a FreeBSD "Memory Range Type" (mrt) it uses the byte value and looks it up in an array. If the value is not in range then the mrt value ends up containing random junk. This isn't an immediate problem. The mrt value is only used later when rewriting the MTRR registers. When we finally go to write a value back again, the function i686_mtrrtype() searches for the junk value and returns -1 when it fails to find it. This is converted to a byte (0xff) and written back to the register, causing a GPF as 0xff is an illegal value for a MTRR byte. To work around this problem I've added a new mrt flag MDF_UNKNOWN. We set this when we read a MTRR byte which we do not understand. If we try to convert a MDF_UNKNOWN back into a MTRR value, then the new function, i686_mrt2mtrr, just returns the old value of the MTRR byte. This leaves the memory range type unchanged. I have seen one side effect of the fix, which is that ACPI calls after X has been run seem to hang my machine. As running X would previously panic the machine, this is still an improvement ;-) I'd like to MFC this before the 4.6 code freeze - please let me know if it causes any problems. PR: 28418, 25958 Tested by: jkh, Christopher Masto <chris@netmonger.net> MFC after: 2 weeks
* Add support for an additional field to the packages/INDEX file. Ifmurray2002-04-131-8/+45
| | | | | | | | | | | | | | | | | | | | | | | present, this field specifies the media volume that the disc is contained on. If the volume of a given packages is different than the current volume of mediaDevice, then the user is prompted -- "This is disc #%d. Package %s is on disc #%d\n" "Would you like to switch discs now?\n" If the user selects yes, then DEVICE_SHUTDOWN is called and the user is then prompted -- "Please remove disc #%d from you drive, and add disc #%d" This works well for a carefully crafted INDEX file, but more work needs to be done to sort dependencies on a given package based on the volume that they reside on, to minimize the amount of disc flipping required of the user. This commit is a no-op for normal INDEX files and FreeBSD CDs. These additional features are only used if the INDEX and cdrom.inf file have multi-volume support.
* Read the CD_VOLUME property from the cdrom.inf file and use it tomurray2002-04-131-0/+7
| | | | initialize the volume ID for the media device in use.
* Add the concept of a volume to the device and package structures. Ifmurray2002-04-132-0/+4
| | | | | these values are different for a given package, then we must prompt the user to insert another disc before the package can be installed.
* Stop "make depend" from attempting to delete non-existent .depend.ru2002-04-111-1/+1
|
* Make kldxref work for Elf64 (which has 32 bit hash tables)peter2002-04-112-7/+7
|
* When binding to transports if getnetconfigent() fails then actuallyalfred2002-04-111-1/+2
| | | | | | print out the correct transport it failed on rather than always spitting out 'udp', also call nc_sperror() to give a more verbose error message detailing the problem.
* Only remove the '\n' at the end of a line if there is one.dwmalone2002-04-101-1/+2
| | | | | | | | I missed this as part of the fix to the PR below. PR: 31265 Submitted by: Matthew D. Fuller <fullermd@over-yonder.net> MFC after: 1 week
* Close a very small window during which new (empty) instances of rotated logsheldonh2002-04-101-4/+13
| | | | | | | | | | | | | files are owned by the caller of newsyslog (usually root:wheel) even if alternative ownerships were specified in newsyslog.conf. Note that this is part of a wider problem which is fully addressed in OpenBSD. Anyone with the time and inclination to incorporate the full fix for the wider problem will receive no complaints from me and should feel free to walk all over this delta. PR: bin/36738 MFC after: 1 week
* timed(8) manual page has some incorrect grammertrhodes2002-04-091-4/+2
| | | | | PR: 36457 No objections from: ru
* chown(8) was not describing symlinks correctly, fixed.trhodes2002-04-091-3/+6
| | | | | | PR: 36447 No objections from: ru MFC after: 3 days
* Change typo, 2347 -> 2047.asmodai2002-04-091-1/+1
| | | | Submitted by: moses
* Reactivate sysinstall, it does work on ia64.peter2002-04-081-1/+1
|
* Sysinstall does not work on ia64 and sparc64 yet. :-)obrien2002-04-081-1/+4
|
* Solve the problem of spuriously comparing files that were createddougb2002-04-081-0/+3
| | | | in the ${TEMPROOT}/usr/obj directory by deleting them first.
* Document the two new options, pre buildworld mode anddougb2002-04-081-1/+12
| | | | post-mm rc.conf[.local] comparisons.
* GCC 3.1 cleanup - add a break after default: at the end of a switchmurray2002-04-071-0/+1
| | | | statement.
* Add comment to supplement my last commit.murray2002-04-072-0/+16
| | | | Requested by: obrien
* GCC >= 3 and C99 handle zero-length arrays differently than oldermurray2002-04-072-0/+12
| | | | | versions of GCC. With this change, sysinstall compiles and works fine with GCC 3.1 or 2.95.
* Remove some last vestages of _interactiveHack.obrien2002-04-071-6/+1
| | | | | | Also tie stderr to something for the invocation of pkg_add. Sponsored by: FreeBSD Mall, Inc.
* A variable had been unnecessarily assigned a bogus value because gcc wasgad2002-04-071-7/+6
| | | | | | | | | "confused" about it being unassigned. In fact, gcc was right. Fix the real problem by setting that variable before break-ing out of a select statement so gcc is happy, and then remove the unnecessary assignment. Reported by: a user wondering why lpd syslog-ed about "compiler confusion" MFC after: 12 days
* Rename a variable from 'user' to 'userid' to avoid some compiler warnings.gad2002-04-071-5/+5
| | | | MFC after: 12 days
* Rearrange all the error returns from sendfile() to make sure the originalgad2002-04-071-43/+51
| | | | | | | | | input file and any temporary (filter) file are closed upon return, and that is generally done at the end of the routine. This should make it easier for a later update (not yet written) to implement a "resend_copies" option. MFC after: 12 days
* Re-arrange how output filters (of=) are handled for queues going togad2002-04-071-147/+191
| | | | | | | | | | | | | remote machines. Now they really are handled *exactly* the same as input filters (if=) for remote queues, except that they are started with a different set of parameters. This should fix a few subtle bugs in output-filter processing on such queues. It is a pretty significant re-arranging of sendfile(), moving some of it to a new execfilter() routine. PR: 36552 Reviewed by: no screams from freebsd-audit MFC after: 12 days
* Don't reinvent the wheel now that ether_ntoa(3) has been fixedru2002-04-061-25/+13
| | | | | | to print leading zeros in libc_net/ether_addr.c,v 1.13. MFC after: 3 days
* Simplify and optimize. This speeds up 'initattr' enormously for smalldes2002-04-061-41/+29
| | | | attribute sizes (up to two orders of magnitude!)
* Add "xf86cfg -textmode" to the list of options for configuring XFree86murray2002-04-062-10/+18
| | | | | | 4.X. Suggested by: many
* Teach sysinstall the difference between a command line, and anmurray2002-04-062-6/+16
| | | | | executable file, so that we can pass commands with arguments to configXSetup().
* Correct old wording of the arp functionality.asmodai2002-04-051-5/+7
| | | | | | | | We are long past the stage where we only had ARP working for 10 Mb/s. PR: 35604 Submitted by: Gary W. Swearingen <swear@blarg.net> Additional comments by: Mike DeGraw-Bertsch <mbertsch@radioactivedata.org>
* Dont quit prematurely when writing from stdin...sos2002-04-051-2/+5
|
* In the words of the submitter:dd2002-04-051-1/+5
| | | | | | | | | This patch explains -F for usershow and groupshow. Because "groupmod ... -F" doesn't do anything, the patch also drops that from groupmod's command line args. PR: 35955 Submitted by: Mike DeGraw-Bertsch <mbertsch@radioactivedata.org>
* Document the -7 option for usershow.dd2002-04-051-0/+9
| | | | | PR: 36735 Submitted by: Mike DeGraw-Bertsch <mbertsch@radioactivedata.org>
* Add the missing hoststat and purgestat commands. These are normallygshapiro2002-04-051-0/+2
| | | | | | | | symlinks to the sendmail binary but in FreeBSD's case, they are symlinks to mailwrapper. Submitted by: tisco MFC after: 4 days
* Get tun P2P address from the local pool if RADIUS server returnedhosokawa2002-04-042-1/+5
| | | | | | 255.255.255.254 as client ipaddr. Reviewed-By: freebsd-net mailing list
* Integrate airtools. This adds a number of parameters, which I've notimp2002-04-041-5/+119
| | | | | documented yet, the most interesting one is -l, which lists all the access points available.
* Switch to using XFree86 version 4. We do this thru installing the package,obrien2002-04-0211-140/+176
| | | | | | | | so know we have proper PKG registration and dependency information. This is a WIP for 5.0 DP #1, so it is still rough around the edges and does not GC the old XFree86 3.3.6 handling stuff that should be GC'ed. Sponsored by: FreeBSD Mall, Inc.
* DTRT for packages read from STDIN:murray2002-04-021-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | $ cat pkg.tgz | pkg_add - The above command line will fail on -CURRENT or -STABLE, and therefore, so will sysinstall if you try to install additional packages through the network (FTP) from a multiuser system. Because of the different environment during installation (wrt the playpen), this bug does not manifest itself during initial installs, and users may install packages from the network just fine at that time. This bug was fixed in OpenBSD 4 years ago. ---------------------------- revision 1.4 date: 1998/04/07 05:56:13; author: marc; state: Exp; lines: +13 -8 fix package input from standard input -- the program tried to process stdin twice. Note: it assumes stdin is a compressed tar file. ---------------------------- PR: conf/36606 Obtained from: OpenBSD MFC after: 2 weeks
* Produce a different error message for mktime(3) failure than for badcjc2002-04-021-8/+14
| | | | | | newsyslog.conf syntax. PR: bin/36641
* Send diskpart to the eternal storage device (SMD probably :-) wherephk2002-04-024-659/+0
| | | | it belongs.
* Various fixes, mostly for problems introduced by my mdoc transcription,sheldonh2002-04-021-12/+14
| | | | | | | rather than problems that existed in the original HTML "source". PR: docs/33585 Submitted: Norihiro Kumagai <kumagai@attbi.com>
* There are 4 key formats, not 3.sheldonh2002-04-021-1/+1
| | | | | PR: 33586 Submitted by: Norihiro Kumagai <kuma@12-225-156-18.client.attbi.com>
* Our persistent-state, large temporary file dir is /VAR/tmp, not /USR/tmp.obrien2002-04-015-6/+6
|
* Include <string.h> for some prototypes, rather than depending onmike2002-04-012-0/+2
| | | | pollution from <strings.h>.
* Fix SCM ID's.obrien2002-04-0132-120/+97
|
* Fix a typobrian2002-03-311-1/+1
|
* Add a missing ``#ifndef NONETGRAPH''brian2002-03-311-0/+2
|
* Remove some extraneous whitespacebrian2002-03-311-1/+1
|
* Include arpa/inet.hbrian2002-03-311-0/+2
|
* Fix CLEANFILES.ru2002-03-301-0/+1
|
OpenPOWER on IntegriCloud