summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* Remove redundant code from runshutdown() now tcsetsid(3) works reliably.ed2009-06-151-18/+1
| | | | | | We can now just call setctty() without any problems. This means the shell running the shutdown script is now the session leader, just like on startup.
* - The maximum number of heads is 255, not 256.lulf2009-06-151-2/+2
| | | | Pointed out by: marcel
* Fix the staircase issue properly this time.ed2009-06-141-0/+8
| | | | | | | | | | | Even though I thought this bug was somewhere in the TTY layer, it turns out init(8) doesn't make sure /dev/console is opened initially properly. I've added revoke() to two pieces of code: - death(): Apart from killing the gettys on shutdown, this doesn't guarantee the TTY to be closed immediately. - runshutdown(): Just like setctty(), we should revoke /dev/console. Applications like syslogd may have file descriptors to the console.
* Rev IEEE80211_IOC_STA_INFO abi: ni_flags grew from 16 bits to 32sam2009-06-131-21/+31
| | | | | | | | bits but isi_state did not follow; expand it to 32 bits and pad to maintain alignment. Note this is an incompatible change that requires rebuilding of user applications. Submitted by: rpaulo, cbzimmer, avatar
* Add support for labels derived from GPT metadata.ivoras2009-06-131-2/+14
| | | | | | | Approved by: gnn (mentor) Reviewed by: pjd PR: 128398 Submitted by: Marius Nuennerich < marius at nuenneri.ch >
* fsck_msdosfs: accept no-op -C option for compatibilty with fsckavg2009-06-102-4/+10
| | | | | | | Submitted by: marck Reviewed by: current@ Approved by: jhb (mentor) MFC after: 1 week
* Fix an off by one error when we limit append/prepend text sizes based on ourbrian2009-06-081-5/+15
| | | | | | | | | | | internal buffer sizes. When we 'append', assume we're appending to text. Some MS dhcp servers will give us a string with the length including the trailing NUL. when we 'append domain-name', we get something like "search x.y\000 z" in resolv.conf :( MFC after: 1 week Security: A buffer overflow (by one NUL byte) was possible.
* Change the printf format string to match the variable type to quietjhb2009-06-081-2/+2
| | | | warnings.
* Permit the specification of bandwidth values withinluigi2009-06-082-40/+72
| | | | | | | | | "profile" files (bandwidth is mandatory when using a profile, so it makes sense to have everything in one place). Update the manpage accordingly. Submitted by: Marta Carbone
* add a missing format in a printfluigi2009-06-081-1/+1
| | | | | | Detected building with gcc 4.3.3 MFC after: 3 days
* Make the size (-s) and start (-b) parameters of the add verb optional.marcel2009-06-081-2/+126
| | | | The missing parameter(s) are automatically filled-in.
* Fix and add a workaround on an issue of EtherIP packet with reversedhrs2009-06-072-0/+133
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | version field sent via gif(4)+if_bridge(4). The EtherIP implementation found on FreeBSD 6.1, 6.2, 6.3, 7.0, 7.1, and 7.2 had an interoperability issue because it sent the incorrect EtherIP packets and discarded the correct ones. This change introduces the following two flags to gif(4): accept_rev_ethip_ver: accepts both correct EtherIP packets and ones with reversed version field, if enabled. If disabled, the gif accepts the correct packets only. This flag is enabled by default. send_rev_ethip_ver: sends EtherIP packets with reversed version field intentionally, if enabled. If disabled, the gif sends the correct packets only. This flag is disabled by default. These flags are stored in struct gif_softc and can be set by ifconfig(8) on per-interface basis. Note that this is an incompatible change of EtherIP with the older FreeBSD releases. If you need to interoperate older FreeBSD boxes and new versions after this commit, setting "send_rev_ethip_ver" is needed. Reviewed by: thompsa and rwatson Spotted by: Shunsuke SHINOMIYA PR: kern/125003 MFC after: 2 weeks
* Allow humanized numbers for LBAs, as well as partition indices formarcel2009-06-073-21/+120
| | | | | | gpart(8). LBAs in particular are ugly. The ganularity is a sector, but users expect byte granularity when specifying the size or offset with a SI unit. Handle LBAs specially to deal with this.
* Several ipfw options and actions use a 16-bit argument to indicateluigi2009-06-051-3/+3
| | | | | | | | | | | | | | | | | | | | | | | pipes, queues, tags, rule numbers and so on. These are all different namespaces, and the only thing they have in common is the fact they use a 16-bit slot to represent the argument. There is some confusion in the code, mostly for historical reasons, on how the values 0 and 65535 should be used. At the moment, 0 is forbidden almost everywhere, while 65535 is used to represent a 'tablearg' argument, i.e. the result of the most recent table() lookup. For now, try to use explicit constants for the min and max allowed values, and do not overload the default rule number for that. Also, make the MTAG_IPFW declaration only visible to the kernel. NOTE: I think the issue needs to be revisited before 8.0 is out: the 2^16 namespace limit for rule numbers and pipe/queue is annoying, and we can easily bump the limit to 2^32 which gives a lot more flexibility in partitioning the namespace. MFC after: 5 days
* remove a printf that was only useful for debugging.luigi2009-06-051-2/+0
| | | | MFC after: 3 days
* Bump document date.benno2009-06-051-1/+1
| | | | Pointed out by: trhodes
* Perform some checking on the requested list of modules to warn people if theybenno2009-06-042-9/+142
| | | | | | | | | try to load modules by filename out of the current directory where the module in question may be further up the module path or not in the module path at all. Also add some text to the man page to help explain what's going on. Sponsored by: Redacted Consulting
* style(9) pass prior to further changes.benno2009-06-041-32/+37
| | | | Sponsored by: Redacted Consulting
* track rename of CSA iesam2009-06-041-1/+1
| | | | Submitted by: wxs
* Correct comment.pjd2009-06-031-1/+1
|
* Initialize iov and iovlen before use.pjd2009-06-021-0/+2
| | | | Reported by: Lucius Windschuh <lwindschuh@googlemail.com>
* - Use volatile for signal variables.lulf2009-06-021-2/+2
| | | | Suggested by: Jaakko Heinonen <jh -at- saunalahti.fi>
* Code for parsing nmount options in kernel was mergedrodrigc2009-06-011-1/+1
| | | | | | to stable/7 branch in r190315. So only resort to fallback_mount() could which passes struct nfs_args to kernel in kernel versions less than 702100.
* - Use sig_atomic_t for signal handler variables.lulf2009-05-291-2/+2
| | | | MFC after: 1 week
* - Move from mount(2) to nmount(2). This should allow to convert MNT_SNAPSHOTpjd2009-05-293-40/+54
| | | | | | | | flag from a mount flag to FS-specific flag. - Simplify usage. Instead of 'mksnap_ffs /mnt/foo /mnt/foo/snap' allow to give only one argument: 'mksnap_ffs /mnt/foo/snap'. Old usage is also accepted for now. - Add an example of how to mount a snapshot.
* Make dump -W show the level correctly.brian2009-05-291-1/+1
| | | | | | PR: 129110 Submitted by: Mike Voorhis <mvoorhis@cs.wpi.edu> MFC after: 3 weeks
* Add support for the experimental nfs client to mount_nfs. Thermacklem2009-05-274-8/+173
| | | | | | | | | | | | experimental client is used when the fstype is "newnfs" or the "nfsv4" option is specified. It includes the addition of the option: gssname - to specify a client side initiator host based principal name which is specific to NFSv4. It also includes a change to mount.c, so that it knows about mount_newnfs, but not mount_nfs4. Reviewed by: dfr Approved by: kib (mentor)
* Bump the document date to reflect the 'p' command enhancements.brian2009-05-251-1/+1
| | | | Suggested by: trhodes
* o Fix typo in the example.maxim2009-05-251-1/+1
| | | | | | PR: docs/134930 Submitted by: Alex Keda MFC after: 1 week
* Enhance the 'p' command so that it understands size qualifiers (K/M/G) andbrian2009-05-252-6/+118
| | | | | | | | so that it understands '*' as 'DTRT'. PR: 68312 Submitted by: Rene de Vries - rene at tunix dot nl (mostly) MFC after: 3 weeks
* Make 'struct acl' larger, as required to support NFSv4 ACLs. Providetrasz2009-05-221-1/+1
| | | | | | compatibility interfaces in both kernel and libc. Reviewed by: rwatson
* Remove the unmaintained University of Michigan NFSv4 client from 8.xrwatson2009-05-227-753/+6
| | | | | | | prior to 8.0-RELEASE. Rick Macklem's new and more feature-rich NFSv234 client and server are replacing it. Discussed with: rmacklem
* Add links to libgeom(3) where appropriate.trasz2009-05-191-0/+1
|
* Do no spam the ifconfig output for the aggregated interface with 'laggdev ↵thompsa2009-04-301-2/+1
| | | | laggX'.
* Slightly improve gjournal documentation.trasz2009-04-293-2/+8
| | | | Reviewed by: pjd
* Let pflogd's Makefile just use WARNS instead of changing CFLAGS.ed2009-04-231-1/+2
| | | | | | This change allows me to disable -Werror by using NO_WERROR. Right now I can't build pflogd using Clang, because Clang generates more warnings when passing -Wall.
* Correct the information about when the respective functionality firstbrueffer2009-04-231-1/+1
| | | | | | | | appeared in FreeBSD. PR: 133785 Submitted by: Ulrich Spoerlein <uqs@spoerlein.net> MFC after: 3 days
* ifconfig(8) no longer needs to know how to print the IFF_NEEDSGIANT flag,rwatson2009-04-181-1/+1
| | | | since it shortly won't be defined at all.
* The structs ifaliasreq and in_aliasreq have exactly the same layout andbrooks2009-04-151-2/+2
| | | | | | member names, but we really do mean to use in_aliasreq here. MFC after: 1 week
* Extend route command:kmacy2009-04-142-11/+24
| | | | | | | | | | - add show as alias for get - add weights to allow mpath to do more than equal cost - add sticky / nostick to disable / re-enable per-connection load balancing This adds a field to rt_metrics_lite so network bits of world will need to be re-built. Reviewed by: jeli & qingli
* Style fixes to the newfs_msdos manpage.ed2009-04-111-8/+9
| | | | Submitted by: Christoph Mallon <christoph mallon gmx de>
* Update documentation (forgotten in r190929).ed2009-04-111-4/+5
| | | | Submitted by: Christoph Mallon <christoph mallon gmx de>
* Do not prepend /dev/ when -C is used.ed2009-04-112-5/+7
| | | | Submitted by: Christoph Mallon <christoph mallon gmx de>
* When using -C, do not warn when the file is not a character device, but warn ↵ed2009-04-111-2/+7
| | | | | | when it is not a regular file. Submitted by: Christoph Mallon <christoph mallon gmx de>
* Fix a bug in r185587.ed2009-04-111-2/+3
| | | | | | | fstat(fd, &sb) was not executed unconditionally anymore so sb was read uninitialised when -C is used. Submitted by: Christoph Mallon <christoph mallon gmx de>
* Use ftruncate() instead of lseek()+write()+lseek() to set the createded2009-04-111-5/+1
| | | | | | file (-C) to the requested size. Submitted by: Christoph Mallon <christoph mallon gmx de>
* De-static local variables in main() (which is not recursive) and const-ifyed2009-04-111-10/+10
| | | | | | others. Submitted by: Christoph Mallon <christoph mallon gmx de>
* Show -@ and -C in usage, which were added in r185587.ed2009-04-111-0/+2
| | | | Submitted by: Christoph Mallon <christoph mallon gmx de>
* Clean up the usage() function to use a single fprintf().ed2009-04-111-26/+25
| | | | Submitted by: Christoph Mallon <christoph mallon gmx de>
* Fix broken case where caused by last patch whererrs2009-04-111-1/+2
| | | | | a user uses 0.0.0.0/0 as an alias for default. Obtained from: Mykola Dzham (freebsd@levsha.org.ua)
OpenPOWER on IntegriCloud