Re: New BK License Problem?

Ben Collins
2002-10-07T01:56:04Z

> Whoops, forgot one thing. Take the GNU CSSC sources, they look for
>
> ^Ah%05u\n

Here's a patch for those interested

diff -urN CSSC-0.14alpha.pl0.orig/sccsfile.cc CSSC-0.14alpha.pl0/sccsfile.cc
--- CSSC-0.14alpha.pl0.orig/sccsfile.cc 2002-03-24 19:07:09.000000000 -0500
+++ CSSC-0.14alpha.pl0/sccsfile.cc 2002-10-06 21:52:12.000000000 -0400
@@ -73,13 +73,17 @@
return NULL;
}

- if (getc(f_local) != '\001' || getc(f_local) != 'h')
+ if (getc(f_local) != '\001')
{
- (void)fclose(f_local);
- s_corrupt_quit("%s: No SCCS-file magic number. "
- "Did you specify the right file?", name);
- /*NOTEACHED*/
- return NULL;
+ int tmp_c = getc(f_local);
+ if (tmp_c != 'h' && tmp_c != 'H')
+ {
+ (void)fclose(f_local);
+ s_corrupt_quit("%s: No SCCS-file magic number. "
+ "Did you specify the right file?", name);
+ /*NOTEACHED*/
+ return NULL;
+ }
}

@@ -532,7 +536,7 @@
}

int c = read_line();
- ASSERT(c == 'h');
+ ASSERT(c == 'h' || c == 'H');

/* the checksum is represented in the file as decimal.
*/