Fossil

Check-in [3cc4cd55]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Alternative fix for ticket [9ff56ae8a6].
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:3cc4cd55d8a5469d27d023c531ace6eaa2f8e58c
User & Date: drh 2010-02-08 16:08:17
Context
2010-02-08
16:10
Alternative implementation to the improved "remove directory" error message. check-in: 8c9f949a user: drh tags: trunk
16:08
Alternative fix for ticket [9ff56ae8a6]. check-in: 3cc4cd55 user: drh tags: trunk
2010-02-06
17:25
Windows only: remove duplicate code from sqlite3.c in db.c check-in: 2f58d48c user: ron tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/sha1.c.

605
606
607
608
609
610
611

612
613
614
615
616
617
618
619
620
621
*/
void sha1sum_test(void){
  int i;
  Blob in;
  Blob cksum;
  
  for(i=2; i<g.argc; i++){

    if( g.argv[i][0]=='-' && g.argv[i][1]==0 ){
      blob_read_from_channel(&in, stdin, -1);
      sha1sum_blob(&in, &cksum);
    }else{
      sha1sum_file(g.argv[i], &cksum);
    }
    printf("%s  %s\n", blob_str(&cksum), g.argv[i]);
    blob_reset(&cksum);
  }
}







>










605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
*/
void sha1sum_test(void){
  int i;
  Blob in;
  Blob cksum;
  
  for(i=2; i<g.argc; i++){
    blob_init(&cksum, "************** not found ***************", -1);
    if( g.argv[i][0]=='-' && g.argv[i][1]==0 ){
      blob_read_from_channel(&in, stdin, -1);
      sha1sum_blob(&in, &cksum);
    }else{
      sha1sum_file(g.argv[i], &cksum);
    }
    printf("%s  %s\n", blob_str(&cksum), g.argv[i]);
    blob_reset(&cksum);
  }
}