summaryrefslogtreecommitdiffstats
path: root/usr.bin/sendbug (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Use __progname and warn instead of fprintf where appropriate.ray2007-04-071-5/+6
|
* De-lint.ray2007-04-071-4/+5
|
* Warn if one of the required fields is not filled out. Requestedray2007-04-061-1/+74
| | | | by millert@.
* Don't shadow variables. Enable -Wshadow.ray2007-04-062-12/+12
|
* argc does not include __progname after subtracting optind.ray2007-04-061-2/+2
|
* Only include newest dmesg.ray2007-04-061-25/+47
| | | | ``Come on, take some risks'' deraadt@.
* Attach dmesg to sendbug reports by default. Use -D flag to disable.ray2007-04-062-9/+49
| | | | OK deraadt@ and millert@.
* flesh the text out; ok rayjmc2007-03-281-18/+32
|
* +.Xr crash 8jmc2007-03-281-1/+3
|
* CC: a copy of the bug report to sender. Requested by Travers Buda.ray2007-03-281-2/+2
| | | | OK millert@.
* Replace some scary pointer code. The new code is O(n^2) for stringsray2007-03-271-24/+29
| | | | | | | | of '&', but gecos fields are usually short and most do not have '&' so the impact should be minimal. In return we get clearer and safer code. OK moritz@.
* Remove variable name from prototype.ray2007-03-271-2/+2
|
* - tweak the opening sentencejmc2007-03-261-8/+10
| | | | | | | - be less precise about editors in the opening blurb - note that prs are not confidential, and provide an alternative ok ray deraadt
* Simplify gecos parsing code and prevent buffer overflowmoritz2007-03-261-12/+8
| | | | | | | when gecos field contains multiple '&' characters with other characters inbetween. With and OK ray@
* Remove pointless cast. No binary change.ray2007-03-261-2/+2
|
* Break on waitpid success; we shouldn't continue on WIFSIGNALED, andray2007-03-261-2/+2
| | | | | | WIFCONTINUED can't happen in this case. OK deraadt@.
* Certain errors in editit() should be fatal.ray2007-03-261-2/+3
|
* Don't print warnings in editit(), instead make errno reliable onray2007-03-261-7/+6
| | | | | | failure. If the editor exits non-zero, errno is set to ECHILD. OK deraadt@.
* Accept $VISUAL in addition to $EDITOR.ray2007-03-262-6/+18
|
* Save and restore signal handlers. Although we do not install ourray2007-03-261-10/+11
| | | | | | | own signal handlers, this allows this code to be more easily reused in other programs. OK deraadt@
* Restore errno before calling perror().ray2007-03-261-1/+2
|
* Check fork() == -1 instead of fork() < 0.ray2007-03-261-2/+2
|
* When someone hits ^C in an editor, the editor does exit(130), Iray2007-03-261-4/+1
| | | | | | | | | don't know why. Something to do with the shell, says deraadt@. Continuing to ignore these signals in the child fixes this. Now editit()'s return value can be reliably checked. OK deraadt@.
* more careful waitpid() discussed with ray (plus some knf)deraadt2007-03-261-15/+19
|
* fork() does not return EPROCLIM, so don't test for it.ray2007-03-251-6/+1
|
* more cleaning :)deraadt2007-03-251-35/+28
|
* Change editit() to return -1 on error and 0 on success, like manyray2007-03-251-6/+6
| | | | other C functions. (Currently this return value is unchecked.)
* KNF.ray2007-03-251-5/+5
|
* Save errno before calling signal().ray2007-03-251-3/+5
|
* correct signal handling and process waiting for the editor spawningderaadt2007-03-231-18/+63
| | | | | code, so that signals in the editor are handled right. written by ray after he started looking at other code that does this better
* Since we now have our own program, we can export more things thatderaadt2007-03-231-4/+23
| | | | matter. Include kern.version, which tells a hell of a lot. ok millert ray
* missing .El;jmc2007-03-231-1/+2
|
* Document temporary files.ray2007-03-231-1/+5
|
* Add more bloat to manual.ray2007-03-231-6/+8
|
* Flags belong under SYNOPSIS, not NAME.ray2007-03-231-2/+2
|
* Alphabetize flags and environment variables.ray2007-03-231-6/+6
|
* Replace `&' in gecos field with login, prodded by deraadt@.ray2007-03-231-7/+34
|
* simplify cleanup by using an atexit handler. lets us use err() insteadtedu2007-03-231-42/+36
| | | | | of a series of warn()/gotos. ok deraadt
* re-org something for prettinessderaadt2007-03-231-3/+5
|
* support $PR_FORM environment variablederaadt2007-03-232-4/+31
|
* Don't insert double slashes ("/tmp//p.XXXXXXXXXX") if TMPDIR endsray2007-03-231-2/+3
| | | | in "/". Helps emacs and deraadt@.
* Support command-line arguments in $EDITOR. Prodded by deraadt@.ray2007-03-231-4/+6
|
* spacingderaadt2007-03-231-3/+3
|
* -V in usagederaadt2007-03-231-2/+2
|
* document -L -V and -P options. still a bit shortderaadt2007-03-231-1/+18
|
* add -V (version) supportderaadt2007-03-231-5/+9
|
* Get rid of silly gcc warning.ray2007-03-231-2/+5
| | | | OK deraadt@.
* handle the -L and -P options; ok rayderaadt2007-03-231-2/+29
|
* some minor KNF, including sentinals; ok rayderaadt2007-03-231-9/+9
|
* Import public domain rewrite of sendbug, written by Ray Lai. =)ray2007-03-235-0/+470
Replaces GNU sendbug/sendpr, the wonderful shell script that had trouble dealing with signals, behaved differently depending on what file it read upon startup, and suffered from issues plaguing most large shell scripts. OK deraadt@.