summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ctm/ctm_rmail/ctm_rmail.c
Commit message (Collapse)AuthorAgeFilesLines
* The mode of files created by ctm_rmail was always 0600, even if theiedowse2002-01-221-0/+6
| | | | | | | | | umask was less restrictive. This was caused by the use of mkstemp() which internally passes a mode of 0600 to open(). Fix this by explicitly chmod'ing the files to (0666 & ~umask). PR: bin/16119 Submitted by: Sascha Blank <blank@uni-trier.de>
* * fix ctm(8) to use mkstemp() instead of tempnam() for tempfilekris2001-05-061-1/+1
| | | | | | | | | | | | | creation. * Tag the internal err() function with __printflike to allow checking for non-constant format string arguments (none exist) * Use fmtcheck() to sanitize the tar command obtained via -t to make sure it doesn't contain extraneous format operators. Reviewed by: mikeh MFC after: 1 week
* Close buffer overflows. This is partially based on an old version ofkris2000-01-091-22/+25
| | | | | | the fix from OpenBSD. Reviewed by: markm
* Paranoia: use mkstemp instead of mktemp.nectar1998-07-271-6/+8
| | | | | PR: bin/3211 Reported by: Mark Pritchard <mpp@FreeBSD.ORG>
* Support for "-u" which sets the timestamp from the delta on the file.phk1996-04-291-2/+5
| | | | | | | | Intended for sup mirrors etc. Not well tested yet. Reviewed by: phk Submitted by: Giles Lean <giles@nemeton.com.au> Submitted by: John Hay <jhay@mikom.csir.co.za>
* typo in my last commit.phk1995-12-261-1/+1
|
* A trivial enhancement to ctm_rmail to support the -v option and pass itpeter1995-12-261-1/+4
| | | | through to cvs when unpacking the delta.. (I read the output.. :-)
* Remove all trailing white space on the lines.phk1995-12-251-1/+9
| | | | Suggested by: Phil Taylor <phil@zipmail.co.uk>
* Remove trailing whitespace.rgrimes1995-05-301-2/+2
|
* Make the +%d-%d part +%03d-%03d so ls(1) sorts the files more sensibly.phk1995-03-191-1/+1
|
* (Not tested yet. I may insist that ctm be invoked with absolute path. /phk)phk1995-02-251-47/+192
| | | | | | | | | | | | | | | This patch fixes the concurrency problem, and adds a possibly useful -f switch (which you can read about in the man page :-) ). It also removes the absolute path from the invocation of ctm. I'll write a note about how to use a script with sendmail and procmail or some such, and people can fix their PATH there. BTW, this patch changes ctm_rmail.1, ctm_rmail.c and error.c in the ctm_rmail directory. Stephen. Reviewed by: phk Submitted by: Stephen McKay <syssgm@devetir.qld.gov.au>
* I (phk) blundered with the last change. Make it right & better now.phk1995-02-241-1/+1
| | | | | Reviewed by: phk Submitted by: John Hay <jhay@mikom.csir.co.za>
* Make us a little safer, by writing to a tempfile, and rename when done.phk1995-02-231-4/+14
| | | | Still needs more locking I belive.
* Use absolute path for the "ctm" program.phk1995-02-201-1/+2
|
* Various nitpicking from Stephen.phk1995-02-151-4/+2
| | | | | Reviewed by: phk Submitted by: Stephen McKay <syssgm@devetir.qld.gov.au>
* Clean up some details, to make it clear to gcc that we do not try to dophk1995-02-101-17/+24
| | | | something stupid.
* CTM email tools.phk1995-01-311-0/+486
Reviewed by: phk Submitted by: Stephen McKay <syssgm@devetir.qld.gov.au>
OpenPOWER on IntegriCloud