summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* The default for -p was ``kern.notice'' in the -h case.ru2001-09-061-1/+1
| | | | | | | | | | | Make it ``user.notice'', as per manpage. (The syslog(3) function defaults to LOG_USER facility if none is specified, but we don't use syslog() in the -h case.) PR: docs/30374 Noticed by: SUGIMURA Takashi <sugimura@jp.FreeBSD.org>
* Convert systat(1) to use the new devstat interface.ken2001-09-063-53/+46
| | | | Submitted by: "Sergey A. Osokin" <osa@freebsd.org.ru>
* Use CFLAGS, not COPTS, in the Makefile. bsd.prog.mk conveniently addsdd2001-09-053-4/+5
| | | | | | | | | COPTS towards the end of final CFLAGS so that it can be used to override Makefile and other defaults. Using it in Makefiles risks having options set using it clobbered when somebody uses it on the command line. Approved by: bde
* Make ``wall -g'' really DTRT.ru2001-09-051-8/+11
| | | | Reviewed by: imp, markm
* Remove a trailing space at the end of a line.mike2001-09-041-1/+1
| | | | | Forgotten by: mike Submitted by: ru
* o Remove examples from throughout the manual.mike2001-09-041-11/+65
| | | | | | | o Create an EXAMPLES section. o In some places change "ru" to "RU" to be consistent. Reviewed by: ru
* WARNS=2 fixes.markm2001-09-042-9/+11
| | | | | | | | The remaining problem of converting highly incompatible pointer types is done by "laundering" the value through a union. This solves the problem (in my own mind) of how a "const char *" _ever_ actually gets a value in a WARNS=2 world.
* SECURITY.ru2001-09-042-40/+42
| | | | | | | | | | | | | Fixed macros for temporarily relinquishing and restoring setuid/setgid privileges so that they never change the real user and group IDs of the calling process. The setre[ug]id() calls are still used in the REDUCE_PERM macro (with the r[ug]id arguments of -1) so that the call changes the saved user and group IDs of the process to that specified. Also, the panic() and perr() functions had insufficient privileges to delete the problematic file under /var/at.
* The implementation of -flags was broken and did not match the (poorly)ru2001-09-043-31/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | | documented behavior. Only a certain set of file flags were recognized, and "no" flags did not match files that have corresponding flags bits turned off. Fix and extend the -flags functionality as follows: : -flags [-|+]<flags>,<notflags> : The flags are specified using symbolic names (see chflags(1)). : Those with the "no" prefix (except "nodump") are said to be : <notflags>. Flags in <flags> are checked to be set, and flags in : <notflags> are checked to be not set. Note that this is different : from -perm, which only allows the user to specify mode bits that : are set. : : If flags are preceded by a dash (``-''), this primary evaluates : to true if at least all of the bits in <flags> and none of the bits : in <notflags> are set in the file's flags bits. If flags are pre- : ceded by a plus (``+''), this primary evaluates to true if any of : the bits in <flags> is set in the file's flags bits, or any of the : bits in <notflags> is not set in the file's flags bits. Otherwise, : this primary evaluates to true if the bits in <flags> exactly match : the file's flags bits, and none of the <flags> bits match those of : <notflags>. MFC after: 2 weeks
* mdoc(7) police: tighten label width.ru2001-09-041-1/+1
|
* Use the correct blocksize when invoked with both -h and -krobert2001-09-041-1/+2
| | | | | | | options. PR: 30275 Reviewed by: jake
* File positions are off_t nowdays, not long, so:ache2001-09-031-13/+13
| | | | | | | | | | | | | | fseek -> fseeko ftell -> ftello fseek(x, 0L, 0) -> rewind(x) NOTE: that fseek/ftell not works for >long offsets per POSIX: [EOVERFLOW] For fseek( ), the resulting file offset would be a value which cannot be represented correctly in an object of type long. [EOVERFLOW] For ftell ( ), the current file offset cannot be represented correctly in an object of type long.
* File positions are off_t nowdays, not long, so:ache2001-09-024-7/+8
| | | | | | | | | | | | | fseek -> fseeko ftell -> ftello NOTE: fseek/ftell not works for >long offsets per POSIX: [EOVERFLOW] For fseek( ), the resulting file offset would be a value which cannot be represented correctly in an object of type long. [EOVERFLOW] For ftell ( ), the current file offset cannot be represented correctly in an object of type long.
* strtol -> strtoll (for off_t file size)ache2001-09-011-1/+1
|
* File positions are off_t nowdays, not long, so:ache2001-09-011-5/+5
| | | | | | | | | | long -> off_t fseek -> fseeko NOTE: that fseek not works for >long offsets files per POSIX: [EOVERFLOW] For fseek( ), the resulting file offset would be a value which cannot be represented correctly in an object of type long.
* File positions are off_t nowdays, not long, so:ache2001-09-013-3/+3
| | | | | | | | | | strtol -> strtoll fseek -> fseeko NOTE: that fseek not works for >long offsets files per POSIX: [EOVERFLOW] For fseek( ), the resulting file offset would be a value which cannot be represented correctly in an object of type long.
* File positions are off_t nowdays, not long, so:ache2001-09-014-14/+14
| | | | | | | | | | | long -> off_t strtol -> strtoll fseek -> fseeko NOTE: that fseek not works for >long offsets files per POSIX: [EOVERFLOW] For fseek( ), the resulting file offset would be a value which cannot be represented correctly in an object of type long.
* Remove some unsafe function calls from the signal handlers.kris2001-09-011-6/+14
| | | | | | Obtained from: OpenBSD Reviewed by: audit MFC after: 2 weeks
* Exit gracefully when a SIGHUP is received. This prevents ee from going intomp2001-08-311-0/+1
| | | | | | | | an infinite spin loop when the terminal window is forcibly blown away. PR: 29553 Reported by: Sung N. Cho <sucho2@vt.edu> MFC after: 1 day
* SECURITY: Drop `setgid kmem' bit as early as possible.ru2001-08-313-0/+3
|
* Sort predicates.ru2001-08-311-70/+70
| | | | PR: docs/30237
* Add myself.jmas2001-08-311-0/+1
|
* Make my Grandfather famous by showing the world my middle name,adrian2001-08-311-1/+1
| | | | | | as seems to be the trend. (Thanks Josef. :-)
* Revert the previous delta and apply a better fix which correctsmike2001-08-301-9/+5
| | | | | | a check on the final snprintf and reduces duplicated code. Submitted by: brian
* Restore the `-perm +mode' feature.ru2001-08-301-2/+2
| | | | | Broken in the "close a PR" race, in revision 1.30. Note that the patch in the PR did not have this bug!
* Make my Dad famous by showing the world my middle name, as seemsjoe2001-08-301-1/+1
| | | | to be the trend.
* Like su(1), make PAM use mandatory. Remove parts of the authenticationmarkm2001-08-305-82/+7
| | | | logic that are handled by PAM. Fix documentation to reflect this.
* Remove whitespace at end of line I happened to find during my last edit.alex2001-08-301-2/+2
|
* Add support for proper URI encoding, using strvisx(3)'s VIS_HTTPSTYLE.alex2001-08-301-3/+10
| | | | | Requests through a proxy are still broken for URIs that contain blanks, since this required a bigger rewrite of the whole function.
* Add support for HTTP/1.1 name-based virtual hosts. Also, usemike2001-08-301-7/+12
| | | | | | | | | | asprintf(3) when creating the request string, as the length of a path is defined as unlimited by the standard and limiting the total request to 4K is awfully arbitrary. PR: 30054 Submitted by: Joseph Mallett <jmallett@xMach.org> MFC after: 8 days
* o Fix some checks on snprintf(3) to prevent miscalculations.mike2001-08-291-4/+8
| | | | | | o This fixes a memory leak that can occur on some URL's. Pointy hat to: brian
* Manually unifdef(1) CRAY, UNICOS, hpux and sun uselsess code.markm2001-08-295-51/+4
|
* In get_string(), 0-terminate the contents of buf ``just in case'';joerg2001-08-281-0/+1
| | | | | | | otherwise, if the very first fgetc() already yielded EOF, the returned string won't get terminated at all. MFC after: 1 day
* -a is not an options (sic).dd2001-08-281-1/+1
|
* Mention what an asterisk means in the -i display.dd2001-08-281-0/+4
| | | | | PR: 30069 Submitted by: andrew@ugh.net.au
* Remove MAP_INHERIT flag from mmaps.dillon2001-08-254-11/+11
|
* ``recognized -> recognize'' where appropriate.dd2001-08-231-2/+2
| | | | Obtained from: OpenBSD
* Fix my previous snprintf() patches (which were largely no-ops).brian2001-08-232-9/+11
| | | | Mostly submitted by: bde
* Add myself.petef2001-08-221-0/+1
| | | | Reviewed by: ade
* Take maintainership of whois(1).mike2001-08-211-0/+2
|
* Update -v documentation to match reality.ru2001-08-211-4/+3
| | | | Spotted by: bde
* Revert to version 1.16 which was more correct than either of my attempts.brian2001-08-211-4/+4
|
* Display a better error message when snprintf() returns < 0brian2001-08-211-1/+5
| | | | Pointed out by: bde
* Handle overflows from snprintf(), not just returns of < 0brian2001-08-211-5/+5
| | | | Pointed out by: bde
* Remove unnecessary casts.brian2001-08-211-4/+4
| | | | | | | The original (1.16) code was mostly correct, but this version is far clearer. Casts suggested to now be obfuscations by: bde
* Handle snprintf() returning -1.brian2001-08-204-18/+32
| | | | MFC after: 2 weeks
* Very minor stylistic nit.markm2001-08-201-2/+1
| | | | Discussed with: ru
* Code merge and diff reduction between this and crypto telnet.markm2001-08-2014-567/+252
| | | | | Also remove useless AUTHENTICATION code. We have never compiled this here, and it is doubtful that it even works without crypto.
* Don't misuse the return from snprintf.brian2001-08-201-5/+7
| | | | MFC after: 2 weeks
* Don't overflow a buffer from command line arguments.kris2001-08-201-2/+6
| | | | MFC after: 2 weeks
OpenPOWER on IntegriCloud