Commit Graph

96 Commits

Author SHA1 Message Date
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
phk
962026360d Added a '-c' option: This will warn you if any file in the directory-tree
you run it on are unsuitable food for diff/patch.  Can you use it as it
is now Rod ?
1994-09-25 20:45:55 +00:00
phk
6f769c973c Various cleanup and fixes. 1994-09-22 02:49:24 +00:00
ache
0517cc4a35 Add BINDIR=/usr/sbin for install, fails in other case 1994-09-21 18:12:10 +00:00
ache
82651822bc Add BINDIR=/usr/sbin for install, fails in other case
Remove -g from CFLAGS
1994-09-21 18:11:56 +00:00
phk
5d04033c56 The next batch of refinements. Now it no longer needs to call on ed(1) to
fix our files, it has a builtin "diff -n" editor.
1994-09-21 04:38:48 +00:00
phk
57f7972531 A bunch of improvements. Still far to go. 1994-09-20 07:13:39 +00:00
phk
43fd687af6 This is the present state of CTM version 2. Please do not ask for
subscriptions yet.  Wait for the announcement.

CTM is my humble attempt to get -current out to people beyond TCP/IP 
connections.  This is for people with dial-up connections and such.

CTM can make a delta from one version to another of a source-tree, in 
a efficient and verified way.  Even if there are binary files in the
tree.  It will even try to make the delta as small as possible.

It is OK with me if you yell "Bloating!" but I'll just forward your email
to some of the happy customers from CTM version 1, and let them tell you
what they think.

I will not put ctm into "make world" yet.  For now it is just the logical
way to get the sources out to people who helps me test this.

Poul-Henning
1994-09-19 07:32:24 +00:00