Messages in this thread Patch in this message | | | Date | Sun, 6 Oct 2002 22:01:39 -0400 | From | Ben Collins <> | Subject | Re: New BK License Problem? |
| |
> 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. */ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |