Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | sha3sum command now exits with an error if it cannot open a requested file, per discussion at 9cc4028627. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
bda90774eea87f7cdc9bab59d3afa13f |
User & Date: | stephan 2021-02-23 02:48:16 |
Context
2021-02-23
| ||
21:33 | Minor technote tag footnote and a typo fix. ... (check-in: b1600a22 user: stephan tags: trunk) | |
02:48 | sha3sum command now exits with an error if it cannot open a requested file, per discussion at 9cc4028627. ... (check-in: bda90774 user: stephan tags: trunk) | |
2021-02-22
| ||
18:43 | Update the built-in SQLite to the latest 3.35.0 alpha that includes support for the MATERIALIZED hints. ... (check-in: d07cbeda user: drh tags: trunk) | |
Changes
Changes to src/sha3.c.
︙ | ︙ | |||
641 642 643 644 645 646 647 | ** the object pointed to, not on the link itself. ** ** See also: [[md5sum]], [[sha1sum]] */ void sha3sum_test(void){ int i; Blob in; | | | 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 | ** the object pointed to, not on the link itself. ** ** See also: [[md5sum]], [[sha1sum]] */ void sha3sum_test(void){ int i; Blob in; Blob cksum = empty_blob; int iSize = 256; int eFType = SymFILE; if( find_option("dereference","h",0) ) eFType = ExtFILE; if( find_option("224",0,0)!=0 ) iSize = 224; else if( find_option("256",0,0)!=0 ) iSize = 256; else if( find_option("384",0,0)!=0 ) iSize = 384; |
︙ | ︙ | |||
663 664 665 666 667 668 669 | } iSize = n; } } verify_all_options(); for(i=2; i<g.argc; i++){ | < < | > | 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 | } iSize = n; } } verify_all_options(); for(i=2; i<g.argc; i++){ if( g.argv[i][0]=='-' && g.argv[i][1]==0 ){ blob_read_from_channel(&in, stdin, -1); sha3sum_blob(&in, iSize, &cksum); }else if( sha3sum_file(g.argv[i], eFType, iSize, &cksum) > 0 ){ fossil_fatal("Cannot read file: %s", g.argv[i]); } fossil_print("%s %s\n", blob_str(&cksum), g.argv[i]); blob_reset(&cksum); } } |