summaryrefslogtreecommitdiffstats
path: root/contrib/cvs/src
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1998-01-16 06:00:36 +0000
committerache <ache@FreeBSD.org>1998-01-16 06:00:36 +0000
commit6057fb933dcf81087a77b663553f1094c03a3e40 (patch)
treed5102bdddb9fa8e180f865517fbb222312151422 /contrib/cvs/src
parent3ea659a0cbaba6c86b5395b36e687129b92f5128 (diff)
downloadFreeBSD-src-6057fb933dcf81087a77b663553f1094c03a3e40.zip
FreeBSD-src-6057fb933dcf81087a77b663553f1094c03a3e40.tar.gz
Fix wrong ---/*** names produced using -L diff option
CVS gurus from info-cvs agrees that previous Index: usage is bogus
Diffstat (limited to 'contrib/cvs/src')
-rw-r--r--contrib/cvs/src/diff.c20
1 files changed, 13 insertions, 7 deletions
diff --git a/contrib/cvs/src/diff.c b/contrib/cvs/src/diff.c
index 3fdf3e4..810c5f0 100644
--- a/contrib/cvs/src/diff.c
+++ b/contrib/cvs/src/diff.c
@@ -568,7 +568,9 @@ diff_fileproc (callerdat, finfo)
if (empty_file == DIFF_ADDED)
{
if (use_rev2 == NULL)
- run_setup ("%s %s %s %s", DIFF, opts, DEVNULL, finfo->file);
+ run_setup ("%s %s -L%s -L%s %s %s", DIFF, opts,
+ DEVNULL, finfo->fullname,
+ DEVNULL, finfo->file);
else
{
int retcode;
@@ -589,7 +591,9 @@ diff_fileproc (callerdat, finfo)
}
/* FIXME: what if retcode > 0? */
- run_setup ("%s %s %s %s", DIFF, opts, DEVNULL, tmp);
+ run_setup ("%s %s -L%s -L%s %s %s", DIFF, opts,
+ DEVNULL, finfo->fullname,
+ DEVNULL, tmp);
}
}
else
@@ -610,21 +614,23 @@ diff_fileproc (callerdat, finfo)
}
/* FIXME: what if retcode > 0? */
- run_setup ("%s %s %s %s", DIFF, opts, tmp, DEVNULL);
+ run_setup ("%s %s -L%s %s %s", DIFF, opts,
+ finfo->fullname, tmp, DEVNULL);
}
}
else
{
if (use_rev2)
{
- run_setup ("%s%s -x,v/ %s %s -r%s -r%s", Rcsbin, RCS_DIFF,
+ run_setup ("%s%s -x,v/ %s %s -r%s -r%s -L%s", Rcsbin, RCS_DIFF,
opts, *options ? options : vers->options,
- use_rev1, use_rev2);
+ use_rev1, use_rev2, finfo->fullname);
}
else
{
- run_setup ("%s%s -x,v/ %s %s -r%s", Rcsbin, RCS_DIFF, opts,
- *options ? options : vers->options, use_rev1);
+ run_setup ("%s%s -x,v/ %s %s -r%s -L%s", Rcsbin, RCS_DIFF, opts,
+ *options ? options : vers->options, use_rev1,
+ finfo->fullname);
}
run_arg (vers->srcfile->path);
}
OpenPOWER on IntegriCloud