summaryrefslogtreecommitdiffstats
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
* There is a plenty of arch's out there where sizeof(size_t) != sizeof(int).yar2006-06-191-1/+1
| | | | | | | | | A field width in printf(3) must be int, so cast return value from strlen() to the type. Noticed by: Andrzej Tobola <ato iem pw edu pl>; tinderbox Pointy hat to: yar X-MFC with: the rest of the new asf code
* Give a major overhaul to asf(8).yar2006-06-187-237/+685
| | | | | | | | | | | | | | | | | | | | The improvements are: - can get the kld info from core files via kvm(3); - can use kldstat(2) directly, which is a piece of cake; - can use .symbols or whatever, which allows for use by non-developers when reporting system crashes -- now asf(8) can be mentioned in the handbook at last; - speed (no more double fts(3) per loaded module); - various bugs fixed. At the same time, the new asf(8) should stay compatible with the old one, bar bugs. Perhaps some defaults may be changed later to match today's state of affairs. Reviewed by: grog MFC after: 1 month Sponsored by: RiNet (Cronyx Plus LLC)
* Allow variable amounts of verbosity.obrien2006-06-127-7/+7
|
* o Finally learn how to spell "privileges".maxim2006-06-112-2/+2
| | | | English trainer: ceri
* o Spell "privledges" correctly. Re-style comment.maxim2006-06-112-3/+5
|
* Use IP addresses out of "TEST-NET" (for use in documentation andbz2006-06-111-9/+9
| | | | | | example code) [RFC3330]. Reviewed by: simon
* o Re-arrange parentheses and fix a conition logic for !do_dns case.maxim2006-06-091-2/+2
| | | | | PR: bin/98625 MFC after: 1 month
* o Add /etc/shells to a source files list.maxim2006-06-081-0/+2
|
* o NIS clients ask for "shells" map not "shells.list".maxim2006-06-081-2/+1
| | | | | | PR: kern/86693 Submitted by: Victor Sudakov MFC after: 1 month
* Add adding_user.8 to SEE ALSO, note that usernames may contain any charactertrhodes2006-06-071-3/+6
| | | | | | but not being with a hyphen, similar to adding_user.8. PR: 35732
* Use calloc() instead of zeroing the memory our own.delphij2006-06-074-22/+11
|
* For network filesystems (NFS, samba, etc.), do not pass "export" nmount()rodrigc2006-06-061-0/+15
| | | | | | | | parameter to try to delete an NFS export. It won't work, and will log a spurious warning to syslog. Tested by: Arno J. Klaassen <arno at heho dot snv dot jussieu dot fr> MFC after: 3 days
* Cleanups for mailwrapper(8):delphij2006-06-062-69/+42
| | | | | | | | | | | | | | | - K&R -> ANSI prototype [O] - Do not bother to do free right before exit() or execve() [O] - Remove some dead code in addarg() - Make additional parameters specified in mailer.conf(5) actually work and document the fact. [N] - Avoid using __progname but instead use getprogname() and setprogname() to provide more sensible messages. [O, N] - Update $OpenBSD$ and $NetBSD$ to reflect the fact that we have sync'ed with their code. - WARNS=6 Obtained from/Inspired by: OpenBSD [O], NetBSD [N] (partially)
* - Fix markuppav2006-06-041-1/+1
| | | | | | PR: docs/98471 Submitted by: Tsurutani Naoki <turutani@scphys.kyoto-u.ac.jp> MFC after: 1 day
* - Only print a clarifying message about which HCI node has been used if theremarkus2006-06-021-4/+6
| | | | | | | | is more than one HCI node present - Use errx(3) instead of err(3) if there is no HCI node present as errno is 0 in this case and the resulting error message wouldn't make much sense Approved by: emax (mentor)
* o Better be safe than sorry: check return code from setuid(2),maxim2006-06-012-8/+30
| | | | | | | | setgid(2), setlogin(2) and initgroups(3). In theory they could fail for root with some third party mac(4) policies. Submitted by: Kostik Belousov MFC after: 1 month
* Enable inadvertantly disabled "securenet" access controls in ypserv. [1]cperciva2006-05-311-15/+22
| | | | | | | | Correct a bug in the handling of backslash characters in smbfs which can allow an attacker to escape from a chroot(2). [2] Security: FreeBSD-SA-06:15.ypserv [1] Security: FreeBSD-SA-06:16.smbfs [2]
* Bring the "just copy" hit list closer to date.ceri2006-05-311-2/+9
| | | | | Approved by: jhb MFC after: 1 month
* Update the location of the kernel for upgrades.ceri2006-05-311-6/+7
| | | | | | | | | I considered leaving /boot/kernel out of the chflags noschg line, but I seem to remember that there was a period where /boot/kernel was schg, so have left it in for safety's sake. Approved by: jhb MFC after: 1 month
* Use some features of sh(1) which I didn't know about until today ("read"cperciva2006-05-301-5/+2
| | | | | | | | | can read two variables at once; and suffix pattern deletion) to make the extract command fork fewer processes. With the portsnap snapshot and the ports tree in swap-backed memory disks on my 1.4GHz laptop, this reduces 178800 processes and 195/56/126 seconds of real/user/sys time to 44600 processes and 103/34/60 seconds.
* Do not log "can't delete export" messages if nmount() returns ENOTSUP.rodrigc2006-05-281-1/+1
| | | | | This eliminates spurious log entries for trying to delete exports for filesystems like devfs and procfs.
* Revert 1.73, since mounting devfs without a devfs ruleset inside asimon2006-05-281-1/+0
| | | | | | | jail is a very bad idea security wise. Approved by: trhodes (jcamou mentor) No response: jcamou
* Mention ruleset #4 (devfsrules_jail) in jail's man page.matteo2006-05-281-1/+3
| | | | MFC after: 3
* avoid null ptr derefsam2006-05-271-5/+6
| | | | Obtained from: netbsd
* correct static array overrunsam2006-05-271-1/+1
| | | | Obtained from: netbsd
* Move call to ignore SIGPIPE signals before calling fork(),rodrigc2006-05-271-1/+3
| | | | | | | | so that both parent and child processes ignore this signal. PR: bin/97768 Submitted by: Gea-Suan Lin <gslin at csie dot nctu dot edu dot tw> MFC after: 3 days
* Ignore SIGPIPE signals on write() failures.rodrigc2006-05-251-0/+1
| | | | | | | | | We already check for write() failures and handle EPIPE. Failure to handle SIGPIPE was resulting in rpc.lockd terminating. PR: bin/97768 Reported by: Gea-Suan Lin <gslin at csie dot nctu dot edu dot tw> MFC after: 1 day
* Unnest includes before forthcoming editing.glebius2006-05-2416-20/+95
|
* Convert to nmount() and remove hardcoded checks for ufs, msdosfs, ntfs,rodrigc2006-05-241-25/+19
| | | | | | and cd9660. PR: bin/97642
* If the user asks for "kernel sources" to be installed, extract thecperciva2006-05-241-1/+1
| | | | | | | | | SRC_BASE package (src/[A-Z]*) as well as SRC_SYS (src/sys/*). This allows users who only install the kernel source code to use the modern "make buildkernel" approach. Discussed with: re (scottl, kensmith) MFC after: 3 days
* Convert mountd to nmount(). Remove some hardcoded dependenciesrodrigc2006-05-232-69/+142
| | | | on ufs, cd9660, msdosfs, and ntfs, but not all dependencies.
* - Document the new Read_Node_List command, autodetection of HCI nodes andmarkus2006-05-221-8/+9
| | | | | | | | | that the '-n' parameter is now optional - Grammar fixes Reviewed by: emax Approved by: emax MFC after: 1 week
* - Add HCI node autodetection. As a consequence of this, make the '-n'markus2006-05-223-7/+89
| | | | | | | | | | parameter optional. - Add Read_Node_List command which prints a list of available HCI nodes, their Netgraph IDs and connected hooks Reviewed by: emax Approved by: emax MFC after: 1 week
* s/packages/packets/joel2006-05-221-2/+2
| | | | Noticed by: maxim
* Add manual page for ipfwpcap(8).joel2006-05-222-1/+130
| | | | | Reviewed by: phk, brueffer Submitted by: Niclas Zeising <lothrandil@n00b.apagnu.se>
* - Add support for filtering the the list of providers by a regularsimon2006-05-203-41/+159
| | | | | | | | | | | | | | | | | expression, which makes it possible to only see interesting providers. "f" is used inside gstat to set a filter, "F" is used to remove current filter. - Do not print some uninteresting values in the gstat title line. - Do not print past the end of the screen. - Read multiple keystrokes per "wait" when gstat is running. - Remove a redundant != check, right after check of NULL against the same variable ("gid"). - Use sysexits.h. - Do not link against libkvm and libsbuf, they are not actually used. - Fix a few style(9) issues where I had to touch nearby code anyway. Approved by: cperciva (mentor) MFC after: 2 weeks
* o SIOCGIFCONF -> getifaddrs(3) conversion. As a side effect fixmaxim2006-05-172-97/+44
| | | | | | | | | bin/95041: subnet mask mismatch. PR: bin/95041 Obtained from: NetBSD Tested by: Hans Lambermont MFC after: 2 months
* - Update to ntp-4.2.0pav2006-05-177-1340/+2457
| | | | | PR: docs/79857 Submitted by: Tsurutani Naoki <turutani@scphys.kyoto-u.ac.jp>
* Send the pcvt(4) driver off to retirement.phk2006-05-1788-12434/+0
|
* Fix formatting. Add missing break;emax2006-05-141-2/+3
| | | | | Submitted by: Iain Hibbert MFC after: 3 days
* Fix typo.cperciva2006-05-131-1/+1
| | | | Pointed out by: ceri
* Add a mechanism for constructing INDEX files which include local ports.cperciva2006-05-132-2/+22
| | | | Requested by: brooks
* PR: bin/71663hm2006-05-132-7/+7
| | | | | | | | Submitted by: Dan Lukes Reviewed by: hm@ fix compile warnings in isdnd and isdntest. some more compile time warnings also mentioned in this PR were already fixed in an earlier commit today.
* fix conflicting types for log(), add some prototypes to isdnd.hhm2006-05-1317-545/+547
|
* correct strtol(3) usage and style(9)matteo2006-05-121-4/+8
| | | | | Reviewed by: maxim MFC after: 2 weeks
* Use 'rm -rf foo/bar' to remove a port instead of 'rm -rf foo/bar/'.cperciva2006-05-121-3/+6
| | | | | | | When /usr/ports/foo/bar is a symlink pointing outside the tree, this deletes the symlink instead of the directory it points to. Requested by: delphij
* o Style(9) the previous commit a bit.maxim2006-05-111-13/+7
|
* Use sysctlbyname() instead of sysctlphk2006-05-111-4/+1
|
* Add the -s option to set jail's securelevel. This is useful for jails run ↵matteo2006-05-112-4/+26
| | | | | | | with non-root privileges. PR: bin/80242 MFC after: 2 weeks
* Alpha doesn't support linux ABI compat now.jhb2006-05-102-2/+2
|
OpenPOWER on IntegriCloud