aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>1996-11-17 08:11:18 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>1996-11-17 08:11:18 +0000
commita5c57c40401302d2d7e1e5ec001e0c51e7da8fa3 (patch)
treee8eb8bc21541ddfcca00c757ff25cd361ad854c0 /usr.sbin
parent24e41f4044602f26a079d9df75ef6f19438a03cf (diff)
downloadsrc-a5c57c40401302d2d7e1e5ec001e0c51e7da8fa3.tar.gz
src-a5c57c40401302d2d7e1e5ec001e0c51e7da8fa3.zip
Make the case where there is no changes look less fatal.
Notes
Notes: svn path=/head/; revision=19835
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ctm/mkCTM/mkCTM5
-rw-r--r--usr.sbin/ctm/mkCTM/mkctm.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/usr.sbin/ctm/mkCTM/mkCTM b/usr.sbin/ctm/mkCTM/mkCTM
index c30ecc51039b..537d17c68cca 100644
--- a/usr.sbin/ctm/mkCTM/mkCTM
+++ b/usr.sbin/ctm/mkCTM/mkCTM
@@ -116,6 +116,11 @@ while 1 {
set r1 [catch "exec ${CTMSW}/mkctm -I ${CTMignore} -B ${CTMbogus} -l ${CTMtmp}.log -D $max_damage $CTMname $CTMnbr . $CTMdate $x1 $CTMref | md5 -p | gzip -9 > ${CTMtmp}:${nm}.gz 2>@ stderr" r2]
if {$r1} {
+ if {[lindex $errorCode 2] == 4} {
+ puts "No changes, stopping."
+ exec rm -f $CTMlock
+ exit 0
+ }
puts "problems, stopping now."
puts "errorCode $errorCode"
puts "$r2"
diff --git a/usr.sbin/ctm/mkCTM/mkctm.c b/usr.sbin/ctm/mkCTM/mkctm.c
index af96cdc06a0b..94540daa9ec6 100644
--- a/usr.sbin/ctm/mkCTM/mkctm.c
+++ b/usr.sbin/ctm/mkCTM/mkctm.c
@@ -584,7 +584,7 @@ main(int argc, char **argv)
errx(1, "Damage of %d would exceed %d files",
damage, damage_limit);
} else if (change < 2) {
- errx(1, "No changes");
+ errx(4, "No changes");
} else {
printf("CTM_END ");
fprintf(logf, "CTM_END\n");