chuckr
45479f641c
Doubling the size of MAXSIZE because of large delta indigestion.
...
Submitted by: Stefan Esser.
2000-06-21 13:34:16 +00:00
nik
0695246a45
Mark "name" as being an argument, so it is formatted correctly.
...
PR: docs/16834
Submitted by: Greg Lewis <glewis@trc.adelaide.edu.au>
2000-03-07 13:32:11 +00:00
chuckr
dcf1104bb0
Correcting SECURITY warning.
...
Submitted by: Kris Kennaway
Reviewed by: Warner Losh
2000-01-29 21:44:42 +00:00
kris
8643457c23
Fix insecure tempfile handling.
...
Reviewed by: audit@freebsd.org
2000-01-16 21:11:19 +00:00
phk
573e577b6f
|Since I had suffered from partially applied CTM deltas, some time ago,
...
|I made ctm ignore deltas for files that match the "after edit" MD5.
|(In one case, I had the compiler fill all temporary space while CTM
|was editing files.)
Submitted by: se
Reviewed by: phk
2000-01-15 19:45:18 +00:00
kris
41010e575b
Document the (in)security features of CTM, especially ctm_rmail.
2000-01-11 07:46:33 +00:00
kris
0a55bbaf89
Close buffer overflows. This is partially based on an old version of
...
the fix from OpenBSD.
Reviewed by: markm
2000-01-09 07:10:04 +00:00
markm
6ea8f09ae9
Correct the email address that folk are to bug if they need
...
help; also point them in the direction of the source, not
PHK (or any other human) if they need to make CTM deltas
of their own.
1999-11-29 17:58:58 +00:00
phantom
05186ff58b
Remove comments left since mdoc.template time or just useless comments
1999-10-30 15:38:20 +00:00
peter
efabb9ccb1
$Id$ -> $FreeBSD$
1999-08-28 01:35:59 +00:00
mpp
74991d7076
Some man page cleanup. Make the NAME and SYNOPSIS sections agree so
...
that whatis(1) will produce the expected results.
Pointed-out-by: Jesus Monroy <jesus.monroy@usa.net> in freebsd-doc
1999-06-24 06:22:24 +00:00
danny
95663fd953
Use 4 digit year in log file, rather than 2.
1999-01-19 11:52:57 +00:00
nectar
eb97908cb7
Paranoia: use mkstemp instead of mktemp.
...
PR: bin/3211
Reported by: Mark Pritchard <mpp@FreeBSD.ORG>
1998-07-27 22:26:25 +00:00
phk
435dcca358
Spellint fixes.
...
PR: 6903 (not the contrib bits).
Reviewed by: phk
Submitted by: Josh Gillam <josh@quick.net>
1998-06-10 12:33:41 +00:00
rnordier
8b08bdc237
Spelling/typo fix: (proccessed).
1998-04-20 20:57:16 +00:00
rnordier
b7baaa948a
Spelling/typo fixes: (proccessed, og).
1998-04-20 20:55:43 +00:00
cracauer
0009308669
(evil) hackers -> crackers
1998-04-08 12:00:48 +00:00
charnier
6e321f37d4
.Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq.
1998-03-23 08:31:20 +00:00
wosch
8ae70d2227
Delete ctm_scan program. There is no manpage for ctm_scan
...
and nobody use it.
Reviewed by: phk & Richard Wackerbarth
1997-10-12 19:58:53 +00:00
charnier
34a6b27326
Use err(3). Use An/Aq for author name.
1997-09-17 06:24:58 +00:00
jmg
282e436f4f
fix misspelling
...
Submitted-by: Josh Gilliam
Closes PR:4424
1997-08-30 11:05:34 +00:00
imp
691010efad
compare return value from getopt against -1 rather than EOF, per the final
...
posix standard on the topic.
1997-03-31 05:11:47 +00:00
peter
b782f4df30
Revert $FreeBSD$ to $Id$
1997-02-22 16:15:28 +00:00
wosch
3c5e4a3bbe
Sort cross references.
1997-01-20 00:03:00 +00:00
alex
a3118e8c68
Sweep through the tree fixing mmap() usage:
...
- Use MAP_FAILED instead of the constant -1 to indicate
failure (required by POSIX).
- Removed flag arguments of '0' (required by POSIX).
- Fixed code which expected an error return of 0.
- Fixed code which thought any address with the high bit set
was an error.
- Check for failure where no checks were present.
Discussed with: bde
1997-01-16 21:58:40 +00:00
jkh
808a36ef65
Make the long-awaited change from $Id$ to $FreeBSD$
...
This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.
Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.
1997-01-14 07:20:47 +00:00
phk
22e6b8ec63
Be a little less fatalistic in case of problems.
...
Reviewed by: phk
Submitted by: wosch
1996-12-28 13:50:34 +00:00
mckay
2545d6b35b
Correct MLINKS, now that I know how it actually works.
1996-12-17 14:28:09 +00:00
mckay
5c577b8f21
Documented ctm_dequeue and the new feature of ctm_smail that goes with it.
...
Expanded the ctm_rmail example usage section.
1996-12-15 15:10:11 +00:00
mckay
3d965dbf16
Simplified. Some fts related bugs removed. Made less verbose. The default
...
number of mail messages sent per run was lowered from 2 to 1. Why? Well,
some numbers just give you the warm fuzzies, like zero and one. Zero isn't
much use here, so I picked my all time favourite, one.
1996-11-27 13:06:51 +00:00
mckay
20c91aa5ab
Removed unnecessary locking. Simplified. Tidied.
1996-11-27 12:58:44 +00:00
phk
85056a35fa
Don't dump core on zero-size files.
1996-11-21 15:17:04 +00:00
phk
b1f3d9d80a
Latest reality.
1996-11-20 08:21:27 +00:00
phk
e696736e52
Make the case where there is no changes look less fatal.
1996-11-17 08:11:18 +00:00
phk
f0c019885a
Check bogus and ignore against the relative name, not the absolute.
1996-11-16 22:05:46 +00:00
phk
8f3378d1da
Improve mkctm.c so we can use it, and start using it.
...
This should help quite a bit on the load. Notice that
some minor changes in config files will be needed.
Contact me for details.
1996-11-16 19:30:14 +00:00
wosch
d3f8d45ce4
fix .Xr macro
1996-09-21 15:08:10 +00:00
peter
0c5fd5b5a0
aarghh! what is it with this CVSROOT/val-tags regexp anyway? how
...
many times do I have to do this to get it right? :-]
1996-09-19 08:41:49 +00:00
peter
9106ad3301
Add dequeue script for the record.
1996-09-07 21:09:41 +00:00
peter
ceb03294dd
make it slightly less verbose while creating queue entries..
1996-09-07 21:06:19 +00:00
peter
85136fdd2a
make the "-l logfile" option actually do something..
1996-09-07 20:41:09 +00:00
peter
c9bf73c078
After queueing deltas, send out an initial two mails since that will cover
...
99.9% of the cases at with out delay as before.
1996-09-07 19:50:48 +00:00
peter
fbca19d5a2
fts_children() returns NULL if there are no files. If there was a failure
...
then errno != 0.
1996-09-07 19:46:29 +00:00
peter
79ba94b99f
- resync with configs running on freefall
...
- add ctm_conf.gnats from freefall
- add support for doing both the immediate mailout and the queued mailout.
- use "sendmail -odq -t" rather than "sendamil -t" to make it queue to
the mailqueue rather than immediately begin transmission. This allows
us to take advantage of our ordered dequeueing system without blowing
WC's T1 to hell with a 50 part mailout in parallel.
- bump the max ctm size from 3MB to 10MB.... This is mainly for the fast
list.
1996-09-07 18:48:52 +00:00
phk
d564e18313
Some new options, useful for restoring single files or subtrees from the
...
deltas.
Submitted by: A JOSEPH KOSHY <koshy@fakir.india.hp.com>
1996-08-30 10:21:00 +00:00
phk
b7d408a490
Add some explanation on TMPDIR.
...
Submitted by: Chuck Robey <chuckr@Glue.umd.edu>
1996-07-24 21:36:48 +00:00
gpalmer
7bfb0c69d9
Small changes so that this actually stands a chance of doing the
...
right thing...
1996-07-12 13:12:46 +00:00
gpalmer
f58ac78ef6
Add ctm_dequeue to the SUBDIR list now that I've checked that it
...
compiles cleanly on 2.2
1996-07-01 21:59:22 +00:00
gpalmer
638960af56
Add a facility for a `slow'' CTM delta queue, allowing
x' number
...
of delta's to be mailed out every hour (or however often you schedule
the cron job).
ctm_dequeue is the cron job which takes the stuff from the
queue directory and punts it into sendmail. The chunks of
the deltas (and the complete deltas if they are that small)
are sorted into order before being dispatched, so the people
subscribing should still get the bits in the right order.
The changes to ctm_smail should be fairly safe as they won't be
activated unless you go for the new queue directory option.
1996-07-01 20:54:11 +00:00
wosch
4ef3e1ad64
update SEE ALSO section
1996-05-27 22:46:44 +00:00
phk
40c2c4166a
Commit the right version of mkCTM, <:-)
...
Noticed by: "Philippe Charnier" <charnier@lirmm.fr>
1996-05-14 07:25:59 +00:00
phk
c78351df10
Update to current reality.
...
mkctm.c can replace the guts of mkCTM if anybody feels like it...
1996-05-09 20:54:06 +00:00
phk
4c9fab8cf7
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>
1996-04-29 21:02:42 +00:00
bde
73710850c8
Updated howmany() to be once again identical with the namespace-polluting
...
one in <sys/types.h>. Lite2 changed the white space in the latter.
1996-03-19 15:36:32 +00:00
bde
84effbbc5c
Updated format strings to match Lite2's fixed-width type changes.
...
uids and gids aren't unreasonably long any more, so we get to
change all the format strings that were fixed to use %lu back
to %u.
1996-03-19 15:17:34 +00:00
phk
20dc7e151c
Add support for local modifications to the tree, by using FOO.ctm instead
...
of FOO if present. Various other tweaks.
Submitted by: Christian Haury <Christian.Haury@sagem.fr>
1996-02-05 16:06:55 +00:00
nate
e728cbefd8
ctm(5) has been written, so remove comment about it not existing. :)
1996-01-31 02:01:56 +00:00
phk
88d76e5717
typo in my last commit.
1995-12-26 09:43:40 +00:00
peter
db42dac3f5
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.. :-)
1995-12-26 02:49:53 +00:00
phk
0ab20d23b0
Remove all trailing white space on the lines.
...
Suggested by: Phil Taylor <phil@zipmail.co.uk>
1995-12-25 19:35:23 +00:00
phk
68b2067f87
Fix a core-dump.
...
Submitted by: Simon Marlow <simonm@dcs.gla.ac.uk>
1995-11-10 12:17:23 +00:00
phk
3757373413
Forgot this one in the MD5 reshuffle.
...
Noticed by: Faried Nawaz <fn@pain.csrv.uidaho.edu>
1995-07-13 15:33:42 +00:00
bde
299beb9850
Remove -g from CFLAGS.
1995-07-12 18:35:45 +00:00
phk
1e1f566194
Fix to match new MD5 api. Faster, fixes memory leak.
1995-07-12 09:16:13 +00:00
rgrimes
4f960dd75f
Remove trailing whitespace.
1995-05-30 03:57:47 +00:00
bde
5065e4a366
Check for i/o errors in fclose() so that a full disk doesn't almost
...
guarantee truncation of the file being edited.
1995-04-16 22:40:49 +00:00
phk
1cd72c801f
The latest round of bugfixes here...
1995-03-29 06:13:08 +00:00
phk
24d628f8ae
Fixed a bug so that a delta#0 can be applied.
...
Fixed a typo in the generation of temp filenames.
"Blame" Joerg for the man-pages (and clarify a couple of minor points).
Most appreceiated Joerg!
1995-03-26 20:09:52 +00:00
joerg
90b59d01f5
Call open(2) and mkdir(2) with 0666/0777 as the `mode' argument (as
...
opposed to 0644 or 0755). It's finally still masked by the process'
umask(2), and it does not make sense to restrict it further than that.
This (especially for mkdir(2)) was causing major headaches for the CVS
tree, since a member of group cvs was later not able to get cvs
checkout permission for the mirrored tree failed to write the lock file).
1995-03-25 20:46:51 +00:00
joerg
694a8742e7
Added a man page for the ctm(1) command, as well as a format description
...
for the CTM deltas.
Largely based on Poul-Henning's README, and the source code.
1995-03-25 18:14:26 +00:00
phk
2a40c77737
Make sure exit() is sensible;
1995-03-24 21:36:32 +00:00
phk
6abc04ee90
Modes on dirs were decimal by mistake.
...
Submitted by: joerg
1995-03-24 21:33:20 +00:00
phk
cd13439f7f
Make extra arguments be subdirs to go through.
1995-03-19 21:26:00 +00:00
joerg
44a74c37df
Finally applying my own fix. :-)
...
>Description:
ctm(1) sometimes did not free up all used resources (open pipes and
processes, heap memory). This happened whenever one of the passes
ended prematurely, and it became very apparent when running it on
a bunch of already applied deltas, resulting in a ``gunzip: resource
temporarily unavailable'' due to the maxproc # exhausted.
1995-03-19 13:42:54 +00:00
roberto
4694967493
Add a missing "\" in a printf before the "n".
1995-03-19 12:01:23 +00:00
phk
6a942ef2ac
Make the +%d-%d part +%03d-%03d so ls(1) sorts the files more sensibly.
1995-03-19 06:09:01 +00:00
phk
504389ec94
Look at the .ctm_status file and ignores all patches already applied.
...
Reviewed by: phk
Submitted by: J Wunsch <j@uriah.heep.sax.de>
1995-03-04 20:36:46 +00:00
phk
5da4a368b3
Added lock-files, so we should know if the machine panic'ed in the middle
...
of an "apply".
1995-02-28 20:52:56 +00:00
phk
b7b88b4e55
Latest updates to this.
1995-02-27 22:26:58 +00:00
phk
80ef2eaf89
(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>
1995-02-25 05:10:18 +00:00
phk
030f982dd6
Just a precaution: ctm will not accept '..' in paths anymore.
...
I'm never going to generate one, so this is a guard against hackers mostly.
Reviewed by: phk
Submitted by: Stephen McKay <syssgm@devetir.qld.gov.au>
Obtained from:
1995-02-25 05:02:18 +00:00
phk
b0562fba08
I (phk) blundered with the last change. Make it right & better now.
...
Reviewed by: phk
Submitted by: John Hay <jhay@mikom.csir.co.za>
1995-02-24 05:41:24 +00:00
phk
5f6ea96090
Make us a little safer, by writing to a tempfile, and rename when done.
...
Still needs more locking I belive.
1995-02-23 04:51:36 +00:00
phk
2ce55aa815
Be more exclusive about cvs-locks.
1995-02-21 02:09:47 +00:00
phk
21582849dd
Use absolute path for the "ctm" program.
1995-02-20 19:07:32 +00:00
phk
141f6db26d
The new and improved mkCTM. Learning from this experience it has been
...
improved on a couple of accounts. Amongst these are "damage control"
more than 100 files removed and it will bail out...
1995-02-20 03:03:02 +00:00
phk
540b71c23a
Some recent small changes. Probably about time I start writing this in C.
1995-02-19 04:51:41 +00:00
phk
c89046c555
Various nitpicking from Stephen.
...
Reviewed by: phk
Submitted by: Stephen McKay <syssgm@devetir.qld.gov.au>
1995-02-15 19:41:38 +00:00
phk
3b11b18c58
Clean up some details, to make it clear to gcc that we do not try to do
...
something stupid.
1995-02-10 05:25:00 +00:00
phk
f1b2dcf633
Stephen lost a -D, now it's back.
1995-02-06 02:22:29 +00:00
phk
47e4dbe85e
A couple of sensible changes from down under...
...
Reviewed by: phk
Submitted by: Stephen McKay <syssgm@devetir.qld.gov.au>
1995-02-04 19:20:49 +00:00
phk
27ca9d3bb5
CTM email tools.
...
Reviewed by: phk
Submitted by: Stephen McKay <syssgm@devetir.qld.gov.au>
1995-01-31 19:12:53 +00:00
phk
270f02056c
Update to current reality.
1994-12-08 21:46:04 +00:00
phk
40b3f41ba4
Cannot use rmdir() for 'FR' because mkCTM doesn't sort the directories
...
in -depth order for us. cvs-cur.0018.gz is a good example.
1994-12-04 04:47:31 +00:00
phk
e3931eff1e
Fix this to work under 2.0 also.
1994-12-03 22:54:04 +00:00
phk
3e9d62e475
Fixed a typo. Poited out by Bruce & Phillipe.
1994-12-01 21:05:28 +00:00
bde
d8f82d9164
Fix syntax errors (0 = foo()).
1994-11-27 16:01:29 +00:00
phk
ef554cb312
Stefan Esser proved that I couldn't program, and Ollivier Robert that I
...
couldn't spell :-)
Submitted by: Stefan Esser, Ollivier Robert
1994-11-26 08:57:42 +00:00
phk
7c68a5ca07
These patches fix some lesser problems:
...
1) malloc.h doesn't exits in 2.0.
2) Makefile.inc wasn't picked up so one of the build steps (install?)
failed.
3) LIBMD wasn't depended on.
4) "ctm foo" dumped core because "foo" doesn't have a '.' in it.
Bruce
I updated the mkCTM stuff while I was at it anyway. /phk
Reviewed by: phk
Submitted by: bde
1994-10-24 20:09:39 +00:00
phk
5a5794a15d
A couple of nit-picks.
1994-09-26 06:01:01 +00:00