History log of /freebsd-10-stable/usr.sbin/ctm/ctm_rmail/ctm_rmail.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 89675 22-Jan-2002 iedowse

The mode of files created by ctm_rmail was always 0600, even if the
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>


# 76300 06-May-2001 kris

* fix ctm(8) to use mkstemp() instead of tempnam() for tempfile
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


# 55635 09-Jan-2000 kris

Close buffer overflows. This is partially based on an old version of
the fix from OpenBSD.

Reviewed by: markm


# 37897 27-Jul-1998 nectar

Paranoia: use mkstemp instead of mktemp.
PR: bin/3211
Reported by: Mark Pritchard <mpp@FreeBSD.ORG>


# 15456 29-Apr-1996 phk

Support for "-u" which sets the timestamp from the delta on the file.
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>


# 13028 26-Dec-1995 phk

typo in my last commit.


# 13019 26-Dec-1995 peter

A trivial enhancement to ctm_rmail to support the -v option and pass it
through to cvs when unpacking the delta.. (I read the output.. :-)


# 13015 25-Dec-1995 phk

Remove all trailing white space on the lines.
Suggested by: Phil Taylor <phil@zipmail.co.uk>


# 8857 30-May-1995 rgrimes

Remove trailing whitespace.


# 7147 19-Mar-1995 phk

Make the +%d-%d part +%03d-%03d so ls(1) sorts the files more sensibly.


# 6695 25-Feb-1995 phk

(Not tested yet. I may insist that ctm be invoked with absolute path. /phk)

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>


# 6680 24-Feb-1995 phk

I (phk) blundered with the last change. Make it right & better now.

Reviewed by: phk
Submitted by: John Hay <jhay@mikom.csir.co.za>


# 6658 23-Feb-1995 phk

Make us a little safer, by writing to a tempfile, and rename when done.
Still needs more locking I belive.


# 6576 20-Feb-1995 phk

Use absolute path for the "ctm" program.


# 6457 15-Feb-1995 phk

Various nitpicking from Stephen.

Reviewed by: phk
Submitted by: Stephen McKay <syssgm@devetir.qld.gov.au>


# 6290 10-Feb-1995 phk

Clean up some details, to make it clear to gcc that we do not try to do
something stupid.


# 6081 31-Jan-1995 phk

CTM email tools.

Reviewed by: phk
Submitted by: Stephen McKay <syssgm@devetir.qld.gov.au>