Thread: signify with -C
View Single Post
  #3   (View Single Post)  
Old 14th September 2021
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,983
Default

If you put your checksum list file into the same directory, you can get a failing checksum when you test it. Example:
Code:
$ mkdir /tmp/test && cd /tmp/test
$ touch a b c
$ sha256 * > SHA256
$ sha256 -C SHA256 *
(SHA256) SHA256: FAILED
(SHA256) a: OK
(SHA256) b: OK
(SHA256) c: OK
The checksum file is not static. It is changing contents after it is first tested as the files a b c are checksummed later.

Last edited by jggimi; 14th September 2021 at 11:18 AM. Reason: typo
Reply With Quote