Doubt about mtree

Hi,
I just read https://www.freebsd.org/doc/handbook/security-intro.html, in particular, mtree section.

I ran this:

Code:
[root@lullaby~]# mtree -s 3483151339707503 -c -K cksum,sha256digest -p /bin > /root/.bin_chksum_mtree
mtree: /bin checksum: 1817933408

After that, I tried to compare specification with:

[root@lullaby~]# mtree -s 3483151339707503 -p /bin < /root/.bin_chksum_mtree >> /root/.bin_chksum_output
mtree: /bin checksum: 3921640752

/root/.bin_chksum_output is empty (as expected), but the checksum value is different (while in Handbook it appears equal in both commands).

Can you help me figure this?
Thank you!

p.s. there is a little typo:

Code:
Viewing /root/.bin_cksum_mtree should yield output similar to the following:

should be

Code:
Viewing /root/.bin_chksum_mtree should yield output similar to the following:
 
Back
Top