Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37831516
en ru br
ALT Linux repos
S:4.4-alt2

Group :: File tools
RPM: hashdeep

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: md5deep-gcc11.patch
Download


diff --git a/src/hash.cpp b/src/hash.cpp
index 4216157..e6bfc11 100644
--- a/src/hash.cpp
+++ b/src/hash.cpp
@@ -279,7 +279,7 @@ void file_data_hasher_t::hash()
 		MAP_FILE|
 #endif
 		MAP_SHARED,fd,0);
-	    if(fdht->base>0){		
+	    if(fdht->base!=0){		
 		/* mmap is successful, so set the bounds.
 		 * if it is not successful, we default to reading the fd
 		 */
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin