summaryrefslogtreecommitdiff
path: root/usr.bin/sendbug
AgeCommit message (Collapse)Author
2007-04-13document dmesg(8) attachment a little more fully; ok rayJason McIntyre
2007-04-13+.Xr dmesg 8Jason McIntyre
2007-04-07Sprinkle const poison, remove unneeded variable.Ray Lai
2007-04-07Use __progname and warn instead of fprintf where appropriate.Ray Lai
2007-04-07De-lint.Ray Lai
2007-04-06Warn if one of the required fields is not filled out. RequestedRay Lai
by millert@.
2007-04-06Don't shadow variables. Enable -Wshadow.Ray Lai
2007-04-06argc does not include __progname after subtracting optind.Ray Lai
2007-04-06Only include newest dmesg.Ray Lai
``Come on, take some risks'' deraadt@.
2007-04-06Attach dmesg to sendbug reports by default. Use -D flag to disable.Ray Lai
OK deraadt@ and millert@.
2007-03-28flesh the text out; ok rayJason McIntyre
2007-03-28+.Xr crash 8Jason McIntyre
2007-03-28CC: a copy of the bug report to sender. Requested by Travers Buda.Ray Lai
OK millert@.
2007-03-27Replace some scary pointer code. The new code is O(n^2) for stringsRay Lai
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@.
2007-03-27Remove variable name from prototype.Ray Lai
2007-03-26- tweak the opening sentenceJason McIntyre
- be less precise about editors in the opening blurb - note that prs are not confidential, and provide an alternative ok ray deraadt
2007-03-26Simplify gecos parsing code and prevent buffer overflowMoritz Jodeit
when gecos field contains multiple '&' characters with other characters inbetween. With and OK ray@
2007-03-26Remove pointless cast. No binary change.Ray Lai
2007-03-26Break on waitpid success; we shouldn't continue on WIFSIGNALED, andRay Lai
WIFCONTINUED can't happen in this case. OK deraadt@.
2007-03-26Certain errors in editit() should be fatal.Ray Lai
2007-03-26Don't print warnings in editit(), instead make errno reliable onRay Lai
failure. If the editor exits non-zero, errno is set to ECHILD. OK deraadt@.
2007-03-26Accept $VISUAL in addition to $EDITOR.Ray Lai
2007-03-26Save and restore signal handlers. Although we do not install ourRay Lai
own signal handlers, this allows this code to be more easily reused in other programs. OK deraadt@
2007-03-26Restore errno before calling perror().Ray Lai
2007-03-26Check fork() == -1 instead of fork() < 0.Ray Lai
2007-03-26When someone hits ^C in an editor, the editor does exit(130), IRay Lai
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@.
2007-03-26more careful waitpid() discussed with ray (plus some knf)Theo de Raadt
2007-03-25fork() does not return EPROCLIM, so don't test for it.Ray Lai
2007-03-25more cleaning :)Theo de Raadt
2007-03-25Change editit() to return -1 on error and 0 on success, like manyRay Lai
other C functions. (Currently this return value is unchecked.)
2007-03-25KNF.Ray Lai
2007-03-25Save errno before calling signal().Ray Lai
2007-03-23correct signal handling and process waiting for the editor spawningTheo de Raadt
code, so that signals in the editor are handled right. written by ray after he started looking at other code that does this better
2007-03-23Since we now have our own program, we can export more things thatTheo de Raadt
matter. Include kern.version, which tells a hell of a lot. ok millert ray
2007-03-23missing .El;Jason McIntyre
2007-03-23Document temporary files.Ray Lai
2007-03-23Add more bloat to manual.Ray Lai
2007-03-23Flags belong under SYNOPSIS, not NAME.Ray Lai
2007-03-23Alphabetize flags and environment variables.Ray Lai
2007-03-23Replace `&' in gecos field with login, prodded by deraadt@.Ray Lai
2007-03-23simplify cleanup by using an atexit handler. lets us use err() insteadTed Unangst
of a series of warn()/gotos. ok deraadt
2007-03-23re-org something for prettinessTheo de Raadt
2007-03-23support $PR_FORM environment variableTheo de Raadt
2007-03-23Don't insert double slashes ("/tmp//p.XXXXXXXXXX") if TMPDIR endsRay Lai
in "/". Helps emacs and deraadt@.
2007-03-23Support command-line arguments in $EDITOR. Prodded by deraadt@.Ray Lai
2007-03-23spacingTheo de Raadt
2007-03-23-V in usageTheo de Raadt
2007-03-23document -L -V and -P options. still a bit shortTheo de Raadt
2007-03-23add -V (version) supportTheo de Raadt
2007-03-23Get rid of silly gcc warning.Ray Lai
OK deraadt@.