summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
...
* Now that the kernel access control for quotactl(2) appears to workrwatson2003-06-151-32/+0
| | | | | | | | | | | | | | | | | | | | | | | properly, clean up quota(1). quota(1) has the ability to query quotas either directly from the kernel, or if that fails, by reading the quota.user or quota.group files specified for the file system in /etc/fstab. The setuid bit existed solely (apparently) to let non-operator users query their quotas and consumption when quotas weren't enabled for the file system. o Remove the setuid bit from quota(1). o Remove the logic used by quota(1) when running setuid to prevent users from querying the quotas of other users or groups. Note that this papered over previously broken kernel access control; if you queried directly using the system call, you could access some of the data "restricted" by quota(1). In the new world order, the ability to inspect the (live) quotas of other uids and gids via the kernel is controlled by the privilege requirement sysctl. The ability to query via the file is controlled by the file permissions on the quota database backing files (root:operator, group readable by default).
* Now that the kernel access control for quotactl(2) appears to workrwatson2003-06-152-18/+0
| | | | | | | | | | | | | | | properly, clean up quota(1). quota(1) has the ability to query quotas either directly from the kernel, or if that fails, by reading the quota.user or quota.group files specified for the file system in /etc/fstab. The setuid bit existed solely (apparently) to let non-operator users query their quotas and consumption when quotas weren't enabled for the file system. o Remove the setuid bit from quota(1). o Remove the logic used by quota(1) when running setuid to prevent users from querying the quotas of other users or groups. Note that this papered over previously broken kernel access control.
* Remove MAINTAINER lines.obrien2003-06-143-6/+0
|
* Don't truncate the output file before making sure that we cantrhodes2003-06-141-6/+17
| | | | | | | | | | | | | | | | | | | | | read at least 1 byte from the input file without problems. This fixes a bug in uncompress(1) that causes the accidental removal of files that happen to have the same name as the output file, even when the uncompression fails and is aborted, i.e.: $ echo hello world > hello $ touch hello.Z $ ls -l hello* -rw-rw-r-- 1 giorgos giorgos 12 Jun 14 13:33 hello -rw-rw-r-- 1 giorgos giorgos 0 Jun 14 13:33 hello.Z $ ./uncompress -f hello uncompress: hello.Z: Inappropriate file type or format $ ls -l hello* -rw-rw-r-- 1 giorgos giorgos 0 Jun 14 13:33 hello.Z $ PR: 46787 Submitted by: keramida
* Fix all WARNS. Checked with "make WARNS=9". Remove unused file.markm2003-06-1410-1184/+133
|
* - Use _PATH_TTY and _PATH_DEVNULL macros.mux2003-06-131-5/+9
| | | | | | | | | | | - Don't fail if we can't open /dev/null since this can happen if xargs is jail'ed or chroot'ed. These fixes were submitted by Todd Miller from the OpenBSD project. There was one problem in those fixes that broke -o, which is corrected here and should be committed to the OpenBSD repo by Todd soon. MFC in: 3 days
* Use waitpid, instead of wait3, which is more portable.jmallett2003-06-131-2/+2
| | | | | | Submitted by: "Todd C. Miller" <Todd.Miller@courtesan.com> Obtained from: OpenBSD Reviewed by: tjr
* Remove redundant return; from void function.jmallett2003-06-131-1/+0
| | | | | Submitted by: "Todd C. Miller" <Todd.Miller@courtesan.com> Obtained from: OpenBSD
* Drop maintainership of whois(1). If someone needs a review they canmike2003-06-121-2/+0
| | | | find me in the whois.c revision history.
* add my birthdayerwin2003-06-111-0/+1
|
* Revert 1.52. This should have been added to fetch.3.trhodes2003-06-101-29/+1
| | | | Discussed with: des, ru
* Revert part of the last commit. This fixes tail for pipes.markm2003-06-101-8/+7
| | | | Submitted by: joerg
* Add (unsigned char) cast to ctype macrosache2003-06-101-2/+2
|
* Use setlocale & nl_langinfo to parse locale nameache2003-06-101-12/+12
|
* Remove deprecated locale namesache2003-06-103-24/+1
|
* Introduce options definition the standard way. command -> utility.charnier2003-06-091-3/+3
|
* Introduce options definition the standard way. Do not uppercase firstcharnier2003-06-091-5/+5
| | | | letter in FILES section.
* Introduce options definition the standard way.charnier2003-06-093-9/+8
|
* Revert previous commit, from Bruce:charnier2003-06-091-1/+0
| | | | | | | | This is a style bug. err() is declared is non-returning so that every use of it doesn't need to be encrufted with NOTREACHED. It's too bad that only gcc understands the declaration. Asked by: bde@
* Add sysctlbyname(3) support, and use that for uname -i, in preparation forjmallett2003-06-091-1/+13
| | | | | replacing the committed static OID version with a string-based OID_AUTO version.
* Make kernel identification (`ident' in the config(8) driver) available tojmallett2003-06-092-6/+18
| | | | | | | | | userland, and the kernel. In the kernel by way of the 'ident[]' variable akin to all the other stuff generated by newvers.sh. In userland it is available to sysctl consumers via KERN_IDENT or 'kern.ident'. It is exported by uname(1) by the -i flag. Reviewed by: hackers@
* REST IN PEACEwill2003-06-081-0/+1
| | | | | | | | | | | | | Alan Eldridge Born December 15, 1961 in Iowa Died June 6, 2003 in Denver, Colorado Thank you for your contributions, you will be greatly missed. http://freebsd.kde.org/memoriam/alane.php (This change suggested by ru@ - thanks).
* The sorting is by month/day/year/login.ru2003-06-081-2/+2
|
* Submitted by: hmpru2003-06-081-0/+1
|
* command -> utility. Add section number to .Xrcharnier2003-06-081-8/+8
|
* The .Nm utilitycharnier2003-06-081-1/+2
|
* command -> utilitycharnier2003-06-081-1/+1
|
* Add section number to .Xrcharnier2003-06-084-11/+12
|
* typocharnier2003-06-081-1/+1
|
* The .Nm utilitycharnier2003-06-081-3/+5
|
* The .Xr utilitycharnier2003-06-081-1/+2
|
* The .Xr filescharnier2003-06-081-0/+1
|
* Add NOTREACHED after err() inside of a switch statement.charnier2003-06-081-0/+1
|
* Consistently use __inline for pure c89 compilers.obrien2003-06-071-5/+4
| | | | Submitted by: Tim Kientzle <kientzle@acm.org>
* Finish the implementation of the -p switch so that itmux2003-06-071-0/+26
| | | | | actually works. I have no idea why this wasn't finished and happened to try to use it.
* Add my birthday.osa2003-06-061-0/+1
| | | | Approved by: fjoe (mentor)
* Usekuriyama2003-06-062-2/+2
| | | | | | | | | cat ${.ALLSRC} > ${.TARGET} rather than ln -sf ${.ALLSRC} ${.TARGET} not to depends on absolute-path of symbolic links. Commented by: marcel, obrien, bde
* Use cat(1) instead of cp(1) so as not to break -DNOCLEAN buildsmarcel2003-06-061-2/+2
| | | | when the file permissions of source files don't allow writing.
* Do not dribble zero bytes into the output, by replacing an obfuscated iffanf2003-06-051-4/+1
| | | | | | | | whose true and false clauses were equivalent with a check that we are not about to stumble off the end of the line. Reported by: peter Pointy hat to: fanf
* Fix substitution when the regex matches the zero-length string.fanf2003-06-041-5/+6
| | | | | | | | | There are two bugs: in the s///g case, the substitution didn't occur at the end of the line; in the s///N case, the code didn't count forwards along the line properly. See the sg, s3, s4, and s5 tests in src/tools/regression/usr.bin/sed/. Reviewed by: tjr
* MAINTAINER line moved to MAINTAINERS file.fanf2003-06-041-2/+0
|
* Change fatal to warnx() for unknown encodingache2003-06-031-4/+2
|
* Two enhancements for kdump.peter2003-06-032-21/+101
| | | | | | 1) add a "-p pid", which is rather useful for selecting a single pid in a combined trace file (eg: with ktrace -i). 2) display binary genio data in a more precise format.
* Hardcore supported encodings listache2003-06-021-1/+11
|
* Assorted mdoc(7) fixes.ru2003-06-021-74/+126
|
* Give the -o option before any filename operands when invoking the sorttjr2003-06-011-2/+2
| | | | | | utility. 1003.1-2001 does not allow sort to accept the -o option after the operands (Base Definitions, 12.2 Utility Syntax Guidelines, Guideline 9).
* Split the env(1) manpage off from printenv(1); there is not much pointtjr2003-06-014-94/+161
| | | | in keeping them together. Mention that printenv is obsolescent.
* Close files after opening them to avoiding leaking descriptors and memory.tjr2003-06-011-1/+3
|
* Rewrite this csh program as a /bin/sh program. This appears to beschweikh2003-05-311-114/+92
| | | | | | | | | | the last csh script needed for a buildworld. You should now be able to buildworld on a system that was compiled with NO_TCSH=true. Verified to produce the same result for the one file being generated during buildworld, share/doc/papers/kernmalloc/appendix.ms. Reviewed by: hackers@ MFC after: 2 weeks
* Assorted mdoc(7) fixes.ru2003-05-301-29/+41
|
OpenPOWER on IntegriCloud