[Box Backup-commit] COMMIT r2020 - box/trunk/lib/intercept

boxbackup-dev at fluffy.co.uk boxbackup-dev at fluffy.co.uk
Thu Jan 3 23:24:56 GMT 2008


Author: chris
Date: 2008-01-03 23:24:56 +0000 (Thu, 03 Jan 2008)
New Revision: 2020

Modified:
   box/trunk/lib/intercept/intercept.cpp
Log:
If the address of opendir64() is NULL that is NOT a good sign, 
regardless of whether dlerror() thinks that everything is just rosy.


Modified: box/trunk/lib/intercept/intercept.cpp
===================================================================
--- box/trunk/lib/intercept/intercept.cpp	2008-01-03 22:51:21 UTC (rev 2019)
+++ box/trunk/lib/intercept/intercept.cpp	2008-01-03 23:24:56 UTC (rev 2020)
@@ -413,7 +413,7 @@
 		std::string name64(pName);
 		name64 += "64";
 		result = dlsym(RTLD_NEXT, name64.c_str());
-		if (dlerror() == NULL)
+		if (dlerror() == NULL && result != NULL)
 		{
 			return result;
 		}




More information about the Boxbackup-commit mailing list